Write, read, debug, and embed Stof documents: JSON with functions, types, units, schemas, and tests that run sandboxed in-process from Rust, TypeScript, or Python.
Stof is JSON with functions. Put the logic next to the data, and your app runs the document in a sandbox that can only touch what you hand it. In Rust, JavaScript, and Python.
Any JSON is already a Stof document. Add a function where the logic belongs, and your app calls it the way it reads a
field. The document runs inside your process: no server, no container, and it can't reach anything you didn't give it.
A document sees itself and the functions your app registers. There's no file system, network, or environment unless
you turn them on, and network access can be limited to the hosts you list (doc.allowHttp(['api.example.com']) in
JavaScript, doc.allow_http_hosts(['api.example.com']) in Python).
Every call has a time and memory limit. You can also seal the parts you trust, so nothing can change them, and confine
code from somewhere else so it sees only what you list. See Security and the Sandbox.