Use Context7 well and safely
Guides a coding agent to look up the right library and version with Context7, ask focused documentation questions, and write code from current docs instead of memory. Read-only, so it changes nothing without asking.
Use it when
- You need working code for a library you use but may not remember exactly
- You want examples that match the version your project is pinned to
- A previous answer used an API that does not exist in your version
Tools it uses
resolve-library-idquery-docs
Add a rate limiter to my Express app using express-rate-limit v7. use context7
Resolved express-rate-limit against the v7 line, then queried for the current options object. The docs show a windowMs and max setup with standardHeaders enabled, so I wrote the middleware with those names. The v7 docs also flag the older 'max' rename, which I have carried through; I have not checked the rest of your app's middleware order.