# vercel-labs/opensrc

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

Repository: https://github.com/vercel-labs/opensrc
Canonical: https://ross.abutalabs.com/products/opensrc
Homepage: https://opensrc.sh
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: ai, ai-coding, cli, coding-agents, developer-tools, llm, nodejs, npm, source-code, typescript
Last push: 2026-06-23T22:45:48+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 89, release rhythm 90, longevity 17
- inputs: {"age_days": 239, "days_push": 71, "days_rel": 71, "gap_med": 0.0, "n_releases_24m": 17}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2968, forks 194 (observed 2026-08-28T04:07:32.617422+00:00)

## What it is
opensrc is a Rust-based CLI that fetches and caches the source code of packages from npm, PyPI, crates.io, and GitHub so AI coding agents can read real implementations. It exposes an `opensrc path` command that returns a local cached path usable in subshells with tools like rg, cat, and find.

## Use cases
- give my AI coding agent access to a package's actual source code
- search npm package source with ripgrep
- fetch and cache source code from pypi or crates.io
- read implementation files instead of just type definitions
- feed real dependency source into LLM context

## When to choose
- you use AI coding agents that benefit from reading dependency implementations
- you want a fast cached way to browse package source across registries
- you script source exploration with rg/grep/cat in subshells

## When to avoid
- you only need type definitions or documentation, not source
- you need a GUI-based package browser
- you work offline with no registry or git access

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, developer-tools, search-engine, caching
- domain: developer-tools, large-language-models
- platform: cli, cross-platform, windows
- tags: ai-coding-agents, npm, pypi, crates-io, source-code-fetching, rust-cli, context-for-llms, command-line, ai-agents, nodejs, macos, linux

## Member repositories
- vercel-labs/opensrc (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:32.617422+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:31:52.659551+00:00, confidence not recorded.
  - readme: https://github.com/vercel-labs/opensrc (fetched 2026-08-28T04:07:32.617422+00:00, sha c1712ccbf4a2)
  - homepage: https://opensrc.sh (fetched 2026-08-29T09:47:07.217120+00:00, sha 6b19c3d56b71)
- Data as of 2026-08-30T08:39:29.467469+00:00.
