diff --git a/.github/workflows/deploy-homepage.yml b/.github/workflows/deploy-homepage.yml index d6df0d9..b3571c4 100644 --- a/.github/workflows/deploy-homepage.yml +++ b/.github/workflows/deploy-homepage.yml @@ -39,6 +39,9 @@ jobs: - name: Build homepage working-directory: homepage run: pnpm build + env: + VITE_STRUCTURAL_VIDEO_URL: ${{ vars.DEMO_STRUCTURAL_VIDEO_URL }} + VITE_DOMAIN_VIDEO_URL: ${{ vars.DEMO_DOMAIN_VIDEO_URL }} - name: Build core run: pnpm --filter @understand-anything/core build diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 64a8154..a6b4386 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -172,6 +172,10 @@ pnpm --filter @understand-anything/core test --watch - Use Zustand for state management - Follow the existing component structure +### Tech Stack + +TypeScript, pnpm workspaces, React 18, Vite, TailwindCSS v4, React Flow, Zustand, web-tree-sitter, Fuse.js, Zod, Dagre + ### File Organization ``` diff --git a/README.ja-JP.md b/README.ja-JP.md index 824672e..68136fd 100644 --- a/README.ja-JP.md +++ b/README.ja-JP.md @@ -33,29 +33,53 @@ Understand Anything は [Claude Code](https://docs.anthropic.com/en/docs/claude- --- -## 🤔 なぜ必要なのか? +## ✨ 機能 -コードを読むのは大変です。コードベース全体を理解するのはさらに大変です。ドキュメントは常に古く、オンボーディングには数週間かかり、新機能の開発はまるで考古学のようです。 +### コード構造グラフを探索 -Understand Anything は、**LLMの知能**と**静的解析**を組み合わせることでこの問題を解決します。プロジェクトの生きた探索可能なマップを生成し、すべてに平易な日本語の説明が付きます。 +コードベースをインタラクティブなナレッジグラフとして表示——すべてのファイル、関数、クラスがクリック・検索・探索可能なノードです。ノードを選択すると、わかりやすい要約、依存関係、ガイド付きツアーが表示されます。 ---- +
+
+
+
+
- 👩💻 ジュニア開発者-不慣れなコードに溺れるのはもう終わり。アーキテクチャをステップバイステップで案内するガイドツアーで、すべての関数やクラスが平易な言葉で説明されます。 + |
+ 🧭 ガイドツアー+依存関係順に並べられた、自動生成のアーキテクチャウォークスルー。正しい順序でコードベースを学べます。 |
-
- 📋 プロダクトマネージャー&デザイナー-コードを読まなくても、システムが実際にどう動くかを理解できます。「認証はどう動いているの?」のような質問をすれば、実際のコードベースに基づいた明確な回答が得られます。 + |
+ 🔍 ファジー&セマンティック検索+名前や意味で何でも検索できます。「認証を処理する部分は?」と検索すれば、グラフ全体から関連する結果が得られます。 |
-
- 🤖 AI活用開発者-AIツールにプロジェクトの深いコンテキストを与えましょう。コードレビュー前に |
+ 📊 差分影響分析+コミット前に、変更がシステムのどの部分に影響するかを確認。コードベース全体への波及効果を把握できます。 + |
+
+ 🎭 ペルソナ適応型UI+ダッシュボードは、ジュニア開発者・PM・パワーユーザーなど、ユーザーに応じて詳細レベルを調整します。 + |
+ |||
+ 🏗️ レイヤー可視化+API・Service・Data・UI・Utilityなどのアーキテクチャ層ごとに自動グループ化。色分けされた凡例付き。 + |
+
+ 📚 言語コンセプト+ジェネリクス・クロージャ・デコレータなど12のプログラミングパターンが、出現箇所のコンテキストで説明されます。 |
-
-
- 🗺️ インタラクティブナレッジグラフ-ファイル・関数・クラスとそれらの関係をReact Flowで可視化。ノードをクリックするとコードと接続関係が表示されます。 - |
-
- 💬 平易な言葉での説明-すべてのノードがLLMによって説明されるため、技術者でなくても、それが何をしているのか、なぜ存在するのかを理解できます。 - |
-
- 🧭 ガイドツアー-依存関係順に並べられた、自動生成のアーキテクチャウォークスルー。正しい順序でコードベースを学べます。 - |
-
- 🔍 ファジー&セマンティック検索-名前や意味で何でも検索できます。「認証を処理する部分は?」と検索すれば、グラフ全体から関連する結果が得られます。 - |
-
- 📊 差分影響分析-コミット前に、変更がシステムのどの部分に影響するかを確認。コードベース全体への波及効果を把握できます。 - |
-
- 🎭 ペルソナ適応型UI-ダッシュボードは、ジュニア開発者・PM・パワーユーザーなど、ユーザーに応じて詳細レベルを調整します。 - |
-
- 🏗️ レイヤー可視化-API・Service・Data・UI・Utilityなどのアーキテクチャ層ごとに自動グループ化。色分けされた凡例付き。 - |
-
- 📚 言語コンセプト-ジェネリクス・クロージャ・デコレータなど12のプログラミングパターンが、出現箇所のコンテキストで説明されます。 - |
-
- 🏢 ビジネスドメイン知識-コードベースからビジネスドメイン、フロー、処理ステップを抽出。インタラクティブな水平フローグラフでビジネスロジックがコードにどうマッピングされるかを確認 — ドメインにはフロー、フローにはステップが含まれます。 - |
-
- 🔀 構造 + ドメインビュー-ダッシュボードでコード構造グラフとビジネスドメイングラフを切り替え。コードの組織方法と、それが実装するビジネスプロセスの両方を理解できます。 - |
-
+
+
+
+
- 👩💻 Junior Developers-Stop drowning in unfamiliar code. Get guided tours that walk you through the architecture step by step, with every function and class explained in plain English. + |
+ 🧭 Guided Tours+Auto-generated walkthroughs of the architecture, ordered by dependency. Learn the codebase in the right order. |
-
- 📋 Product Managers & Designers-Finally understand how the system actually works without reading code. Ask questions like "how does authentication work?" and get clear answers grounded in the real codebase. + |
+ 🔍 Fuzzy & Semantic Search+Find anything by name or by meaning. Search "which parts handle auth?" and get relevant results across the graph. |
-
- 🤖 AI-Assisted Developers-Give your AI tools deep context about your project. Use |
+ 📊 Diff Impact Analysis+See which parts of the system your changes affect before you commit. Understand ripple effects across the codebase. + |
+
+ 🎭 Persona-Adaptive UI+The dashboard adjusts its detail level based on who you are — junior dev, PM, or power user. + |
+ |||
+ 🏗️ Layer Visualization+Automatic grouping by architectural layer — API, Service, Data, UI, Utility — with color-coded legend. + |
+
+ 📚 Language Concepts+12 programming patterns (generics, closures, decorators, etc.) explained in context wherever they appear. |
-
-
- 🗺️ Interactive Knowledge Graph-Files, functions, classes, and their relationships visualized with React Flow. Click any node to see its code and connections. - |
-
- 💬 Plain-English Summaries-Every node described by an LLM so anyone — technical or not — can understand what it does and why it exists. - |
-
- 🧭 Guided Tours-Auto-generated walkthroughs of the architecture, ordered by dependency. Learn the codebase in the right order. - |
-
- 🔍 Fuzzy & Semantic Search-Find anything by name or by meaning. Search "which parts handle auth?" and get relevant results across the graph. - |
-
- 📊 Diff Impact Analysis-See which parts of the system your changes affect before you commit. Understand ripple effects across the codebase. - |
-
- 🎭 Persona-Adaptive UI-The dashboard adjusts its detail level based on who you are — junior dev, PM, or power user. - |
-
- 🏗️ Layer Visualization-Automatic grouping by architectural layer — API, Service, Data, UI, Utility — with color-coded legend. - |
-
- 📚 Language Concepts-12 programming patterns (generics, closures, decorators, etc.) explained in context wherever they appear. - |
-
- 🏢 Business Domain Knowledge-Extract business domains, flows, and process steps from your codebase. See how business logic maps to code with an interactive horizontal flow graph — domains contain flows, flows contain steps. - |
-
- 🔀 Structural + Domain Views-Toggle between the structural code graph and the business domain graph in the dashboard. Understand both how the code is organized and what business processes it implements. - |
-
+
+
+
+
- 👩💻 Junior Geliştiriciler-Tanımadığın kodda boğulmayı bırak. Her fonksiyon ve sınıfın sade Türkçe açıklandığı, mimariyi adım adım anlatan rehberli turlar al. + |
+ 🧭 Rehberli Turlar+Bağımlılığa göre sıralanmış, mimarinin otomatik oluşturulmuş gözden geçirmeleri. Kod tabanını doğru sırayla öğren. |
-
- 📋 Ürün Yöneticileri ve Tasarımcılar-Kod okumadan sistemin gerçekte nasıl çalıştığını nihayet anla. "Kimlik doğrulama nasıl çalışır?" gibi sorular sor ve gerçek kod tabanına dayalı net cevaplar al. + |
+ 🔍 Bulanık ve Anlamsal Arama+İsme veya anlamına göre her şeyi bul. "Kimlik doğrulamayı hangi parçalar yönetiyor?" ara ve grafik boyunca ilgili sonuçları al. |
-
- 🤖 AI Destekli Geliştiriciler-AI araçlarına projen hakkında derin bağlam ver. Kod incelemeden önce |
+ 📊 Diff Etki Analizi+Değişikliklerinin sistemin hangi bölümlerini etkilediğini commit etmeden önce gör. Kod tabanı boyunca dalgalanma etkilerini anla. + |
+
+ 🎭 Kişiye Uyarlanabilir UI+Kontrol paneli, kim olduğuna göre ayrıntı seviyesini ayarlar — junior geliştirici, ürün yöneticisi veya güçlü kullanıcı. + |
+ |||
+ 🏗️ Katman Görselleştirmesi+Mimari katmana göre otomatik gruplama — API, Servis, Veri, UI, Yardımcı — renk kodlu efsaneyle. + |
+
+ 📚 Dil Kavramları+12 programlama deseni (generikler, kapanışlar, dekoratörler, vb.) göründükleri her yerde bağlam içinde açıklanır. |
-
-
- 🗺️ İnteraktif Bilgi Grafiği-Dosyalar, fonksiyonlar, sınıflar ve ilişkileri React Flow ile görselleştirildi. Kodunu ve bağlantılarını görmek için herhangi bir düğüme tıkla. - |
-
- 💬 Sade Türkçe Özetler-Her düğüm bir LLM tarafından açıklanır, böylece herkes — teknik olsun ya da olmasın — ne yaptığını ve neden var olduğunu anlayabilir. - |
-
- 🧭 Rehberli Turlar-Bağımlılığa göre sıralanmış, mimarinin otomatik oluşturulmuş gözden geçirmeleri. Kod tabanını doğru sırayla öğren. - |
-
- 🔍 Bulanık ve Anlamsal Arama-İsme veya anlamına göre her şeyi bul. "Kimlik doğrulamayı hangi parçalar yönetiyor?" ara ve grafik boyunca ilgili sonuçları al. - |
-
- 📊 Diff Etki Analizi-Değişikliklerinin sistemin hangi bölümlerini etkilediğini commit etmeden önce gör. Kod tabanı boyunca dalgalanma etkilerini anla. - |
-
- 🎭 Kişiye Uyarlanabilir UI-Kontrol paneli, kim olduğuna göre ayrıntı seviyesini ayarlar — junior geliştirici, ürün yöneticisi veya güçlü kullanıcı. - |
-
- 🏗️ Katman Görselleştirmesi-Mimari katmana göre otomatik gruplama — API, Servis, Veri, UI, Yardımcı — renk kodlu efsaneyle. - |
-
- 📚 Dil Kavramları-12 programlama deseni (generikler, kapanışlar, dekoratörler, vb.) göründükleri her yerde bağlam içinde açıklanır. - |
-
- 🏢 İş Alanı Bilgisi-Kod tabanından iş alanları, akışlar ve işlem adımları çıkar. Etkileşimli yatay akış grafiğiyle iş mantığının koda nasıl eşlendiğini gör — alanlar akışları, akışlar adımları içerir. - |
-
- 🔀 Yapısal + Alan Görünümleri-Kontrol panelinde yapısal kod grafiği ile iş alanı grafiği arasında geçiş yap. Hem kodun nasıl organize edildiğini hem de hangi iş süreçlerini uyguladığını anla. - |
-
+
+
+
+
- 👩💻 入门级开发者-不再被陌生代码淹没。通过结构化引导逐步理解系统架构,每个函数和类都有简明易懂的解释。 + |
+ 🧭 引导式学习+自动生成架构学习路径,按依赖顺序学习。 |
-
- 📋 产品经理 & 设计师-无需阅读代码,也能理解系统逻辑。比如直接提问:“认证流程是怎么实现的?” 便可获得基于实际代码库的清晰答案。 + |
+ 🔍 语义搜索+支持模糊搜索 + 语义搜索,例如搜索"哪些部分处理身份验证?"即可在整个图中获取相关结果。 |
-
- 🤖 AI协同开发者-让你的 AI 工具深入了解你的项目。在代码审查之前使用 |
+ 📊 变更影响分析+提交更改前,查看更改会影响系统的哪些部分。了解更改对整个代码库的连锁反应。 + |
+
+ 🎭 用户角色自适应 UI+根据用户类型(初级开发 / 项目经理 / 高级用户)调整其详细程度。 + |
+ |||
+ 🏗️ 层级可视化+按架构层级自动分组 — API,服务,数据,UI, 系统工具 — 并附有颜色编码图例。 + |
+
+ 📚 语言概念+12 种编程模式(泛型、闭包、装饰器等)将在上下文中逐一解释。 |
-
-
- 🗺️ 交互式知识图谱-使用 React Flow 可视化文件、函数、类及其关系。点击任意节点即可查看其代码和连接。 - |
-
- 💬 简明语言解释-LLM 自动生成解释,让非技术人员也能理解代码。 - |
-
- 🧭 引导式学习-自动生成架构学习路径,按依赖顺序学习。 - |
-
- 🔍 语义搜索-支持模糊搜索 + 语义搜索,例如搜索“哪些部分处理身份验证?”即可在整个图中获取相关结果。 - |
-
- 📊 变更影响分析-提交更改前,查看更改会影响系统的哪些部分。了解更改对整个代码库的连锁反应。 - |
-
- 🎭 用户角色自适应 UI-根据用户类型(初级开发 / 项目经理 / 高级用户)调整其详细程度。 - |
-
- 🏗️ 层级可视化-按架构层级自动分组 — API,服务,数据,UI, 系统工具 — 并附有颜色编码图例。 - |
-
- 📚 语言概念-12 种编程模式(泛型、闭包、装饰器等)将在上下文中逐一解释。 - |
-
- 🏢 业务领域知识-从代码库中提取业务领域、流程和处理步骤。通过交互式水平流程图查看业务逻辑如何映射到代码 — 领域包含流程,流程包含步骤。 - |
-
- 🔀 结构 + 领域双视图-在数据看板中切换代码结构图和业务领域图。同时理解代码的组织方式和它实现的业务流程。 - |
-
+
+
+
+
- 👩💻 入門級開發者-不再被陌生程式碼淹沒。透過結構化引導逐步理解系統架構,每個函式和類別都有簡明易懂的解釋。 + |
+ 🧭 引導式學習+自動產生架構學習路徑,按相依順序學習。 |
-
- 📋 產品經理 & 設計師-無需閱讀程式碼,也能理解系統邏輯。比如直接提問:「認證流程是怎麼實作的?」便可獲得基於實際程式碼庫的清晰答案。 + |
+ 🔍 語意搜尋+支援模糊搜尋 + 語意搜尋,例如搜尋「哪些部分處理身分驗證?」即可在整個圖中獲取相關結果。 |
-
- 🤖 AI 協同開發者-讓你的 AI 工具深入了解你的專案。在程式碼審查之前使用 |
+ 📊 變更影響分析+提交變更前,查看變更會影響系統的哪些部分。了解變更對整個程式碼庫的連鎖反應。 + |
+
+ 🎭 使用者角色自適應 UI+根據使用者類型(初級開發 / 專案經理 / 進階使用者)調整其詳細程度。 + |
+ |||
+ 🏗️ 層級視覺化+按架構層級自動分組 — API、服務、資料、UI、系統工具 — 並附有顏色編碼圖例。 + |
+
+ 📚 語言概念+12 種程式設計模式(泛型、閉包、裝飾器等)將在上下文中逐一解釋。 |
-
-
- 🗺️ 互動式知識圖譜-使用 React Flow 視覺化檔案、函式、類別及其關係。點擊任意節點即可查看其程式碼和連接。 - |
-
- 💬 簡明語言解釋-LLM 自動產生解釋,讓非技術人員也能理解程式碼。 - |
-
- 🧭 引導式學習-自動產生架構學習路徑,按相依順序學習。 - |
-
- 🔍 語意搜尋-支援模糊搜尋 + 語意搜尋,例如搜尋「哪些部分處理身分驗證?」即可在整個圖中獲取相關結果。 - |
-
- 📊 變更影響分析-提交變更前,查看變更會影響系統的哪些部分。了解變更對整個程式碼庫的連鎖反應。 - |
-
- 🎭 使用者角色自適應 UI-根據使用者類型(初級開發 / 專案經理 / 進階使用者)調整其詳細程度。 - |
-
- 🏗️ 層級視覺化-按架構層級自動分組 — API、服務、資料、UI、系統工具 — 並附有顏色編碼圖例。 - |
-
- 📚 語言概念-12 種程式設計模式(泛型、閉包、裝飾器等)將在上下文中逐一解釋。 - |
-
- 🏢 業務領域知識-從程式碼庫中提取業務領域、流程和處理步驟。透過互動式水平流程圖查看業務邏輯如何對應到程式碼 — 領域包含流程,流程包含步驟。 - |
-
- 🔀 結構 + 領域雙視圖-在資料看板中切換程式碼結構圖和業務領域圖。同時理解程式碼的組織方式和它實現的業務流程。 - |
-
See your codebase come alive
+Explore the structural graph
+Navigate your codebase as an interactive knowledge graph — click, search, and explore every file, function, and class.
+ {structuralVideoUrl ? (
+
+ ) : (
+
+ )}
+ Understand business logic
+Switch to the domain view and see how your code maps to real business processes.
+
+ )}