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.
| 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.