Build for Tern: libraries for programs that draw native UI in a terminal pane, and example plugins that extend Tern itself.
A program describes its UI as a tree of nodes over the Tern Surface Protocol; Tern lays it out, draws and animates it natively. Outside Tern the same program prints plain text.
Before you build a UI, read
Designing Views: an app as
a page (a head row, a stats strip, tabs between views, a full-width
selectable table beside the selected item's card), which kind does which
job, the sans face for apps, and the mistakes that make a view look like a
web page. Every SDK's dashboard example follows it.
| Language | Path | Package |
|---|---|---|
| Rust | rust/ |
crate tern-sdk |
| Python | python/ |
tern-sdk |
| Go | go/tern/ |
github.com/stencil-hq/tern-sdk/go/tern |
| TypeScript | typescript/ |
@stencil-hq/tern |
plugins/examples/ holds example plugins, one
installable folder each; plugins/tern.d.luau is the API they type-check
against. See the plugin docs.
tern plugin install github.com/stencil-hq/tern-sdk/plugins/examples/jsonxMIT.