Examples - NinjaStack Docs
Description: Schema-first agentic backend framework documentation

Skip to content

# Examples

Walk through a complete Online Bookstore to learn every layer of NinjaStack.

## The Bookstore

A simple bookstore with Books, Customers, Orders, and Reviews — enough to demonstrate the full stack.

# | Example | What You'll Learn
--- | --- | ---
1 | Schema Definition | Define entities, relationships, domains
2 | Code Generation | Generate models, agents, GraphQL from schema
3 | Data Agents | Deterministic CRUD, tool scoping, tracing
4 | Domain Agents | LLM-powered orchestration, delegation
5 | Auth & RBAC | Identity, tokens, role-based permissions
6 | End-to-End | Full pipeline: schema → agents → auth → query

## Running the Examples

    cd agentic-backend
    PYTHONPATH=examples/bookstore uv run python examples/bookstore/01_schema_definition.py

All examples run without API keys (deterministic mode).