Skip to content
Back to search

opensrc

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

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/vercel-labs-opensrc/badge.svg)](/listings/vercel-labs-opensrc)

HTML

<a href="/listings/vercel-labs-opensrc"><img src="/api/listings/vercel-labs-opensrc/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

npm install -g opensrc
# Search a package's source
rg "parse" $(opensrc path zod)

# Read a specific file
cat $(opensrc path zod)/src/types.ts

# Works with any registry
find $(opensrc path pypi:requests) -name "*.py"

`opensrc path` fetches on first use, then returns the cached path instantly. See the [CLI readme](packages/opensrc/README.md) for full usage.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 66 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # opensrc
  2. <p>
  3. <a href="https://vercel.com/labs#active-experiments"><img alt="Vercel Labs Experiment" src="https://img.shields.io/badge/LABS-EXPERIMENT-0a0a0a.svg?style=for-the-badge&amp;logo=Vercel&amp;labelColor=000000" height="28"></a>
  4. <a href="https://www.npmjs.com/package/opensrc"><img alt="npm version: opensrc" src="https://img.shields.io/npm/v/opensrc.svg?style=for-the-badge&amp;labelColor=000000" height="28"></a>
  5. <a href="https://github.com/vercel-labs/opensrc/blob/main/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/github/license/vercel-labs/opensrc.svg?style=for-the-badge&amp;labelColor=000000" height="28"></a>
  6. <a href="https://www.npmjs.com/package/opensrc"><img alt="npm downloads per month: opensrc" src="https://img.shields.io/npm/dm/opensrc.svg?style=for-the-badge&amp;labelColor=000000&amp;label=npm%20downloads" height="28"></a>
  7. </p>
  8. Give coding agents access to any package's source code.
  9. ## Quick Start
  10. ```bash
  11. npm install -g opensrc
  12. ```
  13. ```bash
  14. # Search a package's source
  15. rg "parse" $(opensrc path zod)
  16. # Read a specific file
  17. cat $(opensrc path zod)/src/types.ts
  18. # Works with any registry
  19. find $(opensrc path pypi:requests) -name "*.py"
  20. ```
  21. `opensrc path` fetches on first use, then returns the cached path instantly. See the [CLI readme](packages/opensrc/README.md) for full usage.
  22. ## Packages
  23. | Package | Description |
  24. |---------|-------------|
  25. | [`opensrc`](packages/opensrc) | CLI — fetch and cache source code from npm, PyPI, crates.io, and GitHub |
  26. | [`@opensrc/docs`](apps/docs) | Documentation site |
  27. ## Development
  28. This is a [Turborepo](https://turbo.build) monorepo using [pnpm](https://pnpm.io) workspaces. Use Node.js 24+ and pnpm 11.
  29. ```bash
  30. pnpm install
  31. turbo build
  32. turbo dev
  33. ```
  34. ### CLI (Rust)
  35. ```bash
  36. cargo build --manifest-path packages/opensrc/cli/Cargo.toml
  37. cargo test --manifest-path packages/opensrc/cli/Cargo.toml
  38. cargo fmt --manifest-path packages/opensrc/cli/Cargo.toml
  39. cargo clippy --manifest-path packages/opensrc/cli/Cargo.toml -- -D warnings
  40. ```
  41. ### Docs (Next.js)
  42. ```bash
  43. cd apps/docs
  44. pnpm dev
  45. ```
  46. ## License
  47. Apache-2.0

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.