Elmish for the terminal.
Mire builds a full screen every frame, then paints only the cells that changed.
You write update and view; Mire owns the loop, the
layout, the input, and the terminal protocol.
F# · .NET 10 · Ghostty and Kitty-compatible terminals
A counter, end to end
A model, an update that folds messages into it, and a view.
Hand the program to Runtime.run and it drives the loop at ~30 FPS.
┌ counter ──────────┐ │ count: 7 │ │ ↑ inc ↓ dec │ └───────────────────┘
The view is a pure description of the screen. Rebuild it every frame; the diff makes updates cheap. See Your first app for the full source.
What you get
- Layout engine Stack, Dock, Box, Scroll, Overlay, and 9-point placement, with cell, fraction, content, and fill sizing.
- Widget library Virtualized lists and tables, a fuzzy command palette, completion, modals, toasts, tabs, a markdown renderer, and more.
- Real input Kitty keyboard chords, SGR mouse, bracketed paste, focus events, and light/dark theme notifications, decoded for you.
- Text editing A pure TextBuffer with selection and word motions, an overridable keymap, single-line and soft-wrapping multi-line views.
- True widths Grapheme-cluster measurement: astral scalars, emoji-ZWJ sequences, flags, and variation selectors all land in the right cells.
- Agent layer A transcript, a prompt with history and completion, an approval modal, and a diff reviewer in the optional Mire.Agent package.
Install
Mire ships as a single NuGet package targeting net10.0.
$ dotnet add package Mire Pre-1.0 — the public API still moves between minor versions. Pin an exact version.
Documentation
Four ways in: learn with tutorials, solve a specific problem with how-to guides, look things up in the reference, and understand the design in the explanations.
Step-by-step lessons. Start with the counter, then build a small interactive app.
tasks How-to guidesFocused recipes: input, theming, overlays, mouse and focus, text editing, images.
lookup ReferenceThe widget catalog, layout nodes, the Program/Cmd/Sub API, styling, and the agent layer.
understanding ExplanationWhy MVU for the terminal, how the render pipeline works, and the region model.