Melker Demo
{
"name": "Melker Demo",
"description": "Showcase: animated logo, architecture diagram, and feature overview",
"permissions": {
"read": ["."],
"shader": true,
"net": ["samesite"]
}
}
## What is Melker?
A TUI framework where you write terminal apps the way you'd write a web page. One .melker file — markup, stylesheets, scripts. No compile step, no build system.
- **HTML-like** markup with 20+ components, **CSS stylesheets** with @media queries, **Flexbox layout** engine
- **Permission** sandbox per app
- F12 **Dev Tools** (inspect, logs, policy), **LSP** for editor support
- **Piping** and stdout mode
- **Graphics** with Sextant, Sixel, Kitty and iTerm2 support
- Canvas **shaders** and **image** rendering
- **Markdown** and **Mermaid** diagrams
- Optional **AI assisted** screen reader
Architecture
flowchart LR
A[melker app.melker] --> B{Local or URL?}
B -->|Local| C[Read file]
B -->|URL| D[Download]
D --> C
C --> E{Has policy?}
E -->|Yes| F{First run?}
E -->|No| G[No permissions]
F -->|Yes| H[Show approval prompt]
F -->|No| I[Cached approval]
H -->|Approved| J[Spawn sandbox]
H -->|Denied| K[Exit]
I --> J
G --> J
J --> L{TTY?}
L -->|Yes| M[Interactive TUI]
L -->|Piped| N[Single frame output]
M --> O{User input}
O -->|Key/Mouse| P[Event handler]
O -->|Resize| Q[@media re-eval]
O -->|F12| R[Dev Tools]
O -->|Ctrl+C| S[Exit]
P --> T[Re-render]
Q --> T
T --> O