weft.
THE FOUNDATIONEvery interaction starts
with a thread.
Raw input, typed events, and terminal sessions with a clear beginning and end. The quiet machinery underneath your application.
Explore weft on GitHubTWO LIBRARIES. ONE FABRIC.
Swift libraries for command-line apps
on macOS, Linux, and Windows.
The Swift competitor to Ratatui (Rust) and Charm (Golang).
Open source · Apache 2.0 · Release 0.2.1
Reduced motion is on. Press Replay to watch the animation.
BUILT TO COMPETE. BUILT FOR SWIFT.
Ratatui has Rust. Charm has Golang.
Swift has loom & weft.
Build rich terminal interfaces in the language you already use. loom gives you composable layouts, widgets, and cell-diff rendering. weft gives you typed input events and terminal control.
Two libraries built specifically for Swift projects. Add them with SwiftPM and take command of your terminal.
Every interaction starts
with a thread.
Raw input, typed events, and terminal sessions with a clear beginning and end. The quiet machinery underneath your application.
Explore weft on GitHubGive those threads
a little character.
Compose text, layouts, and widgets into a complete frame. loom compares the cells and sends only what changed through weft.
Explore loom on GitHubRELEASE 0.2.1
Lists and tables, rich panels, gauges and tabs. Sparkline, BarChart, Chart, Canvas, and monthly calendars. Fixed and inline viewports, layout caching, and a headless test backend.
Validated on macOS, Linux under C and C.UTF-8, and Windows. weft supplies native console sessions and ConPTY. Platform details ↗
Coming next: repeated list prefixes, column flex, per-line alignment, border-independent titles, richer plotting, and explicit diff controls. Unreleased PR #2 guide ↗
A FEW LINES. A NEW POSSIBILITY.
Pick your layer. Add it with SwiftPM.
Swift 6.4+ · macOS 13+ · Linux · Windows · v0.2.1
// Add to your package dependencies
.package(
url: "https://github.com/standrze/loom.git",
from: "0.2.1"
)