API Reference - NinjaStack Docs
Description: Schema-first agentic backend framework documentation

Skip to content

# API Reference

Auto-generated documentation from source code docstrings.

## Packages

### Core

- Entity Schema — `ninja_core.schema.entity`
- Domain Schema — `ninja_core.schema.domain`
- Relationship Schema — `ninja_core.schema.relationship`
- Agent Config — `ninja_core.schema.agent`
- Project Schema — `ninja_core.schema.project`

### Agents

- Base Agents — `ninja_agents.base` (DataAgent, DomainAgent, CoordinatorAgent)
- Tools — `ninja_agents.tools` (CRUD tool generation)
- Tracing — `ninja_agents.tracing` (execution tracing)
- Orchestrator — `ninja_agents.orchestrator`

### Auth

- Gateway — `ninja_auth.gateway` (middleware)
- RBAC — `ninja_auth.rbac` (roles, permissions, enforcement)
- Context — `ninja_auth.context` (UserContext)
- Strategies — `ninja_auth.strategies` (OAuth2, JWT, API key, Identity)

### Code Generation

- Engine — `ninja_codegen.engine`
- Generators — `ninja_codegen.generators` (models, agents, graphql)