Overview of the Stof Data Runtime
doc.lib() bridge. This allows services to share actual logic and capabilities as data, which the consumer can parse and execute immediately without requiring SDKs or redeployments.website·Indexed 32 days ago
https://stof.devStof is a data runtime that treats documents as graphs of named nodes rather than static trees of values. A strict superset of JSON, Stof allows data and logic to coexist in the same document, enabling documents to transform themselves and run unmodified across different targets. It is sandboxed by default and uses an async-first model where units of work are treated as processes.
doc.lib() bridge. This allows services to share actual logic and capabilities as data, which the consumer can parse and execute immediately without requiring SDKs or redeployments.Stof is a data runtime designed to solve the problem of 'schema drift' and the limitations of inert interchange formats (like JSON or YAML). Unlike traditional formats that require out-of-band validation or custom DSLs (e.g., HCL or OpenAPI), Stof provides a general-purpose runtime that bundles data and logic together. Key characteristics include:
await points, Stof switches between running work at the instruction level, enabling a more granular form of concurrency.Http library provides network capabilities within Stof. To use it, the http feature flag must be enabled. The library is designed to bridge naturally with TypeScript/JavaScript Promises when hosted in a TypeScript environment. Requests made via Http.fetch are executed on a background thread pool, preventing the calling process from blocking. Using await with Http.fetch allows multiple network requests to run in parallel.