A mobile-first reference app for 107 communication techniques. It runs entirely in the browser, with user data kept in localStorage.
-
107 technique cards (voice/presence, influence/framing, clarity/direction, connection/warmth, resilience/recovery)
-
Library with category, impact and difficulty filters, sort controls and a live result count
-
Start here: a guided path through the 15 core cards, with progress kept on the device
-
Help me right now: pick what is happening (eight common situations) and get one move, three lines to say, what to do next and one thing to avoid, without loading a full card
-
Phrase Bank (about 4,500 lines, filterable by tone and length and searchable); a line that several cards share is listed once, under its first card
-
Daily drill: pick a track (Core 15, one category, a playbook or everything) and a pace, rate each technique Not yet, Getting there or Confident, and review it again when it comes due; streak tracking and undo included
-
Playbooks: chain techniques into your own step-by-step guides, or start from a template
-
Saved: keep cards and phrases (a line saved from any card that lists it shows as saved everywhere)
-
Quick Lookup overlay for fast in-conversation phrase recall, scoped to the open card with one tap to widen to all cards
-
Full-screen search at
/search(the search button, orCmd+K/Ctrl+K) across techniques, phrases and playbooks: it matches as you type, keeps the search in the address so Back returns to your results, forgives typos and word forms, and maps everyday words to card vocabulary through a hand-kept synonym list (artifacts/tc-reference/src/lib/search-synonyms.ts); left/right arrow keys step between cards -
Settings (from the Saved page): light/dark theme, larger phrase text, drill track, offline status and backup
-
Back up and restore your data: export saved items, drill progress, playbooks and settings to a JSON file, and import it on any device
-
Mobile-first navigation with a bottom tab bar, 44px touch targets and safe-area (notch) support
-
Installable PWA: the app shell, global search, the Phrase Bank and Quick Lookup work offline after the first visit (a slim card text index is precached); full card pages and downloads work offline once they have been opened while online, and Save all cards for offline in Settings saves every card (about 4 MB) in one step; downloads stay on demand
-
On iPhone, add the app to your Home Screen so Safari doesn't clear your saved progress. The app asks the browser to keep its storage, shows a one-time Add to Home Screen hint in Safari, and reminds you to export a backup if you haven't for 30 days
-
Daily Drill reviews come back after 1, 3 or 7 days (Not yet, Getting there, Confident) and then grow further apart; the Drill page's Your progress section counts techniques by status, overall and per category
-
Each card's Use it tab ends with related techniques; missing pages, unknown cards and cards that fail to load offer a way forward (Try again, search, Help me right now)
| Layer | Technology |
|---|---|
| Framework | React + Vite |
| Language | TypeScript 6.0 |
| Styling | Tailwind CSS |
| Routing | Wouter |
| Testing | Vitest + @testing-library/react |
| Package manager | pnpm workspaces |
| Node runtime | Node.js 24 |
artifacts/
├── tc-reference/ ← Main web app (primary product)
│ ├── src/
│ ├── public/
│ ├── index.html
│ ├── server.mjs ← Production static server
│ ├── vite.config.ts
│ └── package.json
scripts/
└── local-app.mjs ← Protected run/guard/stop flow for local app- Node.js 24+
- pnpm 10.15.0+ (the declared
packageManager; older clients may ignoreverifyDepsBeforeRun)
pnpm installpnpm app:guard # verify ownership and status
pnpm app:run # start app on 127.0.0.1:54112 (default)Use pnpm app:run (or pnpm run app:run) to launch the protected app.
Bare pnpm run lists scripts; the optional script named run needs pnpm run run.
The install guard requires pnpm and preserves existing lockfiles when refusing npm or yarn.
The app URL is:
http://127.0.0.1:54112/(default)
Override with:
COMMUNICATION_APP_PORT=3000 pnpm app:runOptional helper:
pnpm app:stop # stop the tracked local app processRun, guard and stop bind the server to this checkout's dedicated Node launcher, launch token and observed process start identity. Stop rechecks live ownership before terminating the process. A health response and a saved PID alone do not establish ownership. Legacy or unverifiable state is kept for manual inspection; the checkout-local lock prevents overlapping cooperating start and stop calls. An abandoned lock or state record needs inspection and explicit recovery approval. These safeguards have local mocked regression coverage; a real launch and stop still need separate acceptance.
pnpm code-review scans the union of staged, unstaged and non-ignored untracked
paths using current working content. It reports rule, file and line without
printing source snippets or raw tool output. For an exact committed comparison,
run pnpm code-review --base <commit> --head <commit>. Both references must
resolve, HEAD must match the selected head, and the checkout must be clean. CI
uses the PR or push event's exact head and base; an unavailable base fails closed.
Formatting uses installed local Prettier without a package download. Focused
offline regressions are available through:
node --test scripts/code-reviewer.test.mjs scripts/local-process-identity.test.mjspnpm --filter @workspace/tc-reference testBrowser smoke tests (Playwright, iPhone 15 emulation). CI runs the WebKit project; locally only Chromium may be installed:
pnpm --filter @workspace/tc-reference run test:e2e --project iphone-chromiumThe manual iPhone pass (VoiceOver, larger text, offline, install) is in docs/iphone-test-checklist.md.
Before installing dependencies, run agent instruction and skill packaging checks directly:
node scripts/validate-agent-rules.mjs
node --test scripts/agent-rules.test.mjsAfter explicitly installing dependencies, pnpm run agent-rules:check is an alias for those commands.
The workspace requests failure on stale dependencies rather than an implicit install; inherited
package-manager settings can override that policy, so use direct Node commands for pre-install checks.
See packaged skill guidance.
These checks do not start the app or contact GitHub, memory services or external reviewers.
pnpm run typecheckpnpm run lint # ESLint across the workspace
pnpm run format # rewrite files with Prettier
pnpm run format:check # check formatting without writing (used in CI)pnpm --filter @workspace/tc-reference run buildCard downloads (reference, guide and quick-card PDFs, phrase bank and Anki CSVs)
are generated from the card source by dev and build, so they are not
committed. test only generates them if they are missing, so repeat test runs
stay fast; test:full always regenerates first. TC001 and the OneCard/TwoCard PDFs are hand-made and stay in git. To
regenerate them on their own:
pnpm --filter @workspace/tc-reference run generate:downloadspnpm --filter @workspace/tc-reference startstart runs server.mjs, a small sirv server that serves dist/public with
an SPA fallback, long-lived caching for hashed /assets/* files and no-cache
for index.html and the service worker files. It listens on PORT (default
4173) and HOST (default 0.0.0.0), and shuts down cleanly on SIGTERM.
This is what Railway runs. For a quick local check, serve still runs
vite preview.
| Path | Screen |
|---|---|
/ |
Library |
/start |
Start here: the core cards in order |
/help |
Help me right now: pick a situation |
/help/:id |
One situation's move and lines |
/card/:cardId |
Full technique card (e.g. /card/TC001) |
/phrases |
Phrase Bank |
/drill |
Daily drill |
/playbooks |
Your playbooks and templates |
/favourites |
Saved cards and phrases (tab label "Saved"), Settings |
/search |
Full-screen search (?q= keeps the query) |
--------------- | ---------------------------------------- |
| / | Library |
| /card/:cardId | Full technique card (e.g. /card/TC001) |
| /phrases | Phrase browser |
| /drill | Daily drill screen |
| /favourites | Saved cards and phrases |
| /playbooks | Your saved technique playbooks |
TC Reference is a fully client-side SPA with no backend:
- Core card, phrase and drill data lives in
artifacts/tc-reference/src/lib - User state uses
localStorage(saved items undertc_favourites, drill progress, playbooks undertc_playbooks, preferences undertc_preferences, theme) - No backend or credentials are required