- Open your terminal
- Run
cd /path/to/codeview - Run
pnpm install— wait for it to finish - Run
pnpm dev— you should see "Ready on http://localhost:4200" - Open http://localhost:4200 — the app shows a demo architecture graph
- Open a terminal in any TypeScript/JavaScript project folder
- Run
npx tsx /path/to/codeview/apps/cli/bin/codeview.mjs . - CodeView scans your project, builds the architecture graph, and opens the browser
- You should see your project's components organized by layer (UI, API, Data, Utils, External)
.ts,.tsx,.js,.jsx,.mts,.mjsfiles- Respects your
.gitignore(skipsnode_modules,dist, etc.)
- React components — JSX return, hooks, contexts, forwardRef/memo
- Next.js — pages, layouts, API routes (App Router + Pages Router), middleware
- Database — Prisma schemas, Drizzle tables, TypeORM entities
- Utilities — helpers, config files, service clients
npx codeview [directory] [options]
Options:
--port <number> Port for the web server (default: 4200)
--no-open Don't open the browser automatically
-h, --help Show help
pnpm install
pnpm build
pnpm --filter @codeview/analyzer test
pnpm --filter @codeview/graph-engine test
apps/
web/ Next.js 15 visualization app (port 4200)
cli/ CLI entry point (npx codeview)
packages/
analyzer/ File scanning + TypeScript parser + framework detectors
graph-engine/ Graph builder + clustering + labeler + ELK.js layout
shared/ Shared TypeScript types
mcp-server/ (Slice 4 — not yet implemented)
prompt-builder/ (Slice 2 — not yet implemented)
watcher/ (Slice 3 — not yet implemented)
None. CodeView is fully standalone — no API keys, no database, no cloud services needed. It reads your local filesystem only.