The website and TypeScript engine for wordtoken — mine what your users actually want.
packages/wordtoken— the TypeScript engine: a module-for-module port of the Python reference implementation, parity-locked via golden fixtures vendored from the Python repo (pnpm sync-fixturesre-vendors; the parity suite fails on any divergence). Publishable to npm aswordtoken.apps/web— the Next.js site: landing page with a pre-computed sample report, and a fully client-side playground (corpus / taxonomy YAML / live report) running the engine in a web worker. No analytics, no third-party requests; strict same-origin CSP; works offline via a hand-rolled service worker.
pnpm install
pnpm --filter wordtoken build # engine dist (needed once for prebuild)
pnpm --filter wordtoken test # unit + parity suites
pnpm --filter web dev # site at localhost:3000pnpm --filter web build && pnpm --filter web e2e runs a Playwright suite
that asserts zero non-origin requests during analysis and that the
playground works offline. Or check by hand: DevTools → Network, or unplug
the Wi-Fi.
MIT.