Your documents are a typed graph. Typedown is the language for it.
Typedown draws from Notion's relational databases, Obsidian's linked vault model, and TypeScript's structural type system. If you want the flexibility of plain files with the structure of a database, this is for that.
A vault is a collection of .td files. Each file is a node. Schemas define node types. File references (fref) are edges. The type checker validates everything, and the editor gives you autocompletion and diagnostics as you write.
# _types/Person.td - defines the shape of a person
---
_type: schema
properties:
name:
type: string
role:
type: 'developer' | 'designer' | 'manager'
email:
type: string?
---# people/alice.td - a person
---
_type: Person
name: "Alice Chen"
role: "developer"
email: "[email protected]"
---
Alice is a backend developer focused on authentication systems.# tasks/auth.td - a task that links to a person
---
_type: Task
title: "Implement auth"
assignee: fref("people/alice.td")
assignee_name: self.assignee.name
---
Assigned to ${self.assignee.name}.The schema, the content, and the references all live in plain files. The type checker catches mistakes. The LSP gives you autocompletion for fields, types, and file paths. The static site generator turns the vault into a searchable website.
Language: typed frontmatter with schemas, inheritance, and nullable fields. Computed fields with expressions, dot access, and closures. File references that link documents into a traversable graph.
Editor: autocompletion for schema fields, types, and file references. Type checking with inline diagnostics. Go-to-definition, semantic renaming, and hover info. Works in Neovim, VS Code, and Zed via LSP.
Build: static site generation with search and sidebar navigation. Syntax highlighting, math rendering, and callout blocks. Per-page icons, breadcrumbs, and prev/next navigation.
npm install -g typerighter
typerighter init
typerighter devOpen http://localhost:8686 and start editing .td files. Changes reload automatically.
Read the full documentation for editor setup, authoring guide, and reference.
The npm package name
typedownis unavailable (npm considers it too similar totypedoc). The entry package istyperighterand scoped packages are under@typerighter.
| Editor | Guide |
|---|---|
| Neovim | editors/nvim/README.md |
| VS Code | editors/vscode/README.md |
| Zed | editors/zed/README.md |
- DEVELOPMENT.md for dev setup, building, releasing, and architecture
- doc/ for internal design and research documentation
- Issues for bug reports and feature requests
- Discussions for questions and ideas
- Changelog for release history
GPL