Skip to content

docs: add Graphify code map - #299

Open
dergigi wants to merge 3 commits into
masterfrom
fix/issue-298
Open

docs: add Graphify code map#299
dergigi wants to merge 3 commits into
masterfrom
fix/issue-298

Conversation

@dergigi

@dergigi dergigi commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Adds a Graphify-generated code map for the repository, including an interactive graph.html, a GRAPH_REPORT.md summary, and a queryable graph.json. The browser-viewable map is served from public/code-map/graphify-out/graph.html, so it can be opened directly from Vercel previews at /code-map/graphify-out/graph.html. The map was built in code-only mode from commit 129dbecf, so code extraction stayed local and had zero token cost.

Summary by CodeRabbit

  • Documentation

    • Added documentation for the repository’s interactive code map, including access locations and regeneration instructions.
    • Added a detailed analysis report covering code relationships, communities, cycles, connection highlights, and knowledge gaps.
  • Chores

    • Updated ignore rules to exclude generated code-map outputs and local cache or dependency directories.

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ants Ready Ready Preview, Comment Jul 22, 2026 12:07pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@dergigi, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 42 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6e8ff593-28ee-4f84-b98f-0f839cb8862b

📥 Commits

Reviewing files that changed from the base of the PR and between 4a59f58 and d19c9aa.

📒 Files selected for processing (4)
  • docs/code-map/README.md
  • public/code-map/graphify-out/GRAPH_REPORT.md
  • public/code-map/graphify-out/graph.html
  • public/code-map/graphify-out/graph.json
📝 Walkthrough

Walkthrough

Adds Graphify ignore rules, documentation for viewing and regenerating the code map, and a generated Markdown report containing graph metrics, communities, relationships, cycles, knowledge gaps, and suggested questions.

Changes

Graphify code map

Layer / File(s) Summary
Graphify workflow setup
.gitignore, .graphifyignore, docs/code-map/README.md
Excludes Graphify artifacts and local cache directories, and documents code-map viewing and regeneration commands.
Generated graph analysis report
public/code-map/graphify-out/GRAPH_REPORT.md
Adds graph metrics, community navigation, highly connected nodes, relationships, import cycles, community details, knowledge gaps, and suggested questions.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The PR delivers a Graphify-based repository code map and supporting docs/files requested by issue #298.
Out of Scope Changes check ✅ Passed All changes support the Graphify code map workflow or its generated artifacts; no unrelated scope is evident.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: adding a Graphify code map under docs.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/issue-298

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/code-map/graphify-out/GRAPH_REPORT.md`:
- Line 226: Update the report generator that emits the “Nodes” listing so
underscored identifiers such as __dirname and __filename are rendered as inline
Markdown code, preventing MD037 violations. Regenerate GRAPH_REPORT.md and
preserve formatting for other node names.
- Around line 7-8: Regenerate GRAPH_REPORT.md using the report generator so its
summary metrics match the generated hub list and detailed Communities section,
including the correct number of shown communities. Correct the extraction
summary so the inferred percentage is nonzero when 11 inferred edges are
reported, and ensure all repeated metric blocks remain consistent.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 19fa7853-f5b2-467a-b6b5-f9d338072ce2

📥 Commits

Reviewing files that changed from the base of the PR and between 129dbec and c696fb7.

📒 Files selected for processing (6)
  • .gitignore
  • .graphifyignore
  • docs/code-map/README.md
  • docs/code-map/graphify-out/GRAPH_REPORT.md
  • docs/code-map/graphify-out/graph.html
  • docs/code-map/graphify-out/graph.json

Comment on lines +7 to +8
- 937 nodes · 2608 edges · 41 communities (35 shown, 6 thin omitted)
- Extraction: 100% EXTRACTED · 0% INFERRED · 0% AMBIGUOUS · INFERRED: 11 edges (avg confidence: 0.66)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Regenerate the report with internally consistent metrics.

The report claims 35 communities are shown, but the hub list contains 38 labels, while the detailed Communities section lists only 32. It also reports 0% INFERRED alongside 11 inferred edges. Fix the generator or regenerate the artifact so the counts and percentages agree.

Also applies to: 17-54, 98-102

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/code-map/graphify-out/GRAPH_REPORT.md` around lines 7 - 8, Regenerate
GRAPH_REPORT.md using the report generator so its summary metrics match the
generated hub list and detailed Communities section, including the correct
number of shown communities. Correct the extraction summary so the inferred
percentage is nonzero when 11 inferred edges are reported, and ensure all
repeated metric blocks remain consistent.


### Community 32 - "Community 32"
Cohesion: 0.40
Nodes (4): compat, __dirname, eslintConfig, __filename

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Format underscored identifiers as code.

Markdownlint reports MD037 on this line. Render __dirname and __filename as inline code (or escape the underscores), preferably in the report generator rather than by hand-editing the generated artifact.

🧰 Tools
🪛 markdownlint-cli2 (0.23.0)

[warning] 226-226: Spaces inside emphasis markers

(MD037, no-space-in-emphasis)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/code-map/graphify-out/GRAPH_REPORT.md` at line 226, Update the report
generator that emits the “Nodes” listing so underscored identifiers such as
__dirname and __filename are rendered as inline Markdown code, preventing MD037
violations. Regenerate GRAPH_REPORT.md and preserve formatting for other node
names.

Source: Linters/SAST tools

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/code-map/README.md`:
- Around line 9-15: Update the regeneration instructions and accompanying commit
description in the README so they remain consistent: either make the workflow
check out and generate from commit 129dbecf, or describe the map as reflecting
the repository state at generation time. Ensure the documented provenance cannot
contradict the checkout analyzed by the commands.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8653471f-1da4-41ad-b694-987563db02b3

📥 Commits

Reviewing files that changed from the base of the PR and between c696fb7 and 4a59f58.

📒 Files selected for processing (6)
  • .gitignore
  • .graphifyignore
  • docs/code-map/README.md
  • public/code-map/graphify-out/GRAPH_REPORT.md
  • public/code-map/graphify-out/graph.html
  • public/code-map/graphify-out/graph.json
🚧 Files skipped from review as they are similar to previous changes (2)
  • .gitignore
  • .graphifyignore

Comment thread docs/code-map/README.md
Comment on lines +9 to +15
Regenerate the map from the repository root:

```bash
graphify extract . --code-only --out public/code-map
graphify cluster-only public/code-map --no-label
jq -c . public/code-map/graphify-out/graph.json > /tmp/ants-graph.json
mv /tmp/ants-graph.json public/code-map/graphify-out/graph.json

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Keep the documented commit provenance aligned with regeneration.

These commands analyze the current checkout, while line 3 claims the map represents commit 129dbecf. Regenerating from a later checkout will silently invalidate that claim. Either pin the workflow to 129dbecf or change the description to state that the map reflects the repository state at generation time.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/code-map/README.md` around lines 9 - 15, Update the regeneration
instructions and accompanying commit description in the README so they remain
consistent: either make the workflow check out and generate from commit
129dbecf, or describe the map as reflecting the repository state at generation
time. Ensure the documented provenance cannot contradict the checkout analyzed
by the commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use graphify to draw a map of the code

1 participant