kalyana
A companion for early (pre-sectarian) Buddhism, on your own machine. The name is from kalyāṇamitta, “good friend”.
What it does
-
Companion: the app opens to a conversation. Ask about the teaching, a discourse, a person or your practice, or switch the composer to Journal and write down how a sitting went. A local model answers from the library below and nothing else. It cites what it used, and every reply lists the passages it was given. Click a reference (MN 10) or a source to read it. Either can be spoken: the microphone in the composer writes out what you say with whisper.cpp on this machine (fetched on first use, about 1.3 GB with an NVIDIA card; on a Mac the engine is installed with Homebrew and the model is about 0.6 GB).
-
Journal: every journal entry, by date, with the reflection it got. Exports to Markdown.
-
Sitting: a map of a sit, from sitting down to getting up. It shows the sixteen steps of mindfulness of breathing in their four tetrads, the check after each, and what to do when the mind will not stay (sluggish or agitated, the hindrances, the five methods of MN 20, the imperfections of MN 128). Clicking a box opens what it means, what to do, what to check and what goes wrong there, with links to the guide chapter, the discourses and the lexicon. The arrow keys walk the map.
-
Reading: the guides keep their formatting (emphasis, boxes, rules, tables, a face close to the one they were set in), and their contents pages link to the sections they name. Select any words to have them explained, simplified, defined or asked about; the answer is kept beside the passage as a highlight. Concepts the lexicon knows are dotted at their first use: hover for a line, click for the entry.
-
Narrate: beside a discourse’s “Ask about this”, Narrate has it told as a story in one man’s voice. After that the button reads Listen, and a player runs along the bottom of the window. The discourse is told, not read out: Gemma 4 retells it in two to ten minutes or so, and what it writes is checked for stretches lifted from the text. Qwen3-TTS speaks it, cloning a storyteller that ships with the app. Both run on this machine, one after the other. Apple silicon uses MLX’s build of the voice and fetches about 3.6 GB the first time, plus another 5 GB where Gemma 4 is not already in the shared store. Recordings are plain MP3s. A small model’s retelling can still get a detail wrong, above all in the longest discourses.
-
Lexicon: about 150 concepts the texts keep using, by subject.
-
Library: 4,020 early discourses (DN, MN, SN, AN, Dhammapada, Udāna, Itivuttaka, Sutta Nipāta, Thera- and Therīgāthā, Khuddakapāṭha) and sixteen study guides, with one search over all of it. The guides are listed in three kinds, set a little apart: guides (what to do), history (the texts, the schools and the neighbours) and theory (what the teaching says, taken apart).
-
The Ladders, as a map: the catalogue of fifty-one formal meditation programmes (Buddhist, Jain, Brahmanical-Hindu) has an Interactive map button beside its title. It opens four views of the same programmes:
- a web of who is kin to whom, grouped by tradition, with any of the nine families’ lines of descent laid over it;
- a timeline of when each was practised and where practice thinned;
- the nine lineages as the chains the guide draws;
- a grid of tradition against architecture.
All four filter by tradition, architecture and search. A click on any programme opens its steps, sources, dates and kin, with a way back to the entry in the text.
-
Mind Without an Owner, as a map: the essay on the early Buddhist theory of mind has the same button. It opens three drawings of the one account:
- the mind: one experience unfolding from the senses to a person overrun by their own thinking, with what lies underneath and where each training acts;
- the five aggregates: what ties them and what is made of them;
- dependent origination: the links round a ring in their twelve-, ten- and nine-link versions, with five ways of reading them to lay over the ring.
A click opens a panel that reads out the essay’s own paragraphs, and pointing at a tie says what the essay says of it.
-
The handbooks, as maps: the seven handbooks of Early Buddhist Studies each have the same button, and open two or three drawings of what the handbook sets out:
- How We Know What the Early Texts Say: the witnesses and their descent, the chain of inference from manuscript to teaching, and the criteria for telling older from younger;
- What Was Realised: the accounts of the awakening, the four truths with their tasks, and the first sermon;
- The Oldest Poems: the evidence for their age, what they say, and the debate over what that means;
- The Fire Gone Out: the image and definition of nibbāna, the undeclared questions and the reasons for leaving them, and the passages that seem to say more;
- The Conversation the Buddha Joined: the rival teachers and the reply aimed at each, what was shared and what was new, and the net of views;
- Knowing and Seeing: what not to go by, the steps from faith to knowledge, and whether it is empiricism;
- Action and Its Training: what action is and is not, the tests of the skilful, and the gradual training as a staircase.
As in the other maps, a click reads out the handbook’s own paragraphs.
-
People: 75 biographies of the figures in those discourses, each tied to the discourses they appear in. Beside each life, a pane draws that person’s ties and writes each one out. Relationships draws all of them on one chart with their ties to each other: family, teacher and taught, companions, patronage, opposition, encounters. Ties known only from the Vinaya or later tradition are dashed.
Nothing you write leaves the machine.
How an answer is made
The library is cut into about eleven thousand passages and indexed by word (BM25, Pali diacritics folded, the question widened with the words these translations use, so “nirvana” also looks for “extinguishment”). For each message the app gathers:
- the guides’ best passages;
- the discourses those passages cite;
- the discourses that match in their own right;
- the biography of anyone named.
The model is given those and told to answer from them, cite them, and how to lay the reply out. There is no embedding model.
The library
| What | Source |
|---|---|
| The discourses | Bhikkhu Sujato’s translations, SuttaCentral bilara-data, public domain (CC0) |
| The sixteen guides | Read from their PDFs; “Original PDF” opens each as it was made |
| The biographies and the lexicon | Written for this app |
The biographies and the lexicon were drafted by a model from the early texts and mark what is later tradition as such. Neither has been checked line by line by a scholar.
The local model
Answers come from Qwen3.5 through the shared runtime, so a machine that already runs smartreader, smartwriter or smartdiary has the weights. Narration uses Gemma 4 E4B from the same store, fetched only the first time Narrate is pressed.
Your data
Everything is under the app’s folder in your user config directory
(~/Library/Application Support/kalyana on a Mac, %AppData%\kalyana on
Windows): data.json, chats/ and narrations/. A copy of data.json is
taken each time the app is opened, as data.json.bak. A damaged data.json
is set aside as data.json.bad-<time>, the copy is used instead, and you
are told.
| Variable | Effect |
|---|---|
KALYANA_CONFIG_DIR |
Move the app’s own data |
Updates
A released copy checks for a new version shortly after launch and once a day, and offers it in a corner banner.