An in-browser playground for walking tokens through networks of similarity. Tokenizers cut text into tokens, and a distance function — language-model embeddings, spelling, shared letters, WordNet relations — places each one among its neighbours. Click a token, then one of its neighbours, to walk it one step at a time; scrub back through the rows you built, click a token to inspect its local neighbourhood, or open the full graph to see the whole network at once. Built with SvelteKit and TypeScript, runs entirely in the browser with zero server-side compute.
Each jump replaces one token with a neighbour you choose, copying every other
token into the next row; acting from an earlier row discards the rows after it.
A random Flip this token forces one position to take the active kernel's
next-token jump, and Diffuse one step samples every unfrozen position in
order; both append a row. The strategy decides which neighbours exist and the schedule gives the
weights the inspector reads. The maths follows the D3PM framework of Austin et
al. (2021): every strategy defines a Markov transition matrix
npm install
npm run dev # Start dev server (http://localhost:5173)
npm run build # Produce static output in build/
npm run preview # Preview the static build locally
npm run lint # Run ESLint
npm run format # Run Prettier
npm run test # Run VitestThe embedding-knn strategy reads VITE_EMBEDDING_BASE_URL (copy
.env.example to .env to override); it defaults to the pinned HF
dataset revision in src/lib/embeddings/loader.ts.
See AGENTS.md for how agents work in this repo.