Skip to content

signalxjs/terminal

@sigx/terminal

npm license ci

SignalX Terminal — a TUI framework with TSX support built on the SignalX reactivity system.

🚧 Early public release (0.4.x). API is small and stabilising.

Packages

Package Description
@sigx/terminal Public entry: re-exports reactivity, runtime-core and the terminal renderer + components. Set jsxImportSource: "@sigx/terminal" to use TSX.
@sigx/runtime-terminal The terminal renderer + built-in components (Input, Button, Select, Checkbox, ProgressBar).

Install

pnpm add @sigx/terminal

Quick start

/** @jsxImportSource @sigx/terminal */
import { signal, component, defineApp, Button } from '@sigx/terminal';

const App = component(() => {
    const count = signal(0);
    return () => (
        <box>
            <text>Count: {count()}</text>
            <Button label="Increment" onPress={() => count.set(count() + 1)} />
        </box>
    );
});

defineApp(App).mount();

Related repos

  • signalxjs/core — reactivity, runtime-core, DOM renderer, SSR, Vite plugin.
  • signalxjs/cli — the sigx CLI and create-sigx scaffolder.

License

MIT

About

SignalX Terminal — a TUI framework with TSX support, built on @sigx/reactivity and @sigx/runtime-core

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors