{% extends "base.html" %} {% block content %}

Matt's Lexicon Format

A human-friendly DSL for ATProto Lexicons

com.example.thread.mlf

{{ section.extra.mlf_example | markdown | safe }}

com/example/thread.json

{{ section.extra.json_example | markdown | safe }}

What is MLF?

Human-Friendly Syntax

Clean, readable syntax inspired by TypeScript and Rust. Write lexicons the way you think about them, with full type safety and constraint validation.

100% ATProto Fidelity

Bidirectional conversion with ATProto JSON Lexicons. Everything that can be expressed in JSON can be expressed in MLF, and vice versa.

Rich Tooling

Command-line interface, WebAssembly library, tree-sitter grammar for editor integration (Neovim, Helix, VS Code, Emacs), and comprehensive error messages.

Type-Safe

Compile-time type checking catches errors before they become runtime problems. Constrained types ensure your data meets specifications.

{% endblock %}