vercel-labs/opensrc

Fetch source code for npm packages to give AI coding agents deeper context

62
/ 100
Established

Resolves npm package discovery by querying the registry and matching installed versions from lockfiles, then clones repositories at corresponding git tags into a local `opensrc/` directory. Automatically configures project files (`.gitignore`, `tsconfig.json`, `AGENTS.md`) and maintains a `sources.json` index for agent discovery. Supports GitHub repositories directly via multiple URL formats and branch/tag specification, enabling agents to reference actual implementation details alongside type definitions.

1,134 stars and 8,668 monthly downloads. Available on npm.

Maintenance 10 / 25
Adoption 19 / 25
Maturity 20 / 25
Community 13 / 25

How are scores calculated?

Stars

1,134

Forks

38

Language

TypeScript

License

Apache-2.0

Last pushed

Feb 24, 2026

Monthly downloads

8,668

Commits (30d)

0

Dependencies

2

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/agents/vercel-labs/opensrc"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.