An interactive full-stack developer tool that helps engineers understand unfamiliar repositories faster. Paste a GitHub URL or upload a local codebase, then explore a visual architecture map with AI-style summaries, onboarding guidance, and natural-language search.
Next.js · React · TypeScript · PostgreSQL · React Flow · AI-ready search
Codebase Memory Map ships with a built-in demo repository called Pulse Commerce.
Use it to:
auth, checkout, routing, or worker| Layer | Technology |
|---|---|
| Frontend | Next.js 15, React 19, TypeScript |
| Backend | Next.js App Router + route handlers |
| Database | PostgreSQL, optional pgvector |
| Visualization | React Flow |
| AI Layer | Modular summarization + semantic-ready search services |
| Styling | Custom CSS system and responsive UI |
git clone https://github.com/tymofiikalnytskyi/codebase-memory-map.git
cd codebase-memory-map
npm install
cp .env.example .env.local
Optional environment variables:
DATABASE_URL for PostgreSQL persistenceGITHUB_TOKEN for improved GitHub API reliability and rate limitsOPENAI_API_KEY for future real LLM/embedding integrationnpm run dev
Open http://localhost:3000.
Codebase Memory Map turns a repository into something explorable instead of implicit.
This makes it easier to:
The MVP currently supports:
{ path, content } objectsExample:
[
{
"path": "src/auth/session.ts",
"content": "export async function getSession() { return null; }"
},
{
"path": "src/app/page.tsx",
"content": "import { getSession } from '../auth/session'; export default function Page() { return null; }"
}
]
codebase-memory-map/
├── app/
│ ├── api/
│ │ ├── ingest/
│ │ │ └── route.ts
│ │ └── repositories/
│ ├── repositories/
│ │ └── [repositoryId]/
│ │ ├── file/
│ │ ├── map/
│ │ └── page.tsx
│ ├── layout.tsx
│ └── page.tsx
├── components/
│ ├── map/
│ │ ├── memory-node.tsx
│ │ └── repository-map.tsx
│ ├── marketing/
│ ├── ui/
│ ├── app-shell.tsx
│ ├── file-detail-view.tsx
│ └── repository-workspace.tsx
├── lib/
│ ├── server/
│ │ ├── ai/
│ │ ├── analysis/
│ │ ├── db/
│ │ ├── github/
│ │ ├── search/
│ │ └── storage/
│ └── shared/
├── LICENSE
├── package.json
└── README.md
lib/server/analysis handles parsing and graph constructionlib/server/ai handles summaries and semantic-ready logiclib/server/search handles natural-language query orchestrationlib/server/github handles remote repository ingestionlib/server/db handles persistence contracts and schemacomponents/map contains the dedicated repository mapping experienceThe codebase is intentionally structured so parsing, search, AI summarization, and UI remain separate and extensible.
pgvectorTymofii Kalnytskyi
CS & AI Student @ Adelphi University
GitHub · LinkedIn
MIT - feel free to use this as a starting point for your own projects.