Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

opensrc

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

Quick Start

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 for full usage.

Packages

PackageDescription
opensrcCLI — fetch and cache source code from npm, PyPI, crates.io, and GitHub
@opensrc/docsDocumentation site

Development

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

pnpm install
turbo build
turbo dev

CLI (Rust)

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)

cd apps/docs
pnpm dev

License

Apache-2.0

关于 About

Fetch source code for npm packages to give AI coding agents deeper context
aiai-codingclicoding-agentsdeveloper-toolsllmnodejsnpmsource-codetypescript

语言 Languages

Rust55.8%
TypeScript31.5%
JavaScript7.0%
MDX4.0%
CSS1.7%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
59
Total Commits
峰值: 34次/周
Less
More

核心贡献者 Contributors