Repository navigation
🎉 Timeline Generator v0.1.0
Interactive knowledge graph explorer for visualizing intellectual networks as force-directed graphs with AI-powered biographical research.
✨ Features
Graph Visualization
- Force-directed graph — D3-powered SVG graph with drag, hover, click-to-select, zoom/pan
- Domain-colored nodes — 21 seed persons from the R. Buckminster Fuller intellectual network
- Typed edge labels — 24 EdgeTypes across 10 categories with inline labels on hover
- Gold selection glow — Animated gold (#FFD700) ring highlights the selected node
- Layer presets — All, Intellectual, Social, Family, Institutional, Conflicts
Timeline
- SVG lifespan bars — Horizontal bars showing each person's lifespan
- D3 brush time filtering — Drag to filter the graph by time window
- Smart date formatting — Same-year collapse (e.g. just "1941" instead of "1941–1941")
Person Detail Panel
- Full biography, occupations, affiliations, events timeline, relationships, tags, external links
- ✨ Enrich Profile button — One-click Perplexity AI enrichment from the detail panel
- Error boundary recovery UI ("Try again") for incomplete Perplexity data
Edge Inspector
- Type badge, source→target, description, dates, confidence + strength bars, tags
Research Panel (Perplexity AI)
- 🔍 New Person — Search for any historical figure; results include bio, connections, events, citations
- ✨ Enrich Existing — Searchable dropdown of all graph persons for AI-powered enrichment
- Existing-name injection into prompts for precise edge matching
- Loading UX: "Enriching [Person Name]…" with spinner
Layer System
- 10 edge categories with color-coded toggles and counts
- 6 presets (All, Intellectual, Social, Family, Institutional, Conflicts)
- Confidence floor slider
🏗️ Architecture
| Component | Technology |
|---|---|
| Frontend | React 19, D3.js 7, Zustand, Vite |
| Backend | Fastify 5, Neo4j 5 (Cypher), tsx |
| Shared | TypeScript (strict), Zod schemas |
| Research | Perplexity Sonar API |
| Testing | Vitest |
| Package Manager | pnpm workspaces |
📦 Monorepo Structure
packages/
├── shared — Types, Zod schemas, enums, constants (72 tests)
├── seed-data — 20 persons, 42 edges, 46 events (28 tests)
├── backend — 19 REST endpoints, IGraphStore interface (104 tests)
└── frontend — React SPA with D3 graph + SVG timeline
🧪 Test Suite — 204 Tests
| Package | Tests | Files |
|---|---|---|
| shared | 72 | 3 (constants, schemas, exports) |
| seed-data | 28 | 1 (data integrity) |
| backend | 104 | 3 (store, routes, research-routes) |
| Total | 204 | 7 |
📖 Documentation
16 comprehensive docs files covering:
- Architecture, API reference (all 19 endpoints with request/response shapes)
- Frontend guide, backend guide, research integration
- Data model, seed data, configuration, testing
- Getting started, contributing, glossary, roadmap
- 5 screenshots + 3 demo recordings in
docs/assets/
🚀 Quick Start
git clone https://github.com/docxology/timeline_generator.git
cd timeline_generator
./run.sh # Install, test, launch (requires Docker for Neo4j)
./run.sh --skip-tests # Skip test suite🔑 Environment
| Variable | Required | Description |
|---|---|---|
PERPLEXITY_API_KEY |
No | Enables AI research; graceful fallback if missing |
PORT |
No | Backend port (default: 3001) |
Full Changelog: https://github.com/docxology/timeline_generator/commits/v0.1.0