An interactive galaxy map of Marvel heroes and connections, powered by Comic Vine.
Galaxies and relationship links appear only when Comic Vine returns real character data and connections. Seeds in the repo only say who to look up and where to place them — not fake edges.
Live teaching idea: pick one galaxy → explore local Comic Vine links → optionally reveal bridges to other galaxies.
- Next.js (App Router) + TypeScript + Tailwind
- React Flow canvas
- Comic Vine API (server-side graph builder)
- Get a free API key: comicvine.gamespot.com/api (login required; non-commercial use only).
- Configure env:
npm install
cp .env.example .env.localCOMIC_VINE_API_KEY=your_key_here
- Run:
npm run devOpen http://localhost:3000/map.
First load can take ~30–60s while we resolve characters and pace requests for Comic Vine rate limits. Results are cached.
Without a key, /map shows a setup message instead of galaxies.
- Overview — galaxies that Comic Vine successfully populated
- Enter a galaxy — local heroes + only Comic Vine–confirmed teammate/ally/rival links
- Links to other galaxies — optional bridges when Vine links cross regions
- Seeds live in
src/data/seeds.ts; graph builder insrc/lib/build-graph.ts
Shareable URLs: /map?galaxy=earth, /map?galaxy=cosmic&bridges=1&focus=thanos.
- Import the GitHub repo in Vercel
- Set
COMIC_VINE_API_KEYin Project → Environment Variables - Deploy
| Command | Description |
|---|---|
npm run dev |
Local development |
npm run build |
Production build |
npm run start |
Run production build |
npm run lint |
ESLint |
MIT — see LICENSE. Marvel characters © Marvel. Comic data © Comic Vine / Fandom. This is an unofficial educational fan project.