Simple TUI Todo App built with React and Ink, bundled with Bun.
-
Clone the repository
git clone https://github.com/AlbertArakelyan/bun-react-tui-todo.git
-
Start editing
todo.jsx -
Build
todo.jsxinto an executable with Bunbun build todo.jsx --compile --outfile todo.exe
Bun can build into an executable at once.
Or into native Javascript -
dist/todo.jsbun build todo.jsx --outdir dist --target bun
Build scripts can be found in
package.jsonas well. -
Run with Bun
bun todo.jsx
Bun can run
todo.jsxstraightaway without compiling intotodo.jswith Vite.
You can run compiled executable straightway as well.
Note
This is one advantages of Bun towards Vite.
- nodejs
v22.18.0 - npm
v11.5.2 - bun
v1.3.6
Interactive component based UI library for Javascript.
https://react.dev
Library which provides TUI components for React and can render jsx in the terminal via render(<App />).
https://github.com/vadimdemedes/ink
Text input component for Ink.
https://github.com/vadimdemedes/ink-text-input
Feeling lucky? Give it a star ⭐ and fork for adding something from your side 😊.
This project was created using bun init in bun v1.3.6. Bun is a fast all-in-one JavaScript runtime.
