How ysfztpp/termquake works
TermQuake is a multilingual disaster-response terminology product: people search or browse an entry, choose a language pair, and present the term to someone else, including in offline use. Its repository also contains the editorial data workflow: SQL-backed terminology is built and maintained, reviewed or supplemented, then exported for the website and downloadable formats. The README documents several workflows not visible in sampled implementation; those links are cited to it. The app excerpt is partial, so its data-loading path is not asserted.
Main entry points: app.tsx Search and browse app · cli.py TermQuake commands · db.py Build and dump · export.py Data export
Components 26
Offline terminology site
- Search and browse app
site/src/app.tsx - Search and folding
site/src/search.ts - Entry presentation
site/src/components/entry-row.tsx - Full-screen term
site/src/components/show-mode.tsx - Suggestion form
site/src/components/suggest.tsx - Language coverage
site/src/components/coverage.tsx - Saved preferences
site/src/storage.ts - Interface translations
site/src/i18n.ts - Offline support
site/src/pwa.ts
Terminology data
- Canonical SQL data
data/db - Database schema
db/schema.sql - Sheet snapshot
data/legacy - AI suggestions
data/ai
Editorial workflow
- Review suggestions
data/review - TermQuake commands
src/termquake/cli.py - Build and dump
src/termquake/db.py - Sheet import and fetch
src/termquake/sheet.py - Text cleanup
src/termquake/clean.py - Term standardisation
src/termquake/standardise.py - Language review sheets
src/termquake/review.py - AI data import
src/termquake/ai.py
Publishing and exports
- Data export
src/termquake/export.py - Offline site data
site/public - TBX CSV SQLite
site/public
Other components
- Interpreter or responder
- GitHub issue
Connections 27
- Interpreter or responder → Search and browse app: searches or browses
README.md - Search and browse app → Search and folding: searches terms
site/src/app.tsx - Search and browse app → Entry presentation: renders entries
site/src/app.tsx - Search and browse app → Full-screen term: opens full screen
README.md - Search and browse app → Suggestion form: opens form
site/src/app.tsx - Search and browse app → Language coverage: shows coverage
site/src/app.tsx - Search and browse app → Saved preferences: saves choices
site/src/app.tsx - Search and browse app → Offline support: checks offline state
site/src/app.tsx - Search and browse app → Interface translations: uses interface text
site/src/app.tsx - Suggestion form → GitHub issue: creates issue or text
README.md - Database schema → Build and dump: defines tables
README.md - Canonical SQL data → Build and dump: builds SQLite
README.md - Build and dump → Canonical SQL data: dumps edited data
README.md - Sheet snapshot → TermQuake commands: imports snapshot
README.md - TermQuake commands → Sheet import and fetch: dispatches import
src/termquake/cli.py - TermQuake commands → Build and dump: dispatches build and dump
src/termquake/cli.py - TermQuake commands → Text cleanup: dispatches cleanup
src/termquake/cli.py - TermQuake commands → Term standardisation: dispatches standardise
src/termquake/cli.py - TermQuake commands → Language review sheets: dispatches review
src/termquake/cli.py - TermQuake commands → AI data import: dispatches AI import
src/termquake/cli.py - Review suggestions → Language review sheets: provides suggestions
src/termquake/review.py - AI suggestions → AI data import: provides suggestions
README.md - Build and dump → Data export: exports database
README.md - Data export → Offline site data: writes app data
src/termquake/export.py - Data export → TBX CSV SQLite: writes formats
src/termquake/export.py - Interpreter or responder → TBX CSV SQLite: downloads terminology
README.md - Sheet import and fetch → GitHub issue: fetches read-only sheet
README.md