[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-92733":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":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},92733,"Onboard-CLI","animesh-94\u002FOnboard-CLI","animesh-94","An AST-powered, local-first CLI that visualizes complex system architectures and enforces architectural boundaries via instant Git hooks.","https:\u002F\u002Fonboard-cli.vercel.app",null,"TypeScript",81,5,1,4,0,16,40.93,false,"main",true,[23,24,25,26,27],"ast","cli-tool","developer-tools","golang","tree-sitter","2026-07-22 04:02:06","\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F5f350795-de1f-44a4-95fe-e041ce3467d1\n\n# Onboard-CLI\n\n> Developer platform for code parsing, systems profiling, and canvas-based node visualization.\n\n[![Go Version](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGo-1.21%2B-blue.svg)](https:\u002F\u002Fgolang.org\u002F)\n[![React Version](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FReact-19-blue.svg)](https:\u002F\u002Freact.dev\u002F)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-yellow.svg)](https:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT)\n\n**Onboard-CLI** is an advanced command-line interface tool and web-based visualizer designed to help developers quickly understand and map out large, complex codebases. By leveraging AST (Abstract Syntax Tree) parsing via Tree-sitter, Onboard-CLI generates structural topology graphs and enforces architectural boundaries, presenting them through an intuitive React Flow canvas.\n\n## 🌟 Key Features\n\n- **AST Slicing Engine**: Deep code parsing using `tree-sitter` for accurate structural node generation across multiple languages (Go, JS, TS, Python, Java).\n- **Interactive Visualizer (`map`)**: Automatically spins up a local React Flow canvas (`http:\u002F\u002Flocalhost:3000\u002Fapp` by default) to visually explore code paths, dependencies, and topological maps within a specified radius. Use `--port` or `ONBOARD_PORT` to run on a different port.\n- **Architecture Drift Detection (`drift`)**: Analyzes codebase against `architecture.yml` rules to detect unauthorized cross-file imports and boundary violations, ensuring long-term code health.\n- **Comprehensive Ecosystem**: Built-in commands for config management, impact analysis, code exporting, owner tracking, and project pulse.\n- **Modern Tech Stack**: Blazing fast CLI written in Go, paired with a rich frontend utilizing Vite, React 19, `@xyflow\u002Freact` (React Flow), Framer Motion, and Tailwind CSS.\n\n## 📊 Statistics & Capabilities\n\n- **Language Support**: 5+ Built-in parsers (Go, TypeScript, JavaScript, Python, Java).\n- **Visualization Radius**: Configurable deep-mapping (default radius: 1, scales to complex dependency trees).\n- **Rule Enforcement**: Sub-second boundary regex evaluation for architectural drift across thousands of files.\n- **Frontend Performance**: Optimized canvas rendering for large node sets, powered by Vite & SWC\u002FOxc linting.\n\n## 🚀 Installation\n\nYou can install Onboard-CLI using the provided installation scripts:\n\n### macOS \u002F Linux\n```bash\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fonboard-cli\u002Finstall.sh | bash\n```\n*(Or run `.\u002Finstall.sh` directly from the repository).*\n\n### Windows\n```powershell\nInvoke-WebRequest -Uri https:\u002F\u002Fraw.githubusercontent.com\u002Fonboard-cli\u002Finstall.ps1 -OutFile install.ps1; .\\install.ps1\n```\n\n## 💻 Usage\n\n### 1. Initialize Project\nGenerate the necessary `.onboard`.\n```bash\nonboard init \n```\n\nFor CI\u002FCD fokes use below command to generate the necessary configurations and `architecture.yaml` file\n```bash\nonboard init --template clean-architecture\n```\n*(Available templates: `generic`, `clean-architecture`, `modular-monolith`, `mvc`, `serverless`)*\n\n### 2. Map the Codebase (Visualizer)\nTrigger the context engine to map a symbol or file path, and boot up the visualizer server.\n```bash\nonboard map --target \"internal\u002Fparser\" --radius 2\n```\n👉 *Click the provided link (e.g. http:\u002F\u002Flocalhost:3000\u002Fapp) to view the interactive canvas. Press `Ctrl+P` in the UI to use the Fuzzy Finder! Toggle Dark Mode and Compact Mode from the top right.*\n\n### 3. Extract Backend Routes\nAutomatically map backend API routes to their exact file and line handler locations across various frameworks (Express, Gin, FastAPI, Spring).\n```bash\nonboard routes --protocol rest --framework express\n```\n\n### 4. Detect Architectural Drift\nCheck for violations against your defined architecture rules.\n```bash\nonboard drift --rules architecture.yml\n```\n\n### 5. CI\u002FCD Integration\nIntegrate `onboard drift` into your GitHub Actions workflow to enforce architectural boundaries on every Pull Request. Check out the template at [`docs\u002Fonboard-action.yml`](docs\u002Fonboard-action.yml).\n\n### 6. Additional Commands\n- `onboard impact`: Analyze the impact of a proposed code change.\n- `onboard owners`: Track code ownership and maintainers.\n- `onboard export`: Export graphical\u002FAST data.\n- `onboard pulse`: Get a quick summary of codebase health and recent activity.\n\n*(Note: You can pass the `--no-update-check` global flag to any command to disable the automatic async version checker).*\n\n## 🛠️ Tech Stack\n\n- **CLI Engine**: Go, Cobra, Go-Tree-Sitter, YAML.\n- **Web UI**: React 19, TypeScript, Vite, `@xyflow\u002Freact` (React Flow), Tailwind CSS, Framer Motion, Lucide React.\n- **Code Highlighting & Markdown**: Shiki, MDX, Rehype.\n\n## 🤝 Contributing\n\nWe welcome contributions! Please check out the `cmd` and `internal` directories for CLI logic, and the `ui` directory for the React frontend.\n\nPlease read our [Contributing Guidelines](CONTRIBUTING.md) and [AI Usage Policy](AI_USAGE.md) before submitting a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature\u002Famazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature\u002Famazing-feature`)\n5. Open a Pull Request\n\n## 📝 License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n","Onboard-CLI 是一个基于抽象语法树（AST）的本地优先命令行工具，用于解析代码结构、可视化系统架构拓扑并强制执行模块化边界约束。它通过 Tree-sitter 多语言解析器（支持 Go\u002FTS\u002FJS\u002FPython\u002FJava）生成依赖关系图，并提供本地启动的 React Flow 可视化画布；同时内置架构漂移检测功能，可实时比对代码导入行为与 architecture.yml 中定义的边界规则。适用于中大型团队在代码审查、新人上手、架构治理及技术债务评估等场景，提升代码可理解性与架构一致性。",2,"2026-07-10 02:30:17","CREATED_QUERY"]