tao.tensor.group · a field guide

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.

81 passages
1,469 notes
444 lenses
210 character plates
199 questions
134 artworks
1,113 characters in the lexicon
0 frameworks
Try the real draw

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.

The reader's path

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.

1 · Draw

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.js
2 · Read

Chinese 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.json
3 · Tap a phrase

Open 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.js
4 · Tap a character

Look 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.js
5 · Sit with it

Test 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.js
6 · Write

Keep 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.js
The system

Map of the parts

Select a part to see what it does and which files hold it. The lines show who loads or calls whom.

Anatomy of a passage

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.

Passage 1 · Dark, and Darker Still

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.
Build and check

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.

sources/

Wang Bi Chinese, Legge 1891, Unihan, Shuowen, Mawangdui collation.

pinned, public domain
merge-lexicon

Folds hand-written character entries into one lexicon.

lexicon-add/ → lexicon.json
build-text · index

The 81 passages, titles, and the per-passage index.

→ text.json, index.json
build-strokes

Stroke data for the brush animation, one file per character.

→ data/strokes/
build-search

Embeds every note, lens, plate, and story with a 4-bit static model that runs in the browser.

→ data/search/
precache

Writes the service worker's file list and version, so the installed app updates.

→ sw.js
check

Content rules, copyright n-gram guard, art licenses and size, audio files.

npm run check
deploy

Wrangler ships the Worker and the static files to Cloudflare.

npm run deploy
What holds it together

The 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.

What comes next

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
Tao Te ChingBook of ChangesBook of Five RingsThe Art of WarThe UpanishadsThe Diamond SutraThe Heart SutraThe Platform SutraPopol VuhThe Egyptian Book of the DeadKabbalahThe Testaments, read from the EastThe Dead Sea Scrolls