Skip to content

Scripting your users can write, and you can trust

NorthTalk is a HyperTalk-descended language for untrusted end-user Scripts, run in a sandbox inside Go, Bun, Node and Elixir servers and browsers.

Reads like English

put word 2 of line 3 of report into w. Chunk Expressions, plain-word operators and one exact decimal number type, so end users can read what they wrote.

Sandboxed by Capabilities

A Script can do nothing on its own. Every effect goes through a Capability the Host grants, and every Run is metered with Fuel.

An actor per Script

Each Script has its own mailbox and never runs two Handlers at the same instant. Runs interleave only where the code says wait, so there are no data races to reason about.

Embeds where you already are

The TS Core runs in Bun, Node and the browser. Go and Elixir Hosts embed the Zig Core. Every Core passes the same Conformance Corpus.

Handlers answer messages. Clauses pick one by the shape of the argument, and wait is the only place a Run can pause.

on handle {type: "invoice", amount: a} as inv where a > 1000
send review with inv to approvals into verdict and wait
if verdict is "approved" then file inv
end handle
on handle {type: "invoice"} as inv
file inv
end handle
on handle other
pass handle -- hand it on up the Message Path
end handle

The tour covers the whole language in one page. How NorthTalk runs explains the ideas behind it: Hosts, Script Groups, Pumps, Fuel, Traces and saves. The Specification is the authority on every rule.