Personal knowledge graph
The graph is the core, not an add-on. See how your ideas connect.
Your notes stay HTML and Markdown files on your machine, linked into a graph — and, when you turn it on, read by an AI that runs on this computer. It reads your PDFs, spreadsheets and Word documents too, with no import step — and nothing from your notes leaves your machine unless you choose.
Your knowledge graph and local RAG in one privacy-first engine, where it all finally clicks together.
The graph is the core, not an add-on. See how your ideas connect.
Privacy isn’t a setting, it’s the architecture. You need no account and no cloud, and your notes are plain files on your disk.
AI is built into writing, search and chat. It runs free on your own Mac — with Apple’s on-device model, a built-in model or Ollama — or bring your own key.
Add your files and notes, ask questions, and get answers grounded in your own documents, with sources: PDFs, spreadsheets, Word files and notes, no importing required. With a local model nothing leaves your machine, so you can use AI on sensitive or confidential documents with complete privacy.
Built for HTML notes, with real structure: typed tables, live charts, collapsible sections and diagrams. An engineer on Anthropic’s Claude Code team has publicly described moving specs and plans from Markdown to HTML for the same reason. Markdown is fully supported too.
DocGraph changes only the bytes you actually edited. Built in Rust, it splices just the bytes you changed and leaves every other byte untouched. Your formatting survives, and your Git diffs stay one line long.
Written in Rust
Write in Markdown when it's prose. Reach for HTML when your document needs real structure.
Markdown is lovely for prose, and DocGraph edits it natively. HTML carries what a document needs once it stops being an essay: typed tables with relations and computed values, live charts, collapsible sections, diagrams and whiteboards beside the prose that explains them. Either way you edit the real file — never flattened, never converted. That structure is also what makes a note unambiguous to a machine, which is why teams building with AI agents are moving their specs and reviews to HTML too.
Ask your own notes, and get answers that cite their sources.
The graph surfaces connections you forgot you made, backlinks show every note that references this one, and the local AI answers from your vault with citations — tuned to say it couldn’t find anything rather than invent an answer.
Your documents never leave the building — because they never leave the machine.
Contracts, plans and internal docs stay plain files on disk: no account, no telemetry, no cloud unless you add one, and network egress is default-deny. Secret detection flags stray API keys, per-note encryption locks the ones that matter, and the app is free — nothing to procure.
Think on an infinite canvas, next to the notes that sparked the idea.
Whiteboards live inside your vault: sketch with the pen, arrange text cards and shapes, link in your notes and images, even design a database schema with ERD tables — and every board is indexed and searchable alongside your writing.
It runs on your machine, so every question is free.
Answers cite the notes they came from, follow up naturally, and narrow to a tag, a person or a date range.
“Open the note about my Berlin trip” — DocGraph finds it, and opens it when the match is clear.
Writes pages, fills tables, draws diagrams, adds todos and reorganises folders — every change asks first (or once per chat, if you allow it), and most can be undone.
/write, /ask, /summarize, /continue, Beautify, rewrite a selection, spell-check and optional ghost-text completions.
Keyword and semantic search together, re-ranked by a small local model — in English or many languages.
A built-in MCP server lets Claude Code, Codex, Cursor and others use your vault — off by default, and writes ask for your approval.
Ask your vault anything, as often as you like. The model runs on your own computer, so there’s no API key, no subscription and no token bill, and it keeps working offline.
Already on your Mac with Apple Intelligence. One click, nothing to download. Needs macOS 26 on Apple Silicon; answers questions only.
DocGraph downloads a small open model and runs it for you. Nothing else to install.
Already use Ollama? Pick any model you’ve installed, or let DocGraph pull its recommended one.
Want a frontier model? Add your own API key for OpenAI, Anthropic, OpenRouter or any OpenAI-compatible endpoint, or hand a question to an agent already installed on your machine — Claude Code, Codex, Gemini CLI or OpenCode. These send your question off this computer, and you pay that provider directly, never us. Every answer shows where it ran.
Your vault is just files, and it stays that way. No proprietary format, no lock-in, no account — DocGraph is a lens over the plain HTML and Markdown on your disk. Close the app and everything is exactly where you left it.
How privacy works →See how your knowledge connects.
Get DocGraph — free