Veloce - Rust terminal apps: routes, flexbox, no event loop

Most Rust terminal libraries stop at drawing cells. Veloce is the application layer above them: a stack router, taffy flexbox snapped to cells, async hydration with cancellation, and a runtime that restores the terminal after a panic or Ctrl-C. The layout cache reuses clean taffy trees: a 2,000-child frame drops from 2.25 ms cold to 160 µs cached. Live frame stats show it. 62 tests, six crates. cargo add veloce-tui. Free and open source.

Add a comment

Replies

Best

Hey Product Hunt — I built Veloce because a terminal app should feel like building a web app, not like fighting crossterm and a hand-rolled event loop.

You declare routes and views. Veloce owns the event loop, taffy flexbox layout snapped to terminal cells, async hydration that cancels when you navigate away, and a runtime that restores the terminal after a panic or Ctrl-C.

  • Stack router with shells, persistent chrome, and modal overlays
  • Elm-style update(action) state — no locks in user code
  • Layout cache: 2,000-child frames from 2.25 ms cold to 160 µs cached, visible in live frame stats
  • 62 tests, including real-PTY crash-recovery tests
  • Six crates on crates.io: cargo add veloce-tui

Watch the 15-second demo: — it shows the cache toggle and a panic that restores the terminal.

Free and open source: . Feedback only — which primitive should I build next: a table, or focus traps?