Tao App Atlas
How the Tao Te Ching app works: what a reader does, which parts make each step happen, and what the next app (the Book of Changes) takes from it.
Sixty-four sticks. Each cast splits them into three bundles, counts each by threes, and sets the remainders aside. 3, 4, or 5 set aside gives a solid line, one break, or two breaks.
Six steps from a question to a journal
The main reader opens the app on a phone, in Brave. Every step works offline after the first visit.
Let the sticks fall
Four casts of 64 virtual sticks make a tetragram: four lines of three kinds, so 3⁴ = 81 figures, one per passage. Crypto randomness, no bias.
js/draw.js · views/draw.jsChinese first, then a new English
The Wang Bi text sits above a rendering written fresh from the characters. Legge (1891) is one tap away for comparison.
views/passage.js · data/passages/NN.jsonOpen the gap
Marked phrases open a bottom sheet: etymology, history, wordplay, paired opposites. Notes chain into notes; back swipes step back.
js/notes.js · js/sheet.jsLook into one word
Every Han character is a button: pinyin, a Mandarin recording, senses, parts, a Shuowen line, and brush strokes drawn in order.
data/lexicon.json · js/brush.js · js/audio.jsTest the claim on your life
Each passage states a claim and asks: do you agree, where does that come from, and what arises when you hold the opposite?
questions[] · views/passage.jsKeep a journal, and sync it if you want
Entries live in the browser, pinned to the passage or the margin. Export and import merge. Passkey sync merges with the same code on the server.
js/journal.js · js/margin.js · js/sync.jsMap of the parts
Select a part to see what it does and which files hold it. The lines show who loads or calls whom.
One file holds a whole passage
This is passage 1 as the app shows it. Tap an underlined phrase to open its note, or a character to see its sheet. On the right is the shape of the file that feeds the page.
Then, on the real page: Legge's 1891 version, six lenses (ground, inner, leading, body, nature, practice), character plates, paintings, echoes in other classics, questions, and the journal.
// app/data/passages/01.json { "n": 1, "title": "Dark, and Darker Still", "theme": "way", "zh": [ { "text": "道可道,非常道;…", "gloss": { "2": "to tell; to walk (verb)" } } ], "rendering": [ "A way that can be [[told as a way|ke-dao]]", "is not the [[constant|chang]] [[Dao|dao]]." ], "notes": { "chang": { "kind": "gap", "title": "Constant is not “eternal”", "body": "…" } }, "lenses": { "ground": "…", "inner": "…", "practice": "…" }, "plates": [ { "c": "道", "lesson": "…", "brush": "…" } ], "questions": [ { "id": "…", "claim": "…", "prompts": ["…"] } ] } // check-content.mjs: the zh joins back to the pinned // Wang Bi text; every mark has a note; every note a kind.
From public-domain sources to an offline app
No bundler. Scripts turn pinned sources into JSON; checks guard the content; one command deploys the Worker and its files.
Wang Bi Chinese, Legge 1891, Unihan, Shuowen, Mawangdui collation.
pinned, public domainFolds hand-written character entries into one lexicon.
lexicon-add/ → lexicon.jsonThe 81 passages, titles, and the per-passage index.
→ text.json, index.jsonStroke data for the brush animation, one file per character.
→ data/strokes/Embeds every note, lens, plate, and story with a 4-bit static model that runs in the browser.
→ data/search/Writes the service worker's file list and version, so the installed app updates.
→ sw.jsContent rules, copyright n-gram guard, art licenses and size, audio files.
npm run checkWrangler ships the Worker and the static files to Cloudflare.
npm run deployThe rules
New English, from the Chinese
The book that inspired the app is copyrighted, so nothing is copied or reworded from it or any modern translation. A guard script checks n-gram overlap.
The gap is the point
The rendering stays quiet. The depth sits one tap away, in notes that say what an English word drags in and what it drops.
Pairs are related, not ranked
有 and 無, soft and hard: each side arises with the other. Every passage with a pair has a note on it.
No invented scholarship
Shuowen quotes must exist in the pinned Shuowen file. Silk and bamboo readings say "reported".
Text only through textContent
One DOM helper, h(). No innerHTML, no inline scripts, a strict CSP, no outside fonts or CDNs.
The journal belongs to the reader
It stays in the browser unless sync is on. Imports merge; deletions travel as tombstones; old export files always load.
One core, many texts
The Book of Changes app is the second text. It splits the code in two, so later texts need a new text pack, not a new app.
Core app/js/core/
- Hash router and page shell
- The
h()DOM helper - Bottom sheet with a back stack
[[text|note]]markup and note sheets- Journal: entries, draws, tombstones, merge
- Service worker and update flow
- Cloudflare Worker
Text pack app/js/text/ · data/
- Pinned sources and a fetch script
- The draw: 64 sticks, yarrow stalks, coins…
- The unit page (passage, hexagram, sutra section)
- A binding style guide and term table
- Note kinds and the content checker
- Translator profiles to compare against