
Description
Stof is an open-source format for JSON that runs. A Stof document holds data and functions together, so the logic sits next to the data it works on. Your app loads the document and calls its functions from Rust, JavaScript or Python. The runtime is sandboxed, so the document can only touch the values your app hands it. The site says a model can write Stof because it reads like JSON and JavaScript, and a person can read it too. Before a generated document runs, you can parse it and check its output against the cases you care about, then ship it only if it passes. Nothing runs outside your process, and nothing needs deploying. The project offers npm, Cargo and pip packages, a browser playground and documentation. The source is linked from the site's GitHub link.…
Highlights
- Data and functions in one JSON-like document
- Runs from Rust, JavaScript and Python
- Sandboxed so it only touches values your app passes in
- Parse and test model-written rules before they ship
- Install with npm, cargo or pip
Ratings & Reviews
No ratings yet
Be the first to rate Stof.
People also visit
Stof FAQ
What is Stof?
Stof is JSON with functions. You keep data and the logic that works on it in one document, and your app runs that document in a sandbox.
How do I install it?
Use npm i @formata/stof for JavaScript, cargo add stof for Rust, or pip install stof for Python.
What can a Stof document access?
According to the site, the sandbox can only touch what your app hands it. Nothing runs outside your process.
Can an AI model write Stof?
Yes. The site says models write Stof well because it reads like JSON and JavaScript. You can parse a draft and run it against test cases before it ships.
Can I try it before installing?
Yes. The site has a Playground that loads the runtime in the browser, plus docs for reading through the format.
What are the best Stof alternatives?
Popular alternatives to Stof include Stash, Spotlight and River. See all Stof alternatives

