This example demonstrates using the repository-native @termuijs/router to build a small multi-screen terminal UI.
/— Home screen (pressito go to the items list)/items— Items list (use Arrow keys to navigate,Enterto open an item)/items/:id— Item details (pressbto go back)
Install dependencies at the repo root, then run:
cd examples/multi-screen-router
bun run devFlow: Home -> Items -> Item Details -> Back
This example uses router.push(path) to navigate and router.back() to return.