Sakko
The modern DSL (Design Sub-Language) for describing UI trees. Sakko is a bracket-based markup language that compiles to component trees.
Quick start
import { parseSakko, tokenize } from "@nisoku/sakko";
const tokens = tokenize('button(accent): Click me');
const ast = parseSakko('<page { button(accent): Click me }>');
What you get
| Feature |
Details |
| Tokenizer |
Lexical analysis with line/column tracking |
| Parser |
Full AST generation with error messages |
| Types |
TypeScript definitions included |
| Zero deps |
Pure TypeScript, no external dependencies |
Documentation
| Page |
Description |
| Language Reference |
Full Sakko syntax: blocks, modifiers, lists, void elements |
| API Reference |
Complete public API: parseSakko, tokenize, types |