Cascade
A desktop app that turns plain text into a queryable word graph
What I was exploring
Most ways to ask questions of your own documents send them to a cloud service or need a large model and a GPU. That is slow, costs money per question, and means your notes leave your computer.
Cascade tries a different, much smaller idea: build a graph straight from the text, where each word is a node that remembers which words it appeared near, and answer questions by walking that graph. The repo describes it as a prototype runtime for this approach.
What I built
- Every sentence becomes a set of links between the words in it, so a dataset is built in one pass with no training step.
- A question is split into words and walked in order; each word's answer is filtered by the word before it, and every step of the walk is shown.
- Each import becomes its own dataset, saved locally and loaded only when needed, so several corpora can sit side by side.
- Prompt sessions query several datasets at once and show one block per dataset, so you can compare what each one knows.
- Large datasets load in small batches so the window stays responsive, and a sidebar meter shows CPU and memory use.
- Plain JavaScript in an Electron shell, with no build step, no telemetry and no network calls except optional dataset downloads.
What it does
- Ask a short phrase and see, per dataset, which words were found, which were unknown, and what appeared near each one.
- Each answer shows its timing next to typical vector-search and LLM lookup times for comparison.
- An inspector shows any word's closest neighbours, sample sentences and the most connected words in a dataset.
- Paste text or drop files to create a new dataset.
Built with Electron, Node.js, Vanilla JavaScript, HTML/CSS, 2026.