cors
Express/Node.js middleware for handling Cross-Origin Resource Sharing.
HTTP servers and APIs npm MIT
Used in agent projects
422
3.3% of 12,697 public repos built with AI coding agents
Rank in http servers and apis
#4 of 30
by use in those projects
Downloads
86.8M
npm, last 7 days, cors
GitHub stars
6,195
last push Jun 2, 2026
How cors is used
cors is a dependency in 422 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (3.3%), #4 of 30 in http servers and apis. The most used alternative there is Express. Projects that use it most often also use Express (95.7%), dotenv (68.2%), jsonwebtoken (27.0%). It is more common in projects set up for Devin Desktop (10.2%) than for OpenAI Codex (2.2%).
Often used with cors
| Express | 95.7% of cors projects · 14.8× more than average |
|---|---|
| dotenv | 68.2% of cors projects · 4.3× more than average |
| jsonwebtoken | 27.0% of cors projects · 14.2× more than average |
| tsx | 30.3% of cors projects · 3.1× more than average |
| Helmet | 22.0% of cors projects · 22.4× more than average |
| nodemon | 21.8% of cors projects · 12.4× more than average |
| uuid | 21.1% of cors projects · 5.9× more than average |
| concurrently | 20.1% of cors projects · 4.5× more than average |
By coding agent
| Cursor | 4.1% of projects set up for it |
|---|---|
| GitHub Copilot | 3.1% of projects set up for it |
| Claude Code | 2.7% of projects set up for it |
| Devin Desktop | 10.2% of projects set up for it |
| Gemini CLI | 3.4% of projects set up for it |
| OpenAI Codex | 2.2% of projects set up for it |
| OpenCode | 3.1% of projects set up for it |
| Kiro | 6.2% of projects set up for it |
Share of public repos configured for each agent that list cors as a dependency.
Install
| Package | npm install cors |
|---|---|
| Main stacks | TypeScript / JavaScript (361), Next.js (26), Python (23), Rust (6) |
| Example projects | 5pyj29s7cm-tech/LumiCore, azep-ninja/x402-gateway-template, claude-world/claude-world-studio, bitovi/convey, noateden/rantom |
Alternatives to cors
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Express npm Fast, unopinionated minimalist web framework for Node.js. |
822 (6.5%) | 142M | 69.6K | MIT |
| Uvicorn pypi Lightning-fast ASGI server for running async Python web applications. |
544 (4.3%) | 13M | 11K | — |
| FastAPI pypi High-performance Python web framework with automatic API docs and async support. |
537 (4.2%) | 107M | 103K | — |
| python-multipart pypi Streaming multipart parser for handling file uploads in Python web frameworks. |
217 (1.7%) | 92.8M | 536 | — |
| Flask pypi Lightweight Python web framework for building web applications and APIs. |
174 (1.4%) | 40.9M | 75K | — |
| Hono npm Ultrafast web framework for edge runtimes built on Web Standards. |
136 (1.1%) | 73.9M | 32.5K | MIT |
| express-rate-limit npm Express middleware for rate limiting API requests by IP address. |
105 (0.8%) | 57.6M | 3,311 | MIT |
| GraphQL.js npm JavaScript implementation of GraphQL query language and runtime. |
105 (0.8%) | 50.6M | 20.3K | MIT |