Skip to content

devanshj/staerm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

staerm

Stateful, declarative & predictive library to build reactive terminal UIs.

Principles

  1. 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
          }
    }
  2. The state.text is the (preferable) source of truth for all other internal app state. And optionally state.input but should be avoided if possible.

What, why & usage

Will add soon, by the time look at src/examples/hello.ts

About

Stateful, declarative & predictive library to build reactive terminal UIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published