🚀Stof: Data + Logic
Data and logic have always been separate. That makes things hard. Stof puts them together.
Why Stof?
1. Data that validates and computes itself
#[type]
Server: {
#[schema((target_val: int): bool => target_val > 1024 && target_val <= 65536)]
int port: 8080
#[schema((target_val: str): bool => target_val != "")]
str! address: "localhost"
#[schema((target_val: MiB): bool => target_val > 2MB)]
MiB memory: 500GiB
fn url() -> str {
`https://${self.address}:${self.port}`
}
}
#[main]
fn main() {
const server = new Server { port: 4000, address: "my-server.com" };
assert(<Server>.schemafy(server));
pln(server.url()); // https://my-server.com:4000
}2. Prompts, Context, and AI workflows as maintainable data
3. Logic that travels with your data across any boundary
Embedded Anywhere
TypeScript / JavaScript
Rust
Python
Built with Stof
Company
Description
Get Involved
Last updated

