Stof is efficient, governable, and accessible data that is much simpler to use, offering fine-grained control and sandboxed manipulation between computer systems without the need for additional application code, servers, and dependencies.
The logic and cost involved in deciphering, unifying, and validating data entering and leaving computer systems are growing exponentially, becoming a bottleneck and limiting factor for next-generation federated applications and AI.
Stof drastically decreases the amount of application code it takes to do this by moving this logic into the data layer, creating a standard interface that can be used by all systems today for cheaper and higher-quality access to data, while improving application-level security, developer experience, and data governance.
CLI is a standalone way to use Stof outside of an embedded environment.
cargo install stof-cli
The Stof Rust Crate is the most fully-featured way to embed and work with Stof. However, we are adding as many languages as possible to this list.
cargo add stof
It is currently possible to use Stof from the browser and in JavaScript host environments through WebAssembly. In this context, Stof is not yet fully featured. Stof JSR
For declaring data, Stof is a superset of JSON - valid JSON will always be valid Stof.
users: [
{
name: "Joe Schmo", // commas or semi-colons accepted, but optional
cm height: 6ft + 1in // Stof adds units and declarations are expressions
age: +32; // trailing commas or semi-colons are okay
}, // trailing commas in arrays are okay
]
fn getJoe(): obj { // Stof adds data types (casting, etc..)
for (user in self.users) {
if (user.name.toLower().contains("joe")) return user;
}
return null;
}
#[main]
fn main() {
let joe = self.getJoe();
pln(stringify(joe, 'toml')); // any format loaded into the doc (parse too)
}
> stof run example.stof
age = 32
height = 185.42
name = "Joe Schmo"
Simplify data access, making it more straightforward to interact with diverse data sources and destinations. Stof works with other data formats instead of competing, meaning no matter what data format or schema you're interfacing with, Stof can help.
Add custom logic to Stof documents, leveraging their data for a more capable and robust data interface. Offer a safe way to send logic over the network, tying systems together at the data layer.
Ensure integrity by validating data using schemas, defined in Stof, reducing errors and maintaining consistency across applications.
Dynamically manipulate data, enabling seamless transformations to meet specific application needs, such as converting units or restructuring data formats.
Stof is a logical layer between data sources and applications, capable of unification, transformation, validation, structuring, access control, and orchestration between systems, replacing fragile application code typically responsible for these tasks.
Take a look first at the Stof test suite in src/tests/tests.stof
, this will give a good jumping off point, but there's a lot to do still overall. We'll update this section as the project progresses with more details on how you can specifically get involved.
There are lots of opportunities to contribute and use Stof. If you have ideas or want to get involved, just reach out and we'll make it happen.
Please also consider sponsoring and supporting this project as it's the only way we'll make strides towards our vision of a world where data is more secure, easily governed, and readily available - one with efficient and user-friendly access to high-quality data that is simple and native to the federated and decentralized world we are quickly moving towards.
Apache 2.0. See LICENSE for details.