githubEdit

🚀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

circle-info

Check out our GitHubarrow-up-right & Discordarrow-up-right server to get involved, or email [email protected].

Company
Description

Limitrarrow-up-right - Complete Monetization for AI & SaaS.

Virnika

Virnikaarrow-up-right - AI Agents for Restaurants.

Katerarrow-up-right - Comprehensive Data & Analytics.

Your logo here

Examples

circle-check

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.

circle-info

Try this example in the playgroundarrow-up-right.

Workflows & Pipelines

Stof is a lightweight document format where workflows are portable, executable data. See an example here.

circle-check

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.

circle-check

NPM

npm i @formata/stof

Rust

Python

Stof is available on PyPiarrow-up-right, just pip install stof and import pystof module to get started.

Feedback & Community

Last updated