* Practice: choose or type, one switch above every question A remembered habit (heidi.practice.habit.v2) decides, for each word that has both, whether its meaning is chosen or its sentence typed. A flip swaps the questions still ahead one for one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Practice: a word typed right comes back later than one chosen Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Practice: one hardness number for every question Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Plans: your own AI key is offered, and the pass card says what a pass is Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Knowledge map: a deterministic layout, and every node's state from the ledger lib/visual/knowledge-map is the first knowledge-map layout in the fleet, written to be extracted: plain data in, coordinates out, no app imports. Clusters packed into columns, nodes in rows under each cluster's name, labels wrapped with the real font's widths; no two cells meet, so no two labels can, at 320px as at 1280px. Same input, same picture. lib/domain/progress reads where a learner stands on every situation, grammar topic and word group (not started / started / shaky / solid / mastered) from the learner model, the review memory and the situation readings the situation pages already use, and orders the few lines worth acting on: the learner's own situations first, then new ones in their areas, then what wobbles, then the words that keep slipping. Nothing is counted in advance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * «Was du kannst»: the map page, the weak-spots card, and the ways to it /[locale]/progress draws the whole course as a map coloured by the learner's own answers, with a legend and one motion (what is known fills in, off under reduced motion). Tapping a node opens a sheet with what it is, the numbers (asked, right, last seen, due) and «Üben», «Bis es sitzt» (goal=nail), and for a situation «Situation starten»; an area's name opens its situations and practises the whole area (module=…). Works signed out from this device and signed in with the synced views; with no data it is the course, not started, and where to begin. The card «Was sitzt, was fehlt» is on the personal page and above the map; /practice links to the map; the avatar menu lists it. Personal and noindex like settings, so not in the sitemap. Strings in all seven dictionaries; the responsive audit measures /progress. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Practice: an area scope, «Nail it», hardest first, and nothing right today asked again - module=<area>: every scene of one situation area (care, hospitals, ...) and the words said in them; subjects=<list>: named words and lines, for the weak spots. - goal=nail (nail.ts): a drill over a scope until each question is right twice in a row, the second at least three questions later and in the typed form where a word has one; a miss comes back after two to four others; at most 30 subjects, hardest not-known first. - order=hard: hardest first by hardness(); «Harder» prefers the harder question inside its band. - A sitting's order is shuffled (order.ts), never the same subject back to back and the same kind only where unavoidable; cards keep their most-heard-first order. - Answered right today and not wrong today, on any screen (stats now date every wrong answer): not new again today in a sitting; read instead of asked in a situation run (withKnownRead), unless its review is due. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Play together: a challenge link and a live round A challenge is ten fixed questions behind a link (/play/c/<id>): the same questions in the same order with the same option order for everyone, a nickname and no account, marked on the server, and a board of names, right answers and times. It is kept 30 days, and expired ones are removed when somebody next touches the table. A live round is a host screen (/play/host) with a six-digit code and a QR code, players on their phones (/play?code=), 20 seconds a question, points for right plus speed, counts per option on the host's screen, a short board on the phones and a podium. Realtime is short polling against Postgres: one primary-key read with a version, 204 when nothing moved. At most 50 players per room; a room is gone two hours after its last move, checked on access. Host actions need the host secret kept on the host's device; creating rooms and joining are limited with limitkit; nicknames are cleaned, capped at 24 and only ever rendered as text. Five new tables (migration 0033), two privacy flows, the strings in all seven languages, one section on /practice and one button at the end of a sitting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Practice: wrong answers a German reader cannot see through, and «Find the German word» A harness (scripts/audit/options.ts, not shipped) measures how often a reader who knows no Zurich German answers each chosen-answer question by looks alone: most like the prompt, least like it, odd shape, longest. options.test.ts holds the rates near chance. - «Say it in Zurich German» (run): the wrong lines are the right line with one word changed: a Standard German word from the pack's leaks or the course's own cognate pairs, a form the pack places elsewhere, or an article the noun never takes. By looks: 99% -> 32%. Other lines only where a line has fewer than two such changes. - Look-alikes skip Zurich words that stand for two standard words (bi: bin/bei, wänn: wann/wenn) and course pairs that are not cognates, so a planted word is certainly not Zurich German. - «Stimmt das?»: a false claim is a near miss of the line's meaning (near-miss.ts), never another line; no near miss, no false claim. By resemblance: 96% -> 64%. - «What is meant?»: more near-miss meanings (modals, Herr/Frau, times, places, colours...), the closest first. Lines with one: 21% -> 42%. - Cognates («gah», gehen) are asked from German with real course words as the other options; the rest by meaning, with distractors as alike as the answer (resembles: letters and consonant skeleton). - Options, banks and columns are laid out from a seed per sitting and the question id (present.ts), one helper for practice and the runs. - hardness.ts counts giveaways, confusable options and odds; a cognate asked from Zurich rates easier than the same word asked from German. - New kind «Find the German word» (spot): a course line with one word in Standard German, tap the word; the answer shows the Zurich word and the line. Strings in all seven languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Questions: «Tschüss» is never offered as the certainly-wrong German word Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Exercises: read before moving on, and tap the words instead of typing The moment after an answer (exercises/chrome.tsx, useMoveOn): - a right answer shows the whole line where the question showed part of it, its meaning and the reason, then moves on after a beat as long as that text: 1.3 s + 45 ms a character, at most 6 s (move-on.ts); - a touch, wheel or focus on the session screen, or «Anhalten» beside «Weiter», holds it: the bar fades and the control reads «Angehalten» in the same box, so nothing moves; Enter or Space continues; - a wrong answer or a skip never moves on; - «Von selbst weiter: An | Aus» in the sitting's sheet, remembered on the device (heidi.practice.move-on.v1, person-level, on the privacy page); - reduced motion: no draining bar, the seconds are counted on «Weiter». The situation run's follow steps use the same hook and controls, and the run now has the same sheet behind the sliders. Tap instead of type (tiles.ts, exercises/tiles.tsx, answer-how.tsx): - every translate question can be built from tiles: its own words plus two or three real course words from the same scene, topic or word group, look-alikes first; marked against the course line (case and punctuation ignored), typed answers stay self-marked; - the build kind's tile UI is now TileAnswer, shared by both; - the habit is «Wählen | Antippen | Tippen»; old stored values stay valid; on a typed question it is that question's switch, and «Wählen» is not offered where there is no meaning question; - the run's «Lieber schreiben» link is the same «Wörter antippen | Tippen» switch, above the question; - tiles are recorded as mode "tap": not typed, not scheduled as recalled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Heidi Plus: a subscription that renews, monthly or yearly, with an intro price The one-time pass becomes «Heidi Plus»: a monthly plan that renews until cancelled, a yearly one at a saving, and an optional lower price for the first months, through Stripe (paykit 0.6 `stripeBilling`). The pass stays, offered below as «Lieber einmal zahlen?». - /plans is paykit's PlanPicker: Free | Heidi Plus (recommended) | Eigener KI-Schlüssel | Organisationen. The own-key tier is CHF 0 to Heidi, names the providers from ai-kit's BYOK_VENDORS and leads to /settings#model; the old own-key section is gone. Without prices, Plus is «Bald verfügbar» with the notify form. - A review step before Stripe (paykit's PlanReview): summary, notes, the account, the renewal box that must be ticked (Heidi has no terms page, so no terms box), the practice reminders as an optional box, and an active pass or subscription shown with «Abo verwalten» instead of a second one. - Prices only from HEIDI_PLUS_MONTH_CHF, HEIDI_PLUS_YEAR_CHF, HEIDI_PLUS_INTRO_CHF, HEIDI_PLUS_INTRO_MONTHS; the proposal is on /owner/payments and in .env.example, marked as one. - Stripe webhook: subscription events verified, handled once by event id (pay_events), the record in pay_subscriptions (migration 0034). A paid period moves the same entitlements row a pass uses, never back. - Settings: «Abo verwalten» opens Stripe's portal, with the status line (renews / ends / payment failed / ended). - Deleting the account cancels the subscription at Stripe first. - Privacy: the passPayments flow names the subscription, its tables and the email Stripe receives; the flows have anchors. - Strings in all seven languages. package.json asks for @bitbaum/paykit ^0.6.0; the lockfile follows once it is published. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Play together: «Find the German word» can be played; the said-too list lives in the packs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Practice: «Was willst du üben?» on /practice and the personal page; «Bis es sitzt» drills - The builder: what (everything, words, forms and grammar, a situation, an area, my weak spots), which (a searchable list, each row with the learner's state: not started, in progress, strong), how (quick round, Nail it, test; hardest first). It opens a URL of the sitting contract. - A «Nail it» sitting shows «12 of 20 nailed», says when the drill took only the hardest 30, and ends with a short summary; it resumes where it was left. - A situation run shows a line answered right today as a line to read. - «Bis es sitzt üben» on every situation page and grammar topic page with questions. - Strings in all seven dictionaries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * «Which one is Zurich German?»: a wrong article names its noun; a form Zurich speakers use is never planted as wrong (tested) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Session bar: progress keeps its room, repeats shorten below 380px; audit measures the new answer moment The top bar's progress bar keeps a minimum width, and the «+1 repeat» note collapses to «+1 ↻» on the narrowest phones so 2/8 never pushes it off. The responsive audit gains ONLY= to narrow to changed pages, measures a held run step, measures a typed question as tiles before switching to typing, and answers the meaning gate (after hydration) where a language shows it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Situation run: the reason for each wrong line is shown once, with the article's noun Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Situation run: what a step asks is the sitting's own small line above the question (one shape with practice) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Changelog 2026-12-03: the exercise revamp Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Plan test: new questions per sitting checked over 40 learners, not one lucky seed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * /practice: one picker — the quick round's mix sits under «Was willst du üben?» without a second «what / test» row Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Changelog 2026-12-03: plans (Free, Heidi Plus, own AI key, Organisations) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Lockfile: @bitbaum/paykit 0.6.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Heidi: «Was du kannst» answers next step, standing per area, what to do inside The knowledge map (unlabelled dots in rows, lines that meant nothing) is replaced by a page that answers, in order: one next step with its reason and one black button; per area a segmented bar of lines that sit, wobble and were never asked, with untouched areas collapsed to one line; inside an area every situation, topic or word group with its bar, status word and the action that fits it, sorted by what to do next. The step comes from a pure planOf (lib/domain/progress/plan.ts) that the personal page's card uses too, so the two never disagree. The map layout module, its tests and the weak-spots card are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Questions: one standard for practice, runs and play Every question now passes the same five rules, written down in code in lib/domain/questions/standard.ts and checked by tests: 1. Ask only what a German reader doesn't get for free. A line that can be read straight off its German is read, not asked. «Chasch mer schnäll hälfe?» is now a line to read. 2. Wrong options are the same kind of thing as the answer. «mir» is offered with «wir», «uns» and «euch», never with «nirgends» or «übermorgen». The reading shelf no longer fills a short list with words of another kind. 3. A question must not be solvable without knowing Zurich German. Seven solvers that don't know the language (look-alike, longest, odd one out and others) may beat chance by at most 15 points per kind; balance() drops the questions that let them do better. 4. Feedback gives the rule, other lines with the same word, and a line where the word means something else. A later line of the run asks the word again (transfer). 5. Hardness is real: it is measured from the options. Homographs: a word whose meaning depends on the line is asked only when the line's German proves the taught meaning (provesMeaning). The «wo» cue ", wo" matched «Ah, wo denn?», where «wo» is the question word. That cue is gone, and comma cues now end at a word boundary. This removes 5 false proofs, including «wohin». The sourced Einsiedeln text now asks «cho». Close is not wrong: choosing a look-alike that differs only by a form said in another Swiss region («geit», Bern) gets «Fast», with where that form is said. It is scheduled as FSRS «hard», not as a lapse. One rule, lookalikeVerdict, decides this. A Standard German word stays wrong. Questions are now chosen from ASKED_ITEMS, the items that meet the standard. PACK_ITEMS still holds everything, so stored progress, glosses and reminders keep working. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r * Questions: rules that are rules, fair German-first words, spot, transfer - A rule line appears only where there is a rule. The line «Merk es dir im Satz…» shown under every plain word is gone (ruleOf in questions/standard.ts). «mir» and «si» now carry how their line tells the two meanings apart (homograph-role, homograph-modal), with examples taken from course lines, in all seven languages. The pack names which rule applies to which homograph. - Asked from German: wrong options come from the word's own group, are never rude, and look as much like the German word as the answer does. If the answer is the only word that looks like the German one, the word is not asked. Balance no longer keeps a kind's last question when a solver wins it. - Spot never plants a mere spelling of the Zurich word («bestelle» for «bstelle», «gehört» for «ghört»). It never plants a lone word ending in «-en» either, since that can be found by its ending alone. The word is quoted without its punctuation. - Transfer: a run asks a word at most twice. A homograph's second question goes to a later line that uses the other meaning, when the part has one («bi mir» after «Mir händ…»). A contrast question is never the first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r --------- Co-authored-by: Claude <noreply@anthropic.com>
Heidi
Helps adults who already speak German understand the Zurich German actually spoken around them. Runs at heidi.orangecat.ch (beta). The product is defined in HEIDI.md; how to work in the repo is in AGENTS.md.
Development
pnpm install
pnpm run dev # http://localhost:3000
pnpm run verify # type-check + lint + tests
Take it
Bitbaum is a platform for the new economy and for creation: building, engineering and researching. It's a community of builders, creators and researchers, and of the people who support them. We work as engineers in the loop: agents do much of the typing, and people own the judgement.
This code is MIT-licensed so that you can take it. Use it, fork it, rebrand it, sell it, or lift a single file. Make it yours and keep improving it the way you like. You don't need to ask, book a call or sign a CLA. Just keep the LICENSE with your copy.
npx degit bitbaum/heidi my-heidi # a clean copy without our git history
cd my-heidi && pnpm install
- Needs: Postgres (
DATABASE_URL). The@bitbaum/*kits document their own keys. - Shared pieces: the
@bitbaum/*kits install from public npm or public GitHub, so you need no tokens or private registry.
More to take: orangecat.ch/steal and github.com/bitbaum.
Want to build it with us? Show us how you think
Copying code is free. What stays scarce once agents and robots write most of it is seeing the whole system. Pick one of these, in this repo, and open an issue or a pull request:
- Find the second source of truth. Find a fact this code defines in two places. Show how the copies will drift, and say where the one copy should live.
- Find the silent failure. Pick a promise this system makes. Find where it fails while every check stays green, and propose the check that would catch it.
- Find where the human belongs. Point to a step where an agent acts alone but a person should decide, or the reverse, and say why.
A short, correct answer beats a long one, and so does an answer that admits what it doesn't know.