@afegmdg/react-tui
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

react-tui

A React custom renderer for the terminal.

This renderer is in early development phase ans should be considered as experimental. It will only work withReact's latest version (~18.0.2, using Fiber).

It's inspired by blessed/neo-blessed and react-blessed but a complete own, new implementation using typescript. It does not use the blessed or neo-blessed library at all.

Summary

Installation

You can install react-tui through npm:

npm install @afegmdg/react-tui

Demo

For a quick demo of what you could achieve you can clone this repository and check the example:

git clone https://github.com/AFE-GmdG/react-tui.git
cd react-tui
npm install

npm run builddemo
npm run demo

Usage

Currently you cannot use this version, since it's incomplete.

Next steps

  • [x] Figure out, how to bundle the library the correct way, so it can be used with other projects.
  • [ ] Complete the reconciler implementation
    • [ ] no more debugger / throw new Error("Method not implemented.")
  • [ ] Basic layout calculations
  • [ ] Colored output
  • [ ] Implement basic components
    • [ ] Text
    • [ ] Box
    • [ ] Button
    • [ ] Input

Readme

Keywords

Package Sidebar

Install

npm i @afegmdg/react-tui

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

122 kB

Total Files

19

Last publish

Collaborators

  • afe-gmdg