Reference

Canonical reference for the Shaperail resource format, project configuration, CLI, and API contract.

Reference pages

Page Description
Resource guide Resource YAML: top-level keys, API versioning, multi-database (db:), multi-tenancy (tenant_key:), schema fields, field types, endpoints, controllers (Rust and WASM plugins), relations, indexes. The schema contract that drives codegen and runtime.
CLI reference All shaperail commands: init, generate, validate, migrate, seed, serve, build, export openapi/sdk, doctor, routes, jobs:status.
Configuration reference shaperail.config.yaml: project, port, workers, database, databases (multi-DB), cache, auth, storage, logging, events. Environment variable interpolation.
API responses and query parameters Response envelope (data/meta), error format, filtering, sorting, search, pagination (cursor/offset), field selection, relation loading, cache bypass.
Resource archetypes The 5 resource archetypes (basic, user, content, tenant, lookup): fields, endpoints, relations, indexes, and when to use each.

Use these pages when you need the exact syntax, allowed values, or behavior of a feature.

For AI assistants

These files are designed to be loaded as context into an AI assistant or IDE copilot. They are not part of the site navigation but are publicly accessible.

File Description
LLM Guide Single-file AI context: resource format, field types, endpoint config, relations, auth, jobs, events, WebSockets, controllers, CLI, and config — everything an LLM needs to generate valid Shaperail resources on the first pass.
LLM Quick Reference Terse lookup tables for field types, endpoint keys, config keys, and error codes. Use alongside the LLM Guide for fast token-efficient lookups.

Table of contents


Back to top

Shaperail documentation lives in the same repository as the framework so every release has versioned instructions. See the latest release for the most recent version.

This site uses Just the Docs, a documentation theme for Jekyll.