[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-2346":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":15,"starSnapshotCount":15,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},2346,"RepoWiki","he-yufeng\u002FRepoWiki","he-yufeng","Open-source DeepWiki alternative — generate comprehensive wiki documentation for any codebase from terminal or browser","https:\u002F\u002Fpypi.org\u002Fproject\u002Frepowiki\u002F",null,"Python",176,34,12,0,5,23,76,15,4.63,"MIT License",false,"main",true,[26,27,28,29,30,31,32,33],"cli","deepwiki","documentation","llm","pagerank","python","react","wiki","2026-06-12 02:00:40","# RepoWiki\n\n**Open-source DeepWiki alternative** — generate comprehensive wiki documentation for any codebase from your terminal or browser.\n\n[![PyPI](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Frepowiki.svg)](https:\u002F\u002Fpypi.org\u002Fproject\u002Frepowiki\u002F)\n[![Python](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fpyversions\u002Frepowiki.svg)](https:\u002F\u002Fpypi.org\u002Fproject\u002Frepowiki\u002F)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue.svg)](LICENSE)\n\n[中文文档](README_CN.md)\n\n## Why RepoWiki?\n\n| | DeepWiki | deepwiki-open | **RepoWiki** |\n|---|---------|--------------|-------------|\n| Deploy | SaaS only | Docker Compose | **`pip install repowiki`** |\n| Local repos | No | No | **Yes** |\n| CLI | No | No | **Yes** |\n| Web UI | Yes | Yes | **Yes** |\n| Export | Web only | Web only | **Markdown \u002F JSON \u002F HTML** |\n| Reading guide | No | No | **PageRank + guided path** |\n| Terminal Q&A | No | No | **`repowiki chat`** |\n| Dependencies | N\u002FA | Docker + PostgreSQL | **Python + SQLite** |\n\n## Quick Start\n\n```bash\npip install repowiki\n\n# set your API key (DeepSeek, OpenAI, Anthropic, etc.)\nexport DEEPSEEK_API_KEY=sk-xxx\n# or\nrepowiki config set api_key sk-xxx\n\n# scan a local project\nrepowiki scan .\u002Fmy-project\n\n# scan a GitHub repo\nrepowiki scan https:\u002F\u002Fgithub.com\u002Fpallets\u002Fflask\n\n# generate self-contained HTML\nrepowiki scan .\u002Fmy-project --format html --open\n\n# start the web interface\npip install repowiki[web]\nrepowiki serve\n```\n\n## Features\n\n### Wiki Generation\nAutomatically generates structured documentation for any codebase:\n- **Project overview** — what it does, tech stack, setup instructions\n- **Module documentation** — purpose, key files, relationships, important functions\n- **Architecture diagrams** — auto-detected architecture type with Mermaid visualizations\n- **Reading guide** — \"start here\" path based on PageRank file importance ranking\n- **Bundle-aware scanner** — skips minified JS\u002FCSS and generated frontend chunks before they burn LLM context\n\n### Multiple Output Formats\n- **Markdown** — directory of `.md` files, ready to commit to your repo\n- **JSON** — structured data for API consumption or custom rendering\n- **HTML** — self-contained single file, share with anyone (Mermaid diagrams included)\n\n### Web Interface\nThree-column wiki viewer with sidebar navigation, Mermaid diagram rendering, and an AI-powered Q&A chat about the codebase.\n\n### CLI-First Design\nEverything works from the terminal. No Docker, no database server, no web browser required.\n\n```bash\nrepowiki scan .                    # generate wiki\nrepowiki scan . -f html --open     # open in browser\nrepowiki scan . -l zh              # Chinese output\nrepowiki chat .                    # ask questions (coming soon)\nrepowiki config list               # show configuration\n```\n\n## Supported Languages\n\nPython, JavaScript, TypeScript, Go, Rust, Java, Kotlin, C\u002FC++, C#, Ruby, PHP, Swift, Dart, Vue, Svelte, and 30+ more.\n\n## Supported LLM Providers\n\nPowered by [litellm](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm), RepoWiki works with 100+ LLM providers:\n\n| Provider | Model | Alias |\n|----------|-------|-------|\n| Anthropic | Claude Opus 4.6 | `opus` |\n| Anthropic | Claude Sonnet 4.6 | `claude` |\n| OpenAI | GPT-5.4 | `gpt` |\n| OpenAI | GPT-5.4 Mini | `gpt-mini` |\n| Google | Gemini 3.1 Pro | `gemini` |\n| Google | Gemini 2.5 Flash | `gemini-flash` |\n| DeepSeek | DeepSeek V3.2 | `deepseek` |\n| Alibaba | Qwen3.5 Plus | `qwen` |\n| Moonshot | Kimi K2.6 | `kimi` |\n| Zhipu | GLM-5 | `glm` |\n| MiniMax | M2.7 | `minimax` |\n\n```bash\nrepowiki config set model deepseek    # use alias\nrepowiki scan . -m gpt                # or pass directly\n```\n\n## Configuration\n\nRepoWiki looks for config in this order:\n1. CLI flags (`-m`, `-l`, `-o`)\n2. Environment variables (`REPOWIKI_MODEL`, `REPOWIKI_API_KEY`)\n3. Config file (`~\u002F.repowiki\u002Fconfig.json`)\n4. Provider-specific env vars (`DEEPSEEK_API_KEY`, `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`)\n\n## Project Structure\n\n```\nRepoWiki\u002F\n├── src\u002Frepowiki\u002F\n│   ├── cli.py              # Click CLI with scan\u002Fserve\u002Fchat\u002Fconfig commands\n│   ├── config.py           # Configuration management\n│   ├── core\u002F\n│   │   ├── scanner.py      # File scanning with language detection\n│   │   ├── analyzer.py     # Multi-step LLM analysis pipeline\n│   │   ├── graph.py        # Dependency graph + PageRank\n│   │   ├── wiki_builder.py # Wiki page assembly\n│   │   ├── rag.py          # TF-IDF retrieval for Q&A\n│   │   └── cache.py        # SQLite caching\n│   ├── llm\u002F\n│   │   ├── client.py       # litellm async wrapper\n│   │   └── prompts.py      # Structured prompt templates\n│   ├── ingest\u002F\n│   │   ├── local.py        # Local directory ingestion\n│   │   └── github.py       # Git clone with caching\n│   ├── export\u002F\n│   │   ├── markdown.py     # Markdown directory export\n│   │   ├── json_export.py  # JSON export\n│   │   └── html.py         # Self-contained HTML export\n│   └── server\u002F             # FastAPI web backend\n├── frontend\u002F               # React + Vite + TailwindCSS\n├── pyproject.toml\n└── LICENSE\n```\n\n## How It Works\n\n1. **Scan** — Walk the directory tree, filter out binaries, generated bundles, and oversized files, detect languages and entry points\n2. **Graph** — Parse import statements across 6 languages, build a dependency graph, run PageRank to rank file importance\n3. **Analyze** — Send file tree + key files to LLM in 4 structured passes (overview, modules, architecture, reading guide)\n4. **Cache** — Store results in SQLite keyed by content hash, skip unchanged files on re-scan\n5. **Export** — Assemble wiki pages with Mermaid diagrams and source links, output in chosen format\n\n## Development\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fhe-yufeng\u002FRepoWiki.git\ncd RepoWiki\n\n# backend\npython -m venv .venv && source .venv\u002Fbin\u002Factivate\npip install -e \".[dev,web]\"\n\n# frontend\ncd frontend && npm install && npm run dev\n\n# run backend\nrepowiki serve --port 8000\n```\n\n## Related Projects\n\n- [**CodeJoust**](https:\u002F\u002Fgithub.com\u002Fhe-yufeng\u002FCodeJoust) — once RepoWiki tells you *how* the repo works, CodeJoust helps you change it: race Claude Code, aider, Codex, and Gemini on the same bug in parallel git worktrees, auto-score by tests\u002Fcost\u002Fdiff\u002Ftime, merge the winner. `pip install codejoust`.\n- [**LiteBench**](https:\u002F\u002Fgithub.com\u002Fhe-yufeng\u002FLiteBench) — one-command LLM\u002Fagent benchmark. HumanEval\u002FGSM8K\u002FMMLU\u002FMATH-500 built in, plus YAML-defined custom tasks and a single-file HTML dashboard.\n- [**CoreCoder**](https:\u002F\u002Fgithub.com\u002Fhe-yufeng\u002FCoreCoder) — Claude Code's architecture distilled to ~1,400 lines of Python, with 7 deep-dive architecture articles.\n- [**AnyCoder**](https:\u002F\u002Fgithub.com\u002Fhe-yufeng\u002FAnyCoder) — practical terminal AI coding agent, 100+ model support via litellm.\n\n## License\n\nMIT\n","RepoWiki 是一个开源的 DeepWiki 替代方案，可以从终端或浏览器为任何代码库生成全面的 Wiki 文档。它支持通过命令行工具 `repowiki` 扫描本地项目或 GitHub 仓库，并自动生成包含项目概述、模块文档、架构图和阅读指南在内的结构化文档。此外，RepoWiki 提供了多种输出格式（如 Markdown、JSON 和 HTML），并具有一个基于 Web 的界面，支持 Mermaid 图表渲染和 AI 驱动的问答功能。该项目适用于需要快速创建和维护高质量技术文档的开发团队和个人开发者。其 CLI-优先设计使得用户无需依赖 Docker 或数据库服务器即可轻松上手。",2,"2026-06-11 02:49:36","CREATED_QUERY"]