Menu

Post image 1
Post image 2
1 / 2
0

I built "Next.js for the terminal" in TypeScript — here's the architecture

DEV Community·OmarMusayev·18 days ago
#iwYMyh6c
Reading 0:00
15s threshold

A few months ago I started building terminaltui — a TypeScript framework for interactive terminal apps. The pitch is "Next.js for the terminal": write a pages/ directory of TS files, get a fully navigable TUI with file-based routing, components, themes, and SSH hosting. It just hit v1.8.1 on npm with 2,142 passing tests. You can try it in zero seconds: npx terminaltui try Enter fullscreen mode Exit fullscreen mode That opens a 5-page guided tour of the framework — no install, no signup. This post is the technical writeup: how the file-based router works, the layout engine, and the SSH hosting bit. If you've used Ink (React for the terminal), terminaltui is in the same neighborhood but a step further — it ships routing, layout, and themes as defaults instead of "bring your own React patterns." The file-based router A terminaltui project is just two things: config.ts and pages/ .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More