Define a schema
A schema in panproto is a graph of vertices and edges, validated against a protocol’s GAT. You can build one from any of the four surfaces, with the same outcome.
| Surface | Page |
|---|---|
schema CLI | From the CLI |
| TypeScript SDK | From TypeScript |
| Python SDK | From Python |
| Rust SDK | From Rust |
The CLI is the recommended starting point if you have an existing schema file (JSON Schema, Protobuf, ATProto Lexicon, …) you want to load and inspect. The language SDKs are the recommended starting point if you are building schemas programmatically inside an application.
See also
- Reference: protocol catalogue for the list of supported protocols.
- Schemas as theories for the model.