🚀Stof: Data + Logic
JSON with functions that you can move around between services/APIs, add/remove/edit in transit, with a slim sandboxed WASM runtime and a clean interop model for host libraries.
Use-Cases
Smart configs with validation and logic
Data interchange with sandboxed execution
Prompts as human-readable & maintainable data + code
AI/LLM workflows and model configs
Data pipelines with built-in processing
Integration glue between systems
Self-describing datasets
... basically anywhere data meets logic
Contributors
Check out our GitHub & Discord server to get involved, or email [email protected].
Examples
Check out the online playground for real examples you can play with right now.
Data Format + Logic
Stof is format-first, similar to JSON, YAML, TOML, etc., with functions that can transform the document they are defined in.
Data Transformation
Manipulate the document using the functional data it contains.
Try this example in the playground.
Workflows & Pipelines
Stof is a lightweight document format where workflows are portable, executable data. See an example here.
Stof has prototypes, which make workflows much simpler, more powerful, and more maintainable.
Self-Validating Data
Beyond simple functions, Stof supports comprehensive schemas for validations and transformations.
Prompt Management
Primitive types designed for modern needs & workflows (prompts, unit types, const fields, etc.).
Embedded
Stof is written in Rust and can be embedded today in Python, TypeScript/JavaScript (via WebAssembly), or within your Rust project.
Several languages are planned. Please reach out on Discord to get involved.
NPM
npm i @formata/stof
Rust
Python
Stof is available on PyPi, just pip install stof and import pystof module to get started.
Feedback & Community
Open issues or discussions on GitHub
Please join the Discord to get involved and/or discuss Stof
Email [email protected] to contact us directly
Last updated


