Skip to content
stencil-hqPublic

About

Tern SDKs (Rust, Python, Go, TypeScript) for the Tern Surface Protocol, and example Tern plugins.

Resources

Stars

135 stars

Watchers

0 watching

Forks

Latest commit

 

History

39 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tern SDK

Build for Tern: libraries for programs that draw native UI in a terminal pane, and example plugins that extend Tern itself.

Surface Protocol SDKs

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

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/jsonx

MIT.

About

Tern SDKs (Rust, Python, Go, TypeScript) for the Tern Surface Protocol, and example Tern plugins.

Resources

Stars

135 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages