How fos2936/etymograph works
This is a browser-based etymological graph explorer: the client requests graph data, builds a view, and lets users browse reconstructed roots or trace a selected word’s ancestry. The graph utilities derive collapsed root-to-language views and individual word paths; the visualization, legend, and root desk present them. Both TypeScript sources and corresponding browser JavaScript are represented because both are substantial indexed modules. The API implementation and SQL schema are present in the tree, but their relationship and database behavior are not shown in the excerpts.
Main entry points: main.ts Client entry · main.js Browser entry · legend.ts Legend UI · legend.js Browser legend UI
Components 19
Browser experience
- Client entry
src/main.ts - Browser entry
public/js/main.js - Graph renderer
src/graph/constellation.ts - Browser graph renderer
public/js/graph/constellation.js - Legend UI
src/ui/legend.ts - Browser legend UI
public/js/ui/legend.js - Root explorer UI
src/ui/roots-desk.ts - Browser root explorer
public/js/ui/roots-desk.js
Graph and language domain
- Graph transforms
src/graph/tree-utils.ts - Browser graph transforms
public/js/graph/tree-utils.js - Branch palette
src/config/branches.ts - Browser branch palette
public/js/config/branches.js - Language flags
src/config/languages.ts - Browser language flags
public/js/config/languages.js - Graph data types
src/types.ts
Data service
- HTTP server
server.js - Graph database schema
database/script.sql
Other components
- Explorer
- Web browser
Connections 26
- Explorer → Web browser: uses
- Web browser → Client entry: loads app
- Web browser → Browser entry: loads app
- Client entry → HTTP server: fetches graph
src/main.ts - Browser entry → HTTP server: fetches graph
public/js/main.js - Client entry → Legend UI: renders legend
src/main.ts - Client entry → Graph transforms: builds views
src/main.ts - Client entry → Graph renderer: initializes graph
src/main.ts - Client entry → Root explorer UI: renders root desk
src/main.ts - Browser entry → Browser legend UI: renders legend
public/js/main.js - Browser entry → Browser graph transforms: builds views
public/js/main.js - Browser entry → Browser graph renderer: initializes graph
public/js/main.js - Browser entry → Browser root explorer: renders root desk
public/js/main.js - Graph renderer → Branch palette: colors nodes
src/graph/constellation.ts - Browser graph renderer → Browser branch palette: colors nodes
public/js/graph/constellation.js - Legend UI → Branch palette: uses colors
src/ui/legend.ts - Legend UI → Language flags: uses flags
src/ui/legend.ts - Browser legend UI → Browser branch palette: uses colors
public/js/ui/legend.js - Browser legend UI → Browser language flags: uses flags
public/js/ui/legend.js - Root explorer UI → Graph transforms: gets descendants
src/ui/roots-desk.ts - Root explorer UI → Language flags: uses flags
src/ui/roots-desk.ts - Browser root explorer → Browser graph transforms: gets descendants
public/js/ui/roots-desk.js - Browser root explorer → Browser language flags: uses flags
public/js/ui/roots-desk.js - Graph transforms → Branch palette: identifies roots
src/graph/tree-utils.ts - Browser graph transforms → Browser branch palette: identifies roots
public/js/graph/tree-utils.js - HTTP server → Graph database schema: may access