{"id":48634812,"url":"https://github.com/vercel-labs/opensrc","last_synced_at":"2026-04-18T03:01:21.997Z","repository":{"id":334731489,"uuid":"1129171970","full_name":"vercel-labs/opensrc","owner":"vercel-labs","description":"Fetch source code for npm packages to give AI coding agents deeper context","archived":false,"fork":false,"pushed_at":"2026-04-17T20:43:31.000Z","size":400,"stargazers_count":1822,"open_issues_count":14,"forks_count":91,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-04-17T22:36:51.155Z","etag":null,"topics":["ai","ai-coding","cli","coding-agents","developer-tools","llm","nodejs","npm","source-code","typescript"],"latest_commit_sha":null,"homepage":"https://opensrc.sh","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vercel-labs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-01-06T17:54:03.000Z","updated_at":"2026-04-17T22:33:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vercel-labs/opensrc","commit_stats":null,"previous_names":["vercel-labs/opensrc"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/vercel-labs/opensrc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel-labs%2Fopensrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel-labs%2Fopensrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel-labs%2Fopensrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel-labs%2Fopensrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vercel-labs","download_url":"https://codeload.github.com/vercel-labs/opensrc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel-labs%2Fopensrc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31954736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-coding","cli","coding-agents","developer-tools","llm","nodejs","npm","source-code","typescript"],"created_at":"2026-04-09T08:29:57.771Z","updated_at":"2026-04-18T03:01:21.971Z","avatar_url":"https://github.com/vercel-labs.png","language":"Rust","readme":"# opensrc\n\nGive coding agents access to any package's source code.\n\n## Quick Start\n\n```bash\nnpm install -g opensrc\n```\n\n```bash\n# Search a package's source\nrg \"parse\" $(opensrc path zod)\n\n# Read a specific file\ncat $(opensrc path zod)/src/types.ts\n\n# Works with any registry\nfind $(opensrc path pypi:requests) -name \"*.py\"\n```\n\n`opensrc path` fetches on first use, then returns the cached path instantly. See the [CLI readme](packages/opensrc/README.md) for full usage.\n\n## Packages\n\n| Package | Description |\n|---------|-------------|\n| [`opensrc`](packages/opensrc) | CLI — fetch and cache source code from npm, PyPI, crates.io, and GitHub |\n| [`@opensrc/docs`](apps/docs) | Documentation site |\n\n## Development\n\nThis is a [Turborepo](https://turbo.build) monorepo using [pnpm](https://pnpm.io) workspaces.\n\n```bash\npnpm install\nturbo build\nturbo dev\n```\n\n### CLI (Rust)\n\n```bash\ncargo build --manifest-path packages/opensrc/cli/Cargo.toml\ncargo test --manifest-path packages/opensrc/cli/Cargo.toml\ncargo fmt --manifest-path packages/opensrc/cli/Cargo.toml\ncargo clippy --manifest-path packages/opensrc/cli/Cargo.toml -- -D warnings\n```\n\n### Docs (Next.js)\n\n```bash\ncd apps/docs\npnpm dev\n```\n\n## License\n\nApache-2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercel-labs%2Fopensrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvercel-labs%2Fopensrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercel-labs%2Fopensrc/lists"}