Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

opensrc

> AI 编程
Open source

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

2.9K stars0 likes0 views
WebsiteGitHub

About

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

opensrc

Give coding agents access to any package's source code.

Quick Start

bash
npm install -g opensrc
bash
# 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 for full usage.

Packages

Package Description
opensrc CLI — fetch and cache source code from npm, PyPI, crates.io, and GitHub
@opensrc/docs Documentation site

Development

This is a Turborepo monorepo using pnpm workspaces. Use Node.js 24+ and pnpm 11.

bash
pnpm install
turbo build
turbo dev

CLI (Rust)

bash
cargo build --manifest-path packages/opensrc/cli/Cargo.toml
cargo test --manifest-path packages/opensrc/cli/Cargo.toml
cargo fmt --manifest-path packages/opensrc/cli/Cargo.toml
cargo clippy --manifest-path packages/opensrc/cli/Cargo.toml -- -D warnings

Docs (Next.js)

bash
cd apps/docs
pnpm dev

License

Apache-2.0

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustaiai-codingclicoding-agents

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.