How bxshcn/analects-workbench works
This is an interactive Analects knowledge-graph workspace. Readers explore person relationships in a chord diagram, navigate concepts and relations through indexes, and inspect linked verses with glosses and commentary. The app coordinates graph, detail, co-occurrence, and verse data through a shared store; history and URL deep links preserve exploration state. The graph highlights documented component calls and data-loading relationships. Some capabilities are identified from the README and source index, while their detailed implementations were not sampled.
Main entry points: analectsStore.ts Analects Store · App.tsx App Shell · BottomPanel.tsx Bottom Panel · RelationIndex.tsx Relation Index
Components 19
Workspace
- App Shell
src/App.tsx - Top Tabs
src/components/TopTabs.tsx - Bottom Panel
src/components/BottomPanel.tsx
Graph Exploration
- Person Chord
src/components/PersonChordTab.tsx - Chord Layout
src/lib/chord.ts - History Bar
src/components/HistoryBar.tsx
Indexes and Reading
- Relation Index
src/components/RelationIndex.tsx - Index Groups
src/components/IndexGroups.tsx - Full Text Index
src/components/FullTextIndex.tsx - Node Profile
src/components/NodeProfile.tsx - Verse Research
src/components/VerseResearch.tsx - Verse Card
src/components/VerseCard.tsx
State and Logic
- Deep Links
src/hooks/useDeepLink.ts - Analects Store
src/store/analectsStore.ts - JSON Fetcher
src/lib/api.ts - Graph Logic
src/lib/graph.ts - Data Model
src/types/data.ts
Other components
- Reader
- JSON Data Packages
Connections 28
- Reader → App Shell: opens
src/App.tsx - App Shell → Top Tabs: renders
src/App.tsx - App Shell → Person Chord: renders
src/App.tsx - App Shell → Bottom Panel: renders
src/App.tsx - App Shell → Analects Store: reads state
src/App.tsx - App Shell → Deep Links: registers
src/App.tsx - Top Tabs → Analects Store: updates tabs
src/components/TopTabs.tsx - Bottom Panel → History Bar: renders
src/components/BottomPanel.tsx - Bottom Panel → Node Profile: renders
src/components/BottomPanel.tsx - Bottom Panel → Relation Index: renders
src/components/BottomPanel.tsx - Bottom Panel → Verse Research: renders
src/components/BottomPanel.tsx - Bottom Panel → Full Text Index: renders
src/components/BottomPanel.tsx - Person Chord → Chord Layout: computes layout
src/components/PersonChordTab.tsx - Person Chord → Analects Store: reads state
src/components/PersonChordTab.tsx - Relation Index → Index Groups: renders
src/components/RelationIndex.tsx - Relation Index → Analects Store: reads state
src/components/RelationIndex.tsx - Relation Index → Graph Logic: groups relations
src/components/RelationIndex.tsx - Full Text Index → Analects Store: reads state
src/components/FullTextIndex.tsx - Node Profile → Analects Store: reads state
src/components/NodeProfile.tsx - History Bar → Analects Store: updates history
src/components/HistoryBar.tsx - History Bar → Graph Logic: uses graph logic
src/components/HistoryBar.tsx - Verse Research → Verse Card: renders
src/components/VerseResearch.tsx - Verse Research → Analects Store: reads verses
src/components/VerseResearch.tsx - Deep Links → Analects Store: applies state
src/hooks/useDeepLink.ts - Deep Links → Graph Logic: resolves links
src/hooks/useDeepLink.ts - Analects Store → JSON Fetcher: fetches data
src/store/analectsStore.ts - Analects Store → JSON Data Packages: loads JSON
src/store/analectsStore.ts - Analects Store → Graph Logic: computes nodes
src/store/analectsStore.ts