A library is like a city map, if you need a location, you can get it from this; it doesn't tell you which route to take though. It doesn't have an opinion on how you should go about it.
A framework on the other hand, is like Waze (or any GPS navigation), not only will it give you the location, it has an opinion on which route you should take. If you don't follow the suggested route, it will keep on nagging you
I think this example is either from one of Kyle Simpson's books or his lectures.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.