
RepoLens
io.github.CHAPIBUNNY由 GitHub 帳號 CHAPIBUNNY 發布v1.16.2更新於 Nov 3, 2026
來自程式碼儲存庫的架構文件:概覽、模組、API 介面、路由、依賴關係圖、差異比較。
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
Architecture docs from a repo: overview, modules, API surface, routes, dependency graph, diffs.
概覽
RepoLens 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 RepoLens,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[npm version] [VS Code Extension] [Tests] [License] [MCP Registry] [Gallery] [Install in Cursor] [Install in VS Code]
Links: Gallery · npm · MCP Registry · MCP Rush · VS Code extension · GitHub Action
Your architecture docs are already outdated. RepoLens fixes that.
RepoLens scans your repository, generates living architecture documentation, and publishes it to Notion, Confluence, GitHub Wiki, Obsidian, or Markdown — automatically on every push. Engineers get technical docs. Stakeholders get readable system overviews. Nobody writes a word.
Stable as of v1.0 — API guarantees · Security hardened · version from
package.json
🎬 Demo
Try it now — no installation required.
npx @chappibunny/repolens demopreviews the repository you point it at. It detects common languages (Python, Go, Rust, Java, JavaScript/TypeScript, and others). If the scan matches no source files, demo exits 2 and does not write empty docs. Code health scores JavaScript/TypeScript, Python, and Go.
See it on real repos — architecture pages RepoLens generated for Express, FastAPI, Django, Gin, mdBook, and other public projects. Deterministic mode, no API keys.
🎬 Watch Demo Video — See RepoLens generate docs in 60 seconds
🔍 Supported Languages (16 auto-detected)
JavaScript TypeScript Python Go Rust Java C C++ C# Ruby PHP Swift Kotlin Scala Shell SQL
Plus framework detection: Django · FastAPI · Flask · Gin · Echo · Fiber · Actix · Rocket — and all major JS frameworks (React, Next.js, Vue, Angular, Express, NestJS, Svelte, etc.)
🚀 Quick Start (60 seconds)
Step 1: Install (Node.js 18+)
Step 2: Initialize (creates config + GitHub Actions workflow)
Step 3: Configure Publishing (optional, skip if using Markdown only)
For Notion:
For Confluence:
Step 4: Publish
Done! Numbered notes and the Markdown publisher’s files are in .repolens/. Notion, Confluence, GitHub Wiki, and Obsidian publish only when you configure them. Obsidian needs obsidian.vault in .repolens.yml and does not use an API key.
🔄 Upgrading from v0.3.0 or earlier?
Run npx @chappibunny/repolens migrate to automatically update your workflow files. See MIGRATION.md for details.
📋 What It Generates
17 document types for three audiences — no manual writing required. Route Map and GraphQL Schema are skipped when the repository has no routes or GraphQL schema:
Two modes: Deterministic (free, fast, always works) or AI-Enhanced (optional — GitHub Models, OpenAI, Anthropic, Google, Azure, Ollama).
✨ Why RepoLens
📦 Installation
Or try instantly without installing: npx @chappibunny/repolens demo
For alternative methods, see INSTALLATION.md.
🎨 VS Code Extension
View your architecture directly in VS Code — browse modules, visualize dependencies, and explore your codebase structure without leaving the editor.
Install from Marketplace:
→ Get it on Visual Studio Marketplace
Features:
- 🏗️ Architecture Explorer — Tree view of your system structure
- 📊 Dependency Visualizer — Interactive dependency graphs
- 📁 Module Browser — Navigate modules by domain and function
- 🔍 Command Palette — Quick access to architecture insights
- 📈 System Metrics — Real-time architecture health indicators
The extension reads your .repolens.yml configuration and provides an interactive UI for exploring the documentation that RepoLens generates.
🎓 Onboarding Guide
Step-by-step setup for publishers, AI features, Notion, Confluence, GitHub Wiki, Obsidian, Discord, and CI/CD automation.
🎮 Commands
Note: If you installed globally with
npm install -g @chappibunny/repolens, you can use the shorterrepolens <command>form. Init's next-steps text uses that shorter form when the command on your PATH is the global install. Warning: Do not run barenpx repolens— there is an unrelated[email protected]placeholder package on npm. Always use the scoped name@chappibunny/repolens.
Exit codes
--target must already exist. A missing path exits 2 with Target directory not found: <path> before any scan. repolens <command> --help prints that command's flags. The ASCII banner is omitted when stdout is not a terminal or CI is set.
MCP server
Cursor, Cline, Claude Desktop, Claude Code, and VS Code Copilot can call RepoLens over stdio. The server is read-only except for generate_docs, which writes Markdown inside the workspace. Deterministic mode does not use the network. Paths cannot leave the workspace root.
[Install in Cursor] [Install in VS Code]
Copy-paste configs for Cursor, Claude Desktop, and VS Code are in docs/MCP.md.
Use with Cline
Open Cline → MCP Servers → Installed → Configure MCP Servers, paste this into cline_mcp_settings.json, and save:
Cline starts the server with no install step (Node 18+ required). It reads the directory the server starts in. To point it at a specific repo, add "env": {"REPOLENS_WORKSPACE": "/absolute/path/to/repo"}. Six tools appear: get_system_overview, list_modules, get_api_surface, get_dependency_graph, get_architecture_diff, generate_docs. Step-by-step agent instructions are in llms-install.md.
If npx reports Unknown command: mcp, an .npmrc with min-release-age (or an old npx cache) resolved a release older than 1.14.0. Use npx -y @chappibunny/repolens@latest mcp or clear ~/.npm/_npx.
GitHub Action
action.yml is a composite action named RepoLens Architecture Docs. publish, demo, and doctor run the published npm package (npx --force --yes @chappibunny/[email protected]). comment and badge run from the action checkout. Inputs are command (publish, demo, doctor, comment, or badge), config, node-version, pr-comment, version, badge-out, badge-url, and badge-link. The action passes --force so a repository devEngines pin does not stop npx on npm versions that enforce devEngines (newer npm). Node 20's bundled npm does not enforce that field. From a shell, use the same flag: npx --force --yes @chappibunny/repolens demo. --ignore-engines does not skip devEngines.
Publishing docs (the npm package at tag v1.16.2):
On v1.15.2, pr-comment: true runs the architecture diff from the action checkout and turns the published package's older short summary off. The diff lists modules, files, dependencies, the code-health delta, and new hotspots. It edits one sticky comment (<!-- repolens:architecture-diff -->) instead of adding a new comment each push. The footer is "Generated by RepoLens" and links to this repository and the gallery. Tag v1.15.1 does not contain command: comment. Pin v1.16.2 or a commit SHA in production.
contents: read is only so checkout can read the repository. The comment itself uses GITHUB_TOKEN with pull-requests: write. No personal access token. Fork pull requests cannot write comments with that token. RepoLens skips the comment and writes the same markdown to the job summary. A 403 is handled the same way. fetch-depth: 0 is required so both the base and head commits are on disk.
pr-comment: true on publish, demo, or doctor (when the action ref contains this change) runs the same comment after the package and turns the package's older comment off, so the pull request still gets one comment.
The action is listed on the GitHub Marketplace only after a release is published with Publish this Action to the GitHub Marketplace checked. Those steps are in docs/RELEASE.md. The tag v1.16.2 has to exist before uses: CHAPIBUNNY/[email protected] resolves, and @chappibunny/[email protected] has to be on npm before publish can install it. command: comment and command: badge do not install that package.
Add the badge to your repo
Generated Markdown includes this line unless .repolens.yml sets branding: false (or branding.badge: false). Add the same badge to a repository README:
Generated docs also link to the gallery after the badge.
Code health badge
repolens badge scores JavaScript, TypeScript, Python, and Go, then prints a shields.io endpoint JSON document. The message is the average code-health score. It exits 2 when no source files were scored, and it does not print 100 for an empty tree.
Host the JSON where shields.io can fetch it. The action writes both files without an npm publish:
Commit repolens-badge.json to gh-pages (or any public HTTPS path) if you want a live shields.io badge. badge-url is that public URL. The job summary prints:
Gallery repositories already publish this. Each one has a score page with the snippet, badge.json, and a square SVG. The badge links back to that score page. An explained page titled " architecture explained" is indexed beside it (sitemap.xml, robots.txt, Open Graph, canonical URL, JSON-LD SoftwareSourceCode). llms.txt and llms-full.txt sit at the site root and in this repository.
📸 Example Output
System map
Published system maps are Unicode diagrams drawn from import edges. RepoLens does not emit Mermaid.
The publisher set is Notion, Confluence, GitHub Wiki, Obsidian, and Markdown (src/publishers, 7 files). 1.14.0 adds the MCP server, the Marketplace action, and the docs badge. 1.14.1 sets the registry name to io.github.CHAPIBUNNY/repolens. 1.14.2 adds the gallery link to the badge line, glama.json, and CITATION.cff. 1.14.3 adds Cline setup docs and llms-install.md. 1.15.0 detects repository languages in init --quick, refuses empty scans, and adds per-command help. 1.15.1 makes watch exit 2 when those globs match nothing, and scores code health for Python and Go as well as JavaScript and TypeScript. 1.15.2 reads Python and Go imports in the dependency graph, skips comment and type-only imports, adds repolens badge and repolens comment, and adds gallery explained pages plus llms.txt. 1.15.3 skips Python TYPE_CHECKING imports, omits Node.js built-ins from external packages, groups Go hubs by package, and ignores test files as architecture-pattern evidence. 1.15.4 names the project from package.json, scores maturity from version, history, tests, CI, and docs, reports circular dependencies as findings, drops self-imports and noise data flows, and stops classifying index and core files by name. 1.15.5 reads a flat src/ as one module, tells a library from a CLI by its package.json, splits runtime from development packages, keeps tests, examples, and build scripts out of hubs and security severity, and skips empty Route Map and GraphQL pages. 1.16.0 adds repolens app (a self-hosted GitHub App webhook), names a flat package after its directory, treats a framework description as a library when main is absent, and keeps test and example routes out of the product API. 1.16.1 skips snapshot, sample, fixture, example, and generated trees in the file count, orphan list, and type graph, and labels a call-heavy two-folder cycle as mutual recursion rather than a high-priority refactor. Layout and counts are in ARCHITECTURE.md.
System Overview (Technical Profile)
Generated from your package.json:
Architecture Diff in PRs
When you open a pull request, RepoLens posts:
🔒 Privacy & Security
- Telemetry is opt-in and disabled by default — no code, secrets, or personal data leaves your machine. See TELEMETRY.md.
- Defense-in-depth security — input validation, secret detection (15+ patterns), rate limiting, injection prevention, supply chain hardening. See SECURITY.md.
- Report vulnerabilities to [email protected] (not public issues). Response within 48 hours.
📚 Documentation
🤝 Contributing
Ways to help:
- Try it out: Install and use in your projects
- Report issues: Share bugs, edge cases, or UX friction
- Request features: Tell us what's missing
- Build plugins: Extend RepoLens with custom renderers and publishers
- Share feedback:
npx @chappibunny/repolens feedback
See CONTRIBUTING.md and the AI Policy. AI-assisted PRs are welcome when disclosed, reviewed, and tested.
🗺️ Roadmap
v1.0+ features complete — CLI, config schema, and plugin interface are frozen.
Completed:
- VS Code extension (available on Marketplace)
- Obsidian vault publisher (local notes with wikilinks and frontmatter)
- MCP server (
repolens mcp) for Cursor, Claude, and VS Code - GitHub Action
RepoLens Architecture Docs(action.yml) - Docs by RepoLens badge on generated Markdown
- GitHub App webhook (
repolens app) for a check run and the architecture comment
Next:
- Java and C# language support
- Grounded AI explanations and Q&A (
repolens ask, PR comment, MCP, VS Code hover), layered on the always-published map and not a replacement for it - Slack notifications
- Custom webhook support
- Cross-repository architecture analysis
- Security boundary validation
- Interactive HTML documentation output
- Architecture decision records (ADR) generation
See ROADMAP.md for detailed planning.
📄 License
MIT
💬 Support & Contact
- Troubleshooting: TROUBLESHOOTING.md — installation, config, publishing, AI, and CI/CD issues
- Diagnostics: Run
npx @chappibunny/repolens doctorto validate your setup - Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: Contact repository maintainers
Made with ❤️ by RepoLens for developers who care about architecture
來源:README.md,提交 ff6d48d
工具
0版本歷史
9- v1.16.2最新Nov 3, 2026
- v1.16.1Oct 29, 2026
- v1.16.0Oct 26, 2026
- v1.15.5Oct 26, 2026
- v1.15.4Oct 25, 2026
- v1.15.3Oct 21, 2026
- v1.15.1Oct 21, 2026
- v1.14.3Oct 20, 2026
- v1.14.1Oct 19, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分