Skip to main content

Coverage & scope

Xano SDK compiles your workspace (and decodes one on a pull); the engine imports and executes it. Fidelity is proven by deep-equal against the real Xano engine golden fixtures, and a coverage report prints on every test run. The four engine kinds you cannot author here are tablemap, the superseded realtime_channel, branch and market_item. Two of the four, branch and market_item, are instance state rather than workspace source, so a bundle has no section for them and a pull could not bring one back. A containerized job needs no object of its own: s.cloud.job takes an image and a command directly, so the job is declared at the call site, and a long-running container that belongs to a workspace is a microservice(). llms.txt names all four with their reasons. llms.txt and manifest.json regenerate their counts from the SDK’s own catalogs; this table is hand-written, so a test asserts every figure in it against buildManifest() (@xano/sdk/internal) — the numbers here and the numbers an agent reads cannot disagree. The statement catalog is generated from the engine’s own schemas (npm run codegen): 161 of the 227 surfaces are declarative and carry a typed field schema, and the remaining 66 — control flow, the db family, the call family — are hand-authored. Reachable ≠ byte-verified: every surface is authorable, but a structural special without a persisted golden yet emits a shape modeled on the engine schema, to be deep-equal’d against fixtures as they are captured. Out of scope — reimplementing the engine’s XanoScript parser, executing objects at runtime (Xano SDK only compiles), and generating engine-side numeric ids/timestamps. (Object guids and canonicals are handled — deterministically derived or frozen via xano.lock.) Deferred (by design) — folder auto-discovery, and the service / branch payload sections. (The vault section is emitted: it carries the files hostedFile(...) uploads.) (Round-trip decompile is no longer deferred: that is npx @xano/sdk init --from, in Pulling an existing workspace; nor is workflow_test — it is a first-class kind, see workflowTest in Object kinds.) InferResponse auto-derivation covers object literals, c.* constants, db variables, s.set_var, filter chains (folded into the type) and typed addons merged onto a row, and follows a CALL into the object it invokes (s.function.run and s.api.call given a def handle bind the target’s own InferResponse; s.function.call and s.tool.call bind it unioned with CallErrorEnvelope, since they hand back a failure instead of raising). A value built inside control flow or by a lambda, and an addon named by a bare string, resolve to unknown — declare responseShape for those.

Agent grounding

Xano SDK ships two machine-readable descriptions of its whole authoring surface so an agent can learn the SDK without reading source:
  • llms.txt — the always-read router: the mental model, the deploy contract, control flow, the non-obvious rules in ## Gotchas, and a ## Topic files list naming each llms/*.md and when to open it. It does not document the CLI — npx @xano/sdk <command> --help and the cli array in manifest.json do, from the same registry that generates the shell completions. The written version is the CLI guide.
  • llms/*.md — one file per surface (object def shapes, statements, values, fields, filters, lambda bodies, triggers, saved tests, the lock file, toolchain modules, what a client pays to import a def, an index of exact error strings, and the legacy names a pulled workspace carries), read only when that surface is in play. llms-full.txt is all of them concatenated, for a reader that cannot open files.
  • manifest.json — the exhaustive reference tier, reached by targeted lookup (grep or jq one entry; at ~85k tokens, never read it whole). Every object kind (factory, Xano.register* method, payload key), every field type (fieldTypes), every statement surface (the s.<path> accessor, stored mvp: name, and a typed field schema for the 161 declarative statements), the value constructors and tag catalog (values.tags), the filter catalog, and every CLI command and flag (cli, cliGlobalFlags) — plus live coverage counts. statements and filters are arrays: select an entry (jq '.statements[] | select(.sPath=="db.get")'), don’t index by name.
Both derive from the SDK’s own sources of truth (so they can’t drift), regenerate with npm run manifest, and are available at runtime via buildManifest() / renderLlmsTxt(), both exported from @xano/sdk/internal. The package also ships the xano-backend agent skill at skills/xano-backend/SKILL.md. It carries no reference of its own: it tells a coding agent when to set up a Xano backend, runs it through init and the first deploy, and hands it to the project’s AGENTS.md and llms.txt. Installing it is in the CLI guide.
Generated from @xano/sdk 1.0.34.