Twiinix
Open Product

NinjaSaaS

Twiinix builds production-grade multi-tenant SaaS platforms. NinjaSaaS boilerplate for builders. Preszent for enterprises. Both ship in days with Stripe billing, Celery workers, Docker, CI/CD, and AI integrations.

Features

Everything you need to ship

Battle-tested infrastructure so you can focus on what makes your product unique.

Multi-Tenant Architecture

Schema-based tenant isolation built as core architecture. Each tenant gets isolated data, no cross-tenant bugs, row-level security, and compliance by design.

AI-Ready Integrations

OpenAI, Claude, and custom LLM scaffolding. Prompt templates, token tracking, cost monitoring, and RAG pipelines — build AI features without rewiring your stack.

Stripe Billing

Subscriptions, usage-based billing, and credit systems with full webhook handling. Plans, trials, and upgrades — monetize from launch.

Team & RBAC

Workspace management with role-based access control. Invite members via email, set permissions, and manage access at tenant and user level.

Django Ninja API

Type-safe, async-capable REST API with automatic OpenAPI docs. Pydantic schemas, request validation, and tenant-aware middleware built in.

Celery + Redis Workers

Background task processing for emails, billing webhooks, data imports, AI jobs, and async workloads. Production-ready config with monitoring.

AI Module

LLM integration, not an afterthought

Two providers, three endpoints, token tracking, and prompt templates — all tenant-aware and cost-monitored from day one.

  • OpenAI + Anthropic support (provider-agnostic interface)
  • POST /ai/completions — raw prompt, any model
  • POST /ai/ask — question + context, structured response
  • POST /ai/summarize — text → bullet summary
  • Token tracking + cost estimation on every response
  • 4 system prompt templates (assistant, code review, summarizer, RAG)
  • All endpoints tenant-scoped with X-Workspace-ID
HTTP
POST /api/v1/ai/ask
Authorization: Bearer <token>
X-Workspace-ID: acme

{
  "provider": "openai",
  "model": "gpt-4-turbo",
  "prompt": "Summarize this quarter's sales data",
  "context": "Q3 revenue: $120k...",
  "max_tokens": 512
}
Django 6Python 3.14Django NinjaPostgreSQLStripeCeleryRedisDockerGitHub Actionspytest

Pricing

Choose your package

One-time payment. Lifetime access. No subscriptions.

Starter

Core SaaS foundation

$79

  • Full source code
  • Multi-tenant architecture
  • JWT authentication
  • Docker setup
  • Basic documentation
Most popular

Pro

Everything to ship fast

$149

  • Everything in Starter
  • Stripe billing integration
  • Celery + Redis workers
  • CI/CD pipeline
  • Team management
  • Email verification flows

Extended

Full support package

$299

  • Everything in Pro
  • Priority email support
  • Architecture review session
  • 1 year of updates
  • Custom setup guidance

Use code LAUNCH40 for 40% off any tier

What's included

Production-ready from clone

Every module is tested, documented, and ready to customise. No half-built stubs — this is the same foundation we use for client projects.

PostgreSQL with schema-based multi-tenancy
AI scaffolding (OpenAI, Claude, LLM APIs)
Prompt templates and token tracking
JWT authentication with refresh tokens
Email verification and password reset flows
Stripe subscriptions + usage-based billing
Team workspaces with role-based access
Celery + Redis for background tasks
Docker + docker-compose for local dev
GitHub Actions CI/CD pipeline
86 tests with pytest and factory_boy
Tenant-aware middleware and permissions
Rate limiting and throttling
Auto-generated OpenAPI documentation

Who it's for

Built for builders

  • Founders building AI-powered SaaS products
  • Teams shipping B2B multi-tenant platforms
  • Developers who want proven Django + AI foundation
  • Anyone tired of rebuilding auth, billing, multi-tenancy, and LLM wiring from scratch
  • Teams prioritizing data isolation and compliance (GDPR, SOC 2)
~/ninjasaas
$ git clone ninjasaas && cd ninjasaas
$ docker-compose up -d
Creating ninjasaas_db_1     ... done
Creating ninjasaas_redis_1  ... done
Creating ninjasaas_celery_1 ... done
Creating ninjasaas_web_1    ... done

$ python manage.py test
86 passed in 4.2s

Quick start

Up and running in 4 commands

terminal
$ cp .env.example .env
$ make build && make dev
$ make migrate && make seed-demo
$ open http://localhost:8000/api/docs

# Your multi-tenant SaaS is running.
# 27 API endpoints. 86 tests passing.

FAQ

Common questions

What is NinjaSaaS?

NinjaSaaS is a production-ready Django Ninja boilerplate for building multi-tenant SaaS applications. It includes authentication, Stripe billing, background jobs, Docker setup, and CI/CD — the infrastructure you need to ship a SaaS product fast.

What's included in each tier?

Starter gives you the core architecture and source code. Pro adds Stripe billing, Celery workers, CI/CD, and team management. Extended adds priority support, an architecture review session, and 1 year of updates.

Can I use it for multiple projects?

Yes. Your license covers unlimited projects for your team or company. Build as many SaaS products as you want with NinjaSaaS as your foundation.

What version of Django does it use?

NinjaSaaS is built on Django 6 with Django Ninja for the API layer, Python 3.14, PostgreSQL, and Celery with Redis for background processing.

Is there documentation?

Yes. Every module is documented with setup guides, architecture explanations, and code walkthroughs. The Pro and Extended tiers include additional deployment and customisation guides.

Get started

Stop rebuilding the same infrastructure

Auth, billing, multi-tenancy, AI integrations, background jobs, Docker, CI/CD — it's all here. Clone it, customise it, ship your AI-powered SaaS fast.