#366 · Primary category: AI Coding Assistants

opensrc

ai ai-coding cli coding-agents developer-tools llm nodejs npm source-code typescript

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

Project last updated:06/23/26

GitHub Stars

3.0K

Forks

194

Contributors

1

License

Apache-2.0

Why we included this project

Coding agents routinely work with a dependency's types and public API without ever seeing how it's actually implemented. opensrc gives them the missing layer: it fetches the real source from npm, PyPI, crates.io, or GitHub, caches it locally, and prints a path that tools like ripgrep or an editor can use directly. The registry prefix syntax (pypi:requests, for example) keeps it useful beyond JavaScript. Because the first fetch is cached, repeated agent runs get the source instantly without extra network calls. Teams wiring their own agent tooling should find this a straightforward way to ground model reasoning in real code.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category