staerm
v3.2.0
Published
Stateful, declarative & predictive library to build reactive terminal UIs
Downloads
9
Readme
staerm
Stateful, declarative & predictive library to build reactive terminal UIs.
Principles
The state of terminal at any given point can be represented by a simple object with the type –
{ text: string , input: | null | { position: { x: number , y: number } , caretOffset: number , length: number } }
The
state.text
is the (preferable) source of truth for all other internal app state. And optionallystate.input
but should be avoided if possible.
What, why & usage
Will add soon, by the time look at src/examples/hello.ts