How kidwai05/mythos works
MYTHOS is a local-first comparative mythology atlas. Visitors browse traditions, characters, stories, sources and an interactive relationship graph; the browser requests catalogue data through the read-only API, which serves SQLite-backed records and search. Canonical JSON is loaded into a rebuildable database. The README documents the wider research-verification model and feature set; several frontend feature modules and backend routes are represented by their indexed paths, but their internal behavior was not sampled, so their connections are limited to documented or visible relationships.
Main entry points: common.js Shared Browser Client · api.py Read API · __init__.py Flask Web App · loader.py Seed Loader
Components 22
Canonical Data
- Canonical JSON
data - Seed Loader
backend/seed/loader.py - SQLite Database
backend/schema.sql
Backend Services
- Flask Web App
backend/app/__init__.py - Read API
backend/app/api.py - Catalogue
backend/app/catalog.py - Query Repository
backend/app/repository.py - Search Engine
backend/app/search.py - DB Connection
backend/app/db.py
Web Experience
- Page Templates
frontend/templates - Shared Browser Client
frontend/static/js/common.js - Themes And Effects
frontend/static/js/fx.js - Character Profiles
frontend/static/js/character.js - Knowledge Graph
frontend/static/js/graph.js - Character Browse
frontend/static/js/browse.js - Story Explorer
frontend/static/js/stories.js - Story Detail
frontend/static/js/story_detail.js - Source Library
frontend/static/js/sources.js - Source Detail
frontend/static/js/source_detail.js - Mythology Pages
frontend/static/js/mythology.js
Research Corpus
- Textual Research
research
Other components
- Visitor
Connections 24
- Visitor → Flask Web App: opens pages
README.md - Visitor → Shared Browser Client: explores records
README.md - Canonical JSON → Seed Loader: loads records
backend/seed/loader.py - Seed Loader → SQLite Database: builds database
backend/seed/loader.py - DB Connection → Seed Loader: builds if absent
backend/app/db.py - Flask Web App → DB Connection: initializes
backend/app/__init__.py - Flask Web App → Query Repository: loads page records
backend/app/__init__.py - Read API → DB Connection: gets connection
backend/app/api.py - Read API → Query Repository: queries records
backend/app/api.py - Read API → Catalogue: uses catalogue
backend/app/api.py - Read API → Search Engine: normalizes queries
backend/app/api.py - Catalogue → Search Engine: scores documents
backend/app/catalog.py - Shared Browser Client → Read API: requests JSON
frontend/static/js/common.js - Shared Browser Client → Themes And Effects: imports effects
frontend/static/js/common.js - Character Profiles → Shared Browser Client: uses helpers
frontend/static/js/character.js - Character Profiles → Knowledge Graph: renders graph
frontend/static/js/character.js - Knowledge Graph → Read API: fetches graph data
frontend/static/js/graph.js - Character Browse → Shared Browser Client: uses shared client
frontend/static/js/browse.js - Story Explorer → Shared Browser Client: uses shared client
frontend/static/js/stories.js - Story Detail → Shared Browser Client: uses shared client
frontend/static/js/story_detail.js - Source Library → Shared Browser Client: uses shared client
frontend/static/js/sources.js - Source Detail → Shared Browser Client: uses shared client
frontend/static/js/source_detail.js - Mythology Pages → Shared Browser Client: uses shared client
frontend/static/js/mythology.js - Textual Research → Canonical JSON: grounds records
README.md