Inkhaven: New TUI (Text User Interface) editor for Typst

Inkhaven is a standalone terminal application for writing books and long-form technical documentation. It pairs a full-screen Typst editor with a local semantic index, an AI writing assistant, versioned snapshots, and a backup pipeline — so the entire writing workflow lives inside one binary, without leaving the terminal.

Your manuscript is organised as a hierarchy of .typ files (Book → Chapter → Subchapter → Paragraph), with first-class image leaves alongside paragraphs. Inkhaven stores metadata in a local DuckDB database, indexes every paragraph for full-text and semantic search, keeps versioned snapshots, and streams answers from your chosen LLM provider — six are bundled (Gemini, Claude, OpenAI, DeepSeek, Grok, Ollama) and any model genai routes is one HJSON line away.

Open-source and available form here: https://github.com/vulogov/blackInkhaven

2 Likes

inkhaven ver 1.2.4 cheatsheet

Now, you can bring screevener into Typst world and generate Markdown, EBOOK and TeX out of Typst. Among other improvements

In version 1.2.5, I am planning to embed types inside the Editor, removing conditions for installing and using external applications.