A framework (in this context software framework or web framework in particular) is a software library and ways of using it that provides an alternative (often simplified) way of writing software, typically explicitly instead of how you would normally write that software.
If a library provides different (even simplified) ways of writing software, but explicitly adjacent to, complementary with, or even dependent on how you would normally write that software, then it is not typically considered a framework.
- 2017-02-10 Adrian Holovaty: About the PPK talk and tweet about PPK's talk “What are the things you do wrong as a Web Developer?”, see also
- "Switching to a new framework won't make you better at writing maintainable code." @baseLogiK May 30, 2018