About definy
definy is a programming language and its environment whose programs are kept not as text files but as signed events of syntax trees. definy is written in definy: the type checker, the compiler to WebAssembly, the server and this HTML version are parts of definy.
Syntax trees, not text
A part (a function, a type or a value) is stored as a syntax tree in deterministic CBOR. The text you see and write here is only one way to show it, so changing how the text is written never breaks the history. Every snapshot is type-checked before it is accepted.
Content addressing
Contents are identified by their SHA-256 hashes, so a snapshot always refers to exactly the same contents, and anyone can check them.
Signed events
Creating an account and taking a snapshot are events signed with Ed25519. Servers exchange only signed events (receiving and sending), and each server checks the signatures, so no server has to be trusted. Each event and account can be seen here.
Editing
Editing and taking snapshots are done with the HTML version served by your own local definy server (npm run serve), signed with your own key, or from an AI through its MCP server. The public HTML version only reads.
More
- The definy project (definy written in definy)
- Introduction slides
- Source code of the host (GitHub)