opensrc
Fetch source code for npm packages
OpenSrc is an open-source utility developed by Vercel Labs that retrieves and exposes the source code of npm packages so that AI coding agents can better understand how external libraries work. When large language models generate code, they often rely only on type definitions or documentation, which can limit their understanding of how a library actually behaves. OpenSrc addresses this limitation by allowing agents to fetch the underlying source code of dependencies and analyze their implementation directly. This gives AI coding assistants richer context about functions, internal logic, and architectural patterns used within external packages. ...