How indredk/history works
Chinese Historical Panorama is an interactive platform for exploring Chinese history across time, people, events, culture, mythology, dynasties, and evolving historical maps. Users enter through a feature page, explore and filter historical material, and can manage event records; the backend exposes domain APIs backed by SQLite. The README documents synchronized timeline/map/event exploration, while sampled source confirms route registration and several controller-to-service calls. Frontend-to-API wiring and several domain implementations were not sampled, so those connections are shown only as unverified dashed links or omitted.
Main entry points: routes.ts Feature routes · prisma.service.ts Prisma access · timeline Timeline explorer · timelineApi.ts Timeline API client
Components 21
Explore UI
- Feature routes
frontend/src/router/routes.ts - Timeline explorer
frontend/src/features/timeline - Historical maps
frontend/src/features/map - People archive
frontend/src/features/people - Culture explorer
frontend/src/features/culture - Mythology graph
frontend/src/features/mythology - Dynasty views
frontend/src/features/dynasties - Event manager
frontend/src/features/timeline/components/EventManager.tsx
Historical domains
- Event operations
backend/src/event/event.service.ts
API layer
- Timeline API client
frontend/src/services/timeline/timelineApi.ts - Map data service
frontend/src/services/map/mapDataService.ts - Event endpoints
backend/src/event/event.controller.ts - Places and boundaries
backend/src/map/map.controller.ts - Dynasty records
backend/src/dynasty/dynasty.controller.ts - Schools and scholars
backend/src/culture/school.controller.ts - People records
backend/src/person/person.controller.ts - Mythology records
backend/src/mythology/mythology.controller.ts - Religion graph API
backend/src/religion/religion.controller.ts
Persistence
- Prisma access
backend/src/prisma/prisma.service.ts - SQLite database
Other components
- History explorer
Connections 21
- History explorer → Feature routes: opens
README.md - Feature routes → Timeline explorer: routes to
frontend/src/router/routes.ts - Feature routes → Historical maps: routes to
frontend/src/router/routes.ts - Feature routes → People archive: routes to
frontend/src/router/routes.ts - Feature routes → Culture explorer: routes to
frontend/src/router/routes.ts - Feature routes → Mythology graph: routes to
frontend/src/router/routes.ts - Feature routes → Dynasty views: routes to
frontend/src/router/routes.ts - Timeline explorer → Event manager: includes
frontend/src/features/timeline/components/EventManager.tsx - Event manager → Timeline API client: mutates events
frontend/src/features/timeline/components/EventManager.tsx - Timeline explorer → Timeline API client: loads timeline
- Historical maps → Map data service: loads map data
- Timeline API client → Event endpoints: calls API
- Event endpoints → Event operations: delegates
backend/src/event/event.controller.ts - Places and boundaries → Map data service: delegates
backend/src/map/map.controller.ts - Dynasty records → Prisma access: queries via
- Schools and scholars → Prisma access: queries via
- People records → Prisma access: queries via
- Mythology records → Prisma access: queries via
- Religion graph API → Prisma access: queries via
- Event operations → Prisma access: queries via
- Prisma access → SQLite database: persists to