Model-driven CRUD engine and authentication runtime for FastAPI.
Define your database schema in JSON. Kirak generates the REST API, handles database migrations, enforces role-based access control, and provides a complete auth system – with zero boilerplate.
Feature
Details
CRUD API
fetch, search, count, exists, create, update, upsert, delete, destroy, restore routes auto-generated for every model
Authentication
JWT login/register, refresh tokens, email verification, password reset, API keys
Social Auth
Social login with 200+ providers (Google, GitHub, Apple, … ), web + mobile
OTP & MFA
SMS OTP login, TOTP multi-factor authentication, backup recovery codes
Role-Based Access
Per-operation access rules with per-row ownership conditions and field-level permissions
Soft Delete
deleted_at-based soft delete with hard destroy; auto-managed
Hooks
Before/after hooks on every CRUD operation and auth event
Migrations
Multi-dialect CLI-driven schema migrations for MySQL, PostgreSQL, and SQLite
GraphQL
Auto-generated GraphQL endpoint for joins, aggregates, and multi-root atomic mutations
MCP
Model Context Protocol servers for AI coding agents (mcp/*.json)
Optional Modules
Notifications, Payments, Integrations, Storage, Scheduler, AI, Vector, MCP, Monitoring – lazy-loaded
pip install ' kirak[postgres] ' # or [mysql]
kirak new my-api --database postgres # or sqlite, or mysql (the default)
pip install -e . # the project's dependencies, driver included
# fill in database credentials and JWT secrets in .env
createdb my_api # MySQL: CREATE DATABASE my_api; SQLite: nothing to do
Your API is live at http://localhost:8000. GET /docs describes it in Markdown and GET /openapi.json as an OpenAPI 3.1 document.
To put it online, run kirak deploy from the project folder: it prints a public URL on Kirak’s hosting, with no account or email needed, and a claim link. Claim the instance to keep it running (Put It Online ; free tier terms at kirak.io/deploy ).
Document
Description
Architecture
Request lifecycle, runtime engine, and internal design
Defining Models
Field types, schema options, soft delete, relationships
Access Control
RBAC, row-level security grammar, field-level access
Hooks & Events
Before/after hooks for CRUD and auth events
Response Envelope
The shared success/error response contract
Observability
Built-in RED metrics, request tracing, log capture, alerting
Document
Description
Core Auth
JWT login/register, refresh tokens, email verification, API keys
Social Auth
Social login with 200+ providers (Google, GitHub, Apple, …)
MFA & OTP
SMS OTP and TOTP multi-factor authentication
Standalone Auth
Running Kirak as a standalone auth microservice
Document
Description
Notifications
Email, SMS, push, chat, and webhooks, plus an in-app inbox
Payments
Stripe, Razorpay, Square, PayPal, Paddle, Paystack, Flutterwave, Mercado Pago, Xendit, Airwallex, Omise, Telr
Integrations
Connect OAuth 2 accounts or save API keys; token refresh and proxy routing
Storage
File and image upload: local disk, S3, Wasabi, R2, Spaces, Cubbit, OVHcloud, B2, GCS, Azure Blob
Scheduler
Background tasks and recurring cron jobs: Database, Redis, and RabbitMQ backends
AI Integration
Prompts, structured output, and agents on OpenAI, Anthropic, or Gemini
Vector
Embeddings and vector search for RAG: Pinecone or S3 Vectors
MCP Servers
Model Context Protocol servers for AI coding agents (mcp/*.json)
Document
Description
CLI Reference
kirak new, facts, validation, and kirak db migration commands
Configuration
All environment variables and kirak.json options
HTTP API Reference
Every route, request/response shape, and filter operator
Database Layer
Connection pooling, dialect differences, and migration files
Middleware
Request context, security headers, and ASGI middleware stack
Redis Integration
Sliding-window rate limiting, query caching, OTP, and queues
Rate Limiting
Per-model and global rate limit configuration
Monitoring
Prometheus metrics, health checks, and traces
Problem Codes
Stable error codes reported by kirak validate
Social Providers
Complete directory of supported social login providers
Integration Profiles
Complete schema specification for integration profiles
Apache License 2.0 – see LICENSE.md .