Skip to content

Commit 493546d

Browse files
committed
chore: rename codebase-visualizer -> codebase-intelligence
Package name, bin, MCP server names, metadata, README, specs, CLAUDE.md.
1 parent 18f0f80 commit 493546d

14 files changed

Lines changed: 55 additions & 55 deletions

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Codebase Visualizer - Claude Code Rules
1+
# Codebase Intelligence - Claude Code Rules
22

33
## Project Overview
44

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22

3-
# codebase-visualizer
3+
# codebase-intelligence
44

55
**3D interactive codebase visualization for TypeScript projects.**
66

@@ -24,7 +24,7 @@ Parse your codebase, build a dependency graph, compute architectural metrics, an
2424
## Quick Start
2525

2626
```bash
27-
npx codebase-visualizer ./src
27+
npx codebase-intelligence ./src
2828
```
2929

3030
That's it. Opens a 3D map at `http://localhost:3333`.
@@ -65,30 +65,30 @@ That's it. Opens a 3D map at `http://localhost:3333`.
6565
Run directly with npx (no install needed):
6666

6767
```bash
68-
npx codebase-visualizer ./src
68+
npx codebase-intelligence ./src
6969
```
7070

7171
Or install globally:
7272

7373
```bash
74-
npm install -g codebase-visualizer
75-
codebase-visualizer ./src
74+
npm install -g codebase-intelligence
75+
codebase-intelligence ./src
7676
```
7777

7878
## Usage
7979

8080
### Browser Mode (default)
8181

8282
```bash
83-
npx codebase-visualizer ./src
83+
npx codebase-intelligence ./src
8484
# => Parsed 142 files, 387 functions, 612 dependencies
8585
# => 3D map ready at http://localhost:3333
8686
```
8787

8888
### MCP Mode
8989

9090
```bash
91-
npx codebase-visualizer --mcp ./src
91+
npx codebase-intelligence --mcp ./src
9292
```
9393

9494
Starts a stdio MCP server. No browser, no HTTP.
@@ -106,22 +106,22 @@ Starts a stdio MCP server. No browser, no HTTP.
106106
### Claude Code (one-liner)
107107

108108
```bash
109-
claude mcp add -s user -t stdio codebase-visualizer -- npx -y codebase-visualizer@latest . --mcp
109+
claude mcp add -s user -t stdio codebase-intelligence -- npx -y codebase-intelligence@latest . --mcp
110110
```
111111

112112
Done. Available in all projects. Verify with `/mcp` inside Claude Code.
113113

114114
To scope to a single project instead:
115115

116116
```bash
117-
claude mcp add -s project -t stdio codebase-visualizer -- npx -y codebase-visualizer@latest ./src --mcp
117+
claude mcp add -s project -t stdio codebase-intelligence -- npx -y codebase-intelligence@latest ./src --mcp
118118
```
119119

120120
### Claude Code (plugin)
121121

122122
```bash
123123
git clone https://github.com/bntvllnt/claude-plugins.git
124-
claude --plugin-dir ./claude-plugins/plugins/codebase-visualizer
124+
claude --plugin-dir ./claude-plugins/plugins/codebase-intelligence
125125
```
126126

127127
### Claude Code (manual)
@@ -131,10 +131,10 @@ Add to `.mcp.json` in your project root:
131131
```json
132132
{
133133
"mcpServers": {
134-
"codebase-visualizer": {
134+
"codebase-intelligence": {
135135
"type": "stdio",
136136
"command": "npx",
137-
"args": ["-y", "codebase-visualizer@latest", "./src", "--mcp"],
137+
"args": ["-y", "codebase-intelligence@latest", "./src", "--mcp"],
138138
"env": {}
139139
}
140140
}
@@ -148,9 +148,9 @@ Add to `.cursor/mcp.json` or `.vscode/mcp.json`:
148148
```json
149149
{
150150
"servers": {
151-
"codebase-visualizer": {
151+
"codebase-intelligence": {
152152
"command": "npx",
153-
"args": ["-y", "codebase-visualizer@latest", "./src", "--mcp"]
153+
"args": ["-y", "codebase-intelligence@latest", "./src", "--mcp"]
154154
}
155155
}
156156
}
@@ -239,7 +239,7 @@ Bottom-left legend shows view-specific color coding. When clouds are enabled, ad
239239
## Architecture
240240

241241
```
242-
codebase-visualizer <path>
242+
codebase-intelligence <path>
243243
|
244244
v
245245
+---------+ +---------+ +----------+ +---------+
@@ -299,8 +299,8 @@ After merge, `Tag Release` creates and pushes `vX.Y.Z`, which triggers `Publish
299299
Contributions are welcome. Please open an issue first to discuss what you'd like to change.
300300

301301
```bash
302-
git clone https://github.com/bntvllnt/codebase-visualizer.git
303-
cd codebase-visualizer
302+
git clone https://github.com/bntvllnt/codebase-intelligence.git
303+
cd codebase-intelligence
304304
pnpm install
305305
pnpm dev # tsx watch mode
306306
pnpm test # vitest

app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type { Metadata } from "next";
22
import "./globals.css";
33

44
export const metadata: Metadata = {
5-
title: "Codebase Visualizer",
6-
description: "3D interactive codebase visualization",
5+
title: "Codebase Intelligence",
6+
description: "3D interactive codebase intelligence",
77
};
88

99
export default function RootLayout({

components/graph-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function GraphProvider({ children }: { children: React.ReactNode }) {
6464

6565
useEffect(() => {
6666
if (projectName) {
67-
document.title = `${projectName} — Codebase Visualizer`;
67+
document.title = `${projectName} — Codebase Intelligence`;
6868
}
6969
}, [projectName]);
7070

hooks/use-graph-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function useGraphData(): {
4747
graphData,
4848
forceData,
4949
groupData,
50-
projectName: metaData?.projectName ?? "Codebase Visualizer",
50+
projectName: metaData?.projectName ?? "Codebase Intelligence",
5151
staleness: metaData?.staleness,
5252
isLoading: graphLoading || forceLoading,
5353
error: graphError ?? forceError,

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "codebase-visualizer",
2+
"name": "codebase-intelligence",
33
"version": "1.1.0",
44
"description": "3D interactive codebase visualization with MCP integration for LLM-assisted code understanding",
55
"type": "module",
66
"main": "dist/cli.js",
77
"bin": {
8-
"codebase-visualizer": "dist/cli.js"
8+
"codebase-intelligence": "dist/cli.js"
99
},
1010
"packageManager": "pnpm@10.28.2",
1111
"scripts": {
@@ -38,12 +38,12 @@
3838
"license": "MIT",
3939
"repository": {
4040
"type": "git",
41-
"url": "git+https://github.com/bntvllnt/codebase-visualizer.git"
41+
"url": "git+https://github.com/bntvllnt/codebase-intelligence.git"
4242
},
4343
"bugs": {
44-
"url": "https://github.com/bntvllnt/codebase-visualizer/issues"
44+
"url": "https://github.com/bntvllnt/codebase-intelligence/issues"
4545
},
46-
"homepage": "https://github.com/bntvllnt/codebase-visualizer#readme",
46+
"homepage": "https://github.com/bntvllnt/codebase-intelligence#readme",
4747
"dependencies": {
4848
"3d-force-graph": "^1.79.1",
4949
"@modelcontextprotocol/sdk": "^1.0.0",

specs/active/2026-02-18-analytics-v2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ POSTCONDITION: User/LLM has actionable data on file health from both structural
6767

6868
### Primary Journey B: LLM KB
6969

70-
ACTOR: LLM (Claude) helping build codebase-visualizer
70+
ACTOR: LLM (Claude) helping build codebase-intelligence
7171
GOAL: Understand architecture, metrics, patterns to assist development
7272
PRECONDITION: docs/ folder exists in repo
7373

specs/active/2026-02-18-nextjs-migration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tier: standard
1010

1111
## Context
1212

13-
Migrate codebase-visualizer from Express+vanilla HTML to Next.js App Router with Tailwind CSS and shadcn/ui. Full rewrite of the 3D rendering layer (3d-force-graph CDN → react-force-graph-3d npm), Express API routes → Next.js Route Handlers, MCP tools → Next.js API integration. Pipeline code (parser/graph/analyzer) stays untouched.
13+
Migrate codebase-intelligence from Express+vanilla HTML to Next.js App Router with Tailwind CSS and shadcn/ui. Full rewrite of the 3D rendering layer (3d-force-graph CDN → react-force-graph-3d npm), Express API routes → Next.js Route Handlers, MCP tools → Next.js API integration. Pipeline code (parser/graph/analyzer) stays untouched.
1414

1515
## Codebase Impact (MANDATORY)
1616

@@ -67,9 +67,9 @@ Migrate codebase-visualizer from Express+vanilla HTML to Next.js App Router with
6767

6868
ACTOR: Developer analyzing a TypeScript codebase
6969
GOAL: Visualize codebase structure in an interactive 3D graph with modern UI
70-
PRECONDITION: TypeScript project exists, codebase-visualizer installed
70+
PRECONDITION: TypeScript project exists, codebase-intelligence installed
7171

72-
1. User runs `codebase-visualizer ./src`
72+
1. User runs `codebase-intelligence ./src`
7373
-> System parses codebase, builds graph, starts Next.js server
7474
-> User sees "Server ready at http://localhost:3333" + browser opens
7575

@@ -93,7 +93,7 @@ PRECONDITION: TypeScript project exists, codebase-visualizer installed
9393
-> System live-updates graph rendering
9494
-> User sees immediate visual feedback
9595

96-
7. User runs `codebase-visualizer ./src --mcp`
96+
7. User runs `codebase-intelligence ./src --mcp`
9797
-> System starts MCP stdio server (unchanged behavior)
9898
-> LLM tools work as before
9999

@@ -133,7 +133,7 @@ EC3. No git history: Churn metrics show 0, churn view still renders with uniform
133133

134134
### Must Have (BLOCKING)
135135

136-
- [ ] AC-1: GIVEN a TS project WHEN user runs `codebase-visualizer ./src` THEN Next.js server starts and browser opens with 3D graph
136+
- [ ] AC-1: GIVEN a TS project WHEN user runs `codebase-intelligence ./src` THEN Next.js server starts and browser opens with 3D graph
137137
- [ ] AC-2: GIVEN the app is loaded WHEN user clicks each of the 8 view tabs THEN graph re-renders with correct view-specific styling (colors, sizes, layout)
138138
- [ ] AC-3: GIVEN a graph is rendered WHEN user clicks a node THEN shadcn-styled detail panel shows with all file metrics
139139
- [ ] AC-4: GIVEN the settings panel WHEN user adjusts any slider/checkbox THEN graph updates in real-time
@@ -268,7 +268,7 @@ Confirmed — spec solves the right problem. The current vanilla HTML approach w
268268
### Open Items
269269

270270
- [risk] react-force-graph-3d scene access for module clouds -> explore (spike before full implementation)
271-
- [question] Should CLI `codebase-visualizer ./src` run `next dev` or `next start` (pre-built)? -> question
271+
- [question] Should CLI `codebase-intelligence ./src` run `next dev` or `next start` (pre-built)? -> question
272272
- [improvement] Consider keeping Express as fallback for environments where Next.js is too heavy -> no action (out of scope)
273273

274274
## Notes

specs/active/2026-02-28-agent-intelligence-roadmap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ semver: 2.0.0 (Phase 1 re-export fix is breaking metric change)
1111

1212
## Context
1313

14-
codebase-visualizer has strong 3D visualization + file-level metrics but weak agent tooling. GitNexus proves that precomputed symbol-level intelligence (call graphs, process tracing, community detection, search) makes coding agents 5-10x more effective. Goal: surpass GitNexus on both fronts — richer UI for humans AND more complete MCP tools for AI agents.
14+
codebase-intelligence has strong 3D visualization + file-level metrics but weak agent tooling. GitNexus proves that precomputed symbol-level intelligence (call graphs, process tracing, community detection, search) makes coding agents 5-10x more effective. Goal: surpass GitNexus on both fronts — richer UI for humans AND more complete MCP tools for AI agents.
1515

1616
Current state: 8 MCP tools (file-level), 8 UI views (3D), 74 tests.
1717
Target state: 13+ MCP tools (symbol-level), 6 MCP resources, 2 MCP prompts, enhanced UI views, persistent JSON index in `.code-visualizer/`. No embedded AI chat — MCP is the interface; external agents (Claude Code, Codex, OpenCode, Cursor) connect via stdio + HTTP/SSE transports.

specs/active/2026-03-02-group-spatial-clustering.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ EC3. Zero cluster strength: Equivalent to current behavior — no grouping force
111111
- [x] Error states handled (jitter prevention via distanceMin=5)
112112
- [x] No hardcoded secrets or credentials
113113
- [x] Cloud cleanup/disposal still works (no memory leaks from new geometry)
114-
- [x] Visual verification on both small (codebase-visualizer, 19 files) and large (the-forge, 500+ files) projects
114+
- [x] Visual verification on both small (codebase-intelligence, 19 files) and large (the-forge, 500+ files) projects
115115

116116
### Advisory
117117

@@ -144,7 +144,7 @@ EC3. Zero cluster strength: Equivalent to current behavior — no grouping force
144144
|------------|-------------|-----------------|---------|
145145
| `d3-force-clustering` works with react-force-graph-3d | Same author, docs say "compatible with d3-force-3d" | Kill criteria triggered — used custom force instead | RESOLVED (custom `createClusterForce` works, extracted to `lib/cluster-force.ts`) |
146146
| Box geometry improves group visibility over sphere | Visual verification: boxes have clear edges, labels sit above | Boxes can clip when groups are close | VALID (visually confirmed on both small and large projects) |
147-
| Default strength 0.3 produces good results | Visible clustering on codebase-visualizer (19 files) | Inter-group links may dominate on dense graphs | VALID (slider allows tuning; 0.3 is a safe default) |
147+
| Default strength 0.3 produces good results | Visible clustering on codebase-intelligence (19 files) | Inter-group links may dominate on dense graphs | VALID (slider allows tuning; 0.3 is a safe default) |
148148
| distanceMin=5 prevents oscillation | Nodes within 5 units of centroid skip force | Centroid shifts each tick — boundary jitter possible | RISKY (mitigated by velocity decay; not observed in practice) |
149149
| WireframeGeometry produces clean box outline || WireframeGeometry triangulates → diagonal lines | FIXED (switched to EdgesGeometry for clean 12-edge box) |
150150
| Label aspect ratio 0.15 matches canvas || Canvas 512×96 = 0.1875 ratio, not 0.15 | FIXED (updated to 0.1875) |

0 commit comments

Comments
 (0)