-
-
Notifications
You must be signed in to change notification settings - Fork 2
README
The Complete Self-Hosted Backend Platform
Deploy a complete backend in minutes, not days with ɳSelf.
🔄 v0.9.8 Command Update: Commands have been consolidated into a v1.0 structure. Old commands like
nself billing,nself org,nself stagingstill work but are now organized under logical groupings:nself tenant billing,nself tenant org,nself deploy staging. See Command Consolidation Map for the complete reference.
| I want to... | Go to... |
|---|---|
| Get started in 5 minutes | Quick Start Guide |
| Install nself | Installation |
| Understand core concepts | Architecture |
| Look up a command | Commands Landing |
| Configure my setup | Configuration Guide |
| Deploy to production | Deployment Guide |
| Fix a problem | Troubleshooting |
| See examples | Examples |
| Learn specific features | Tutorials |
# 1. Install nself
curl -sSL https://install.nself.org | bash
# 2. Create your project
mkdir myapp && cd myapp
nself init
# 3. Build and start
nself build && nself start
# 4. Design your database (optional but recommended)
nself db schema scaffold basic # Creates schema.dbml
nself db schema apply schema.dbml # Import → migrate → seedDone! You now have:
- GraphQL API at
api.local.nself.org - Authentication at
auth.local.nself.org - Database with your schema
- Sample users to test with
ɳSelf is a complete self-hosted Backend-as-a-Service platform that provides all the features of commercial services like Supabase, Nhost, or Firebase, but runs entirely on your own infrastructure.
┌─────────────────────────────────────────────────────────────────────┐
│ YOUR APPLICATION │
├─────────────────────────────────────────────────────────────────────┤
│ Frontend (React, Vue, Next.js, etc.) │
│ ↓ GraphQL queries and mutations │
├─────────────────────────────────────────────────────────────────────┤
│ ɳSelf │
│ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ ALWAYS RUNNING (4 services) │ │
│ │ PostgreSQL · Hasura GraphQL · Auth · Nginx │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ OPTIONAL (enable as needed) │ │
│ │ Redis · MinIO · Search · Mail · Functions │ │
│ │ MLflow · Admin Dashboard │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ MONITORING (all-or-nothing bundle) │ │
│ │ Prometheus · Grafana · Loki · Tempo · Alertmanager │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ YOUR CUSTOM SERVICES │ │
│ │ Express · FastAPI · gRPC · BullMQ · and 40+ more │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ PLUGINS (v0.4.8) │ │
│ │ Stripe · GitHub · Shopify · and more │ │
│ └──────────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────┤
│ Runs on: Docker Compose · Any Cloud · Any Server · Laptop │
└─────────────────────────────────────────────────────────────────────┘
Start here if you're new to ɳSelf
- Getting Started Guide - Complete getting started guide
- Quick Start - Get running in 5 minutes
- Installation - Detailed installation guide
- FAQ - Frequently asked questions
- Database Workflow - DBML to production in one command
- Demo Setup - Full demo with 25 services
Understand how ɳSelf works
- Architecture - System design and components
- Project Structure - File organization
- Build System - How build works
- Services Overview - All available services
Complete command documentation
- All Commands - Top-level command landing and index
- Core Commands - init, build, start, stop, status
- Database Commands - migrate, seed, mock, backup, schema, types
- Deployment Commands - SSH deployment, environments
- Performance Commands - Profiling and benchmarking
- Plugin Commands - Plugin management
- Quick Reference - Printable cheat sheet
Configure your ɳSelf setup
- Configuration Guide - Complete configuration overview
- Environment Variables - All .env variables
- Start Command Options - Startup configuration
- Custom Services - CS_N variables
- Admin UI - Web dashboard setup
Deploy to production
- Deployment Guide - Production deployment overview
- SSH Deployment - Zero-downtime deployment
- Environment Management - local, staging, production
- Security Guide - Production security
- Backup & Recovery - Database backups
Learn specific features and workflows
- Database Workflow - Design-first development
- Multi-App Setup - Multiple apps in one stack
- Service Communication - Microservices patterns
- OAuth Setup - Social login configuration
- Real-Time Features - Subscriptions and live data
- Organization Management - Multi-tenancy
- Billing & Usage - Usage tracking and billing
- All Tutorials - Step-by-step tutorials
Available services and configuration
- Services Overview - All available services
- Required Services - Core 4: PostgreSQL, Hasura, Auth, Nginx
- Optional Services - 7 additional services
- Monitoring Bundle - 10-service observability stack
- Custom Services - Build from 40+ templates
- Service Templates - Template reference
Extend ɳSelf with third-party integrations
- Plugin Overview - Plugin system introduction
- Plugin Development - Creating custom plugins
- Stripe Plugin - Payment processing
- GitHub Plugin - Repository sync
- Shopify Plugin - E-commerce integration
GraphQL and REST APIs
- API Overview - API documentation
- GraphQL API - Hasura GraphQL reference
- Billing API - Billing endpoints
- White-Label API - White-label endpoints
Fix common issues
- Troubleshooting Guide - Common issues and solutions
- Doctor Command - Automated diagnostics
- Billing Troubleshooting - Billing issues
- White-Label Troubleshooting - Branding issues
Real-world examples and code
- Examples Index - All examples
- Features Overview - Feature examples
- Deployment Examples - Production setups
- Real-Time Chat - Real-time example
Latest Release: Complete security audit, CI/CD improvements, and documentation standardization.
See v0.9.8 Release Notes for details.
Major Update: Commands consolidated from 79 legacy top-level commands into 31 top-level commands for better organization:
-
nself billing→nself tenant billing -
nself org→nself tenant org -
nself staging→nself deploy staging -
nself prod→nself deploy production -
nself storage→nself service storage -
nself oauth→nself auth oauth - And 40+ more command mappings
View Complete Consolidation Map
Complete multi-tenancy with billing, white-labeling, and tenant isolation:
# Initialize multi-tenancy
nself tenant init
# Create tenant
nself tenant create "Acme Corp" --slug acme --plan pro
# Billing management (v0.9.6: consolidated from "nself billing")
nself tenant billing usage
nself tenant billing subscription upgrade pro
# Organization management (v0.9.6: consolidated from "nself org")
nself tenant org list
# Custom domains and SSL
nself tenant domains add app.example.com
nself tenant domains ssl app.example.com
# Brand customization
nself tenant branding set-colors --primary #0066ccNote: All old commands still work with deprecation warnings. See Migration Guide.
Comprehensive OAuth provider integration (v0.9.6: now under nself auth oauth):
# Enable multiple providers
nself auth oauth enable --providers google,github,slack,microsoft
# Configure credentials
nself auth oauth config google --client-id=xxx --client-secret=xxx
# Test configuration
nself auth oauth test googlev0.9.6: OAuth commands consolidated under
nself auth oauth. Old syntax still works.
Advanced file storage with thumbnails, virus scanning, and compression:
# Upload with all features
nself service storage upload photo.jpg --all-features
# Generate GraphQL integration
nself service storage graphql-setup
# Manage uploads
nself service storage list users/123/v0.9.6: Storage commands consolidated under
nself service storage. Old syntax still works.
Design your schema visually, generate everything automatically.
nself db schema scaffold saas # Start with a template
# Edit schema.dbml at dbdiagram.io
nself db schema apply schema.dbml # Creates tables + mock data + usersDifferent behavior for local, staging, and production.
| Command | Local | Staging | Production |
|---|---|---|---|
db mock |
Works | Works | Blocked |
db reset |
Works | Confirm | Blocked |
db seed users |
Mock users | QA users | Only explicit users |
Zero configuration required for common cases.
nself db migrate up # Just works - no flags needed
nself db backup # Auto-names: myapp_local_20260122.sql
nself db seed # Knows your environment
nself db types # Generates TypeScript by defaultBuild custom services in any language.
JavaScript/TypeScript: Express, Fastify, NestJS, Hono, BullMQ Python: FastAPI, Flask, Django, Celery Go: Gin, Fiber, Echo, gRPC Others: Rust, Java, PHP, Ruby, C#, Elixir
# 1. Local development (3 commands)
nself init && nself build && nself start
# 2. Design database
nself db schema scaffold saas
# Edit schema.dbml
nself db schema apply schema.dbml
# 3. To production (2 commands)
nself env create prod production
# Edit .environments/prod/server.json with your server
nself deploy prod5-6 commands from blank folder to production.
View Complete Deployment Guide
| Type | Count | Examples |
|---|---|---|
| Required | 4 | PostgreSQL, Hasura, Auth, Nginx |
| Optional | 7 | Redis, MinIO, Search, Mail, Functions, MLflow, Admin |
| Monitoring | 10 | Prometheus, Grafana, Loki, Tempo, Alertmanager, + exporters |
| Plugins | 3+ | Stripe, GitHub, Shopify, and more coming |
| Custom | Unlimited | Your services from 40+ templates |
| Version | Date | Focus |
|---|---|---|
| v0.9.8 | Jan 31, 2026 | Security & CI/CD Complete (current) |
| v0.9.7 | Jan 31, 2026 | SQL Injection Fixes & Validation |
| v0.9.6 | Jan 30, 2026 | Command Consolidation |
| v0.9.5 | Jan 30, 2026 | Feature Parity & Security |
| v0.9.0 | Jan 30, 2026 | Multi-Tenant Platform |
| v0.4.8 | Jan 24, 2026 | Plugin System & Registry |
| v0.4.7 | Jan 23, 2026 | Infrastructure Everywhere |
| v0.4.6 | Jan 22, 2026 | Scaling & Performance |
| v0.4.5 | Jan 21, 2026 | Provider Support |
| v0.4.4 | Jan 20, 2026 | Database Tools |
nself has been thoroughly audited for security vulnerabilities. The codebase is safe for production use.
| Category | Status |
|---|---|
| Hardcoded Credentials | ✅ PASS |
| API Keys & Tokens | ✅ PASS |
| Command Injection | ✅ PASS |
| SQL Injection | ✅ PASS |
| Docker Security | ✅ PASS |
| Git History | ✅ PASS |
We welcome contributions! Whether it's bug reports, feature requests, documentation improvements, or code contributions.
- Contributing Guide - How to contribute
- Development Setup - Dev environment
- Cross-Platform Compatibility - Bash 3.2+ requirements
- CLI Output Library - Output formatting standards
- GitHub: github.com/nself-org/cli
- Issues: Report bugs
- Discussions: Ask questions
- Plugin Registry: plugins.nself.org
- Commands: Top-level command index
- Roadmap: Future plans
- Changelog: Release changes
- License: Project license terms
- Root Policy: Root structure rules
ɳSelf CLI v1.0.9. MIT licensed. Docs CC BY 4.0.
GitHub · Issues · Discussions · nself.org · docs.nself.org
Getting Started
Commands
- Commands, Overview
- Lifecycle: cmd-init · cmd-build · cmd-start · cmd-stop · cmd-restart · cmd-dev
- Monitoring: cmd-status · cmd-logs · cmd-health · cmd-urls · cmd-doctor · cmd-monitor · cmd-alerts · cmd-sentry · cmd-watchdog · cmd-dogfood
- Data: cmd-db · cmd-backup · cmd-dr · cmd-queue · cmd-webhooks
- Config: cmd-config · cmd-service · cmd-env · cmd-promote
- Networking: cmd-ssl · cmd-trust · cmd-dns-setup
- Security: cmd-security · cmd-secrets · cmd-waf
- Tenancy: cmd-tenant · cmd-billing
- Plugins: cmd-plugin · cmd-license
- AI: cmd-ai · cmd-claw · cmd-model
- Templates: cmd-template
- Utilities: cmd-exec · cmd-clean · cmd-reset · cmd-update · cmd-upgrade · cmd-version · cmd-admin · cmd-migrate · cmd-migrate-firebase · cmd-migrate-supabase · cmd-completion
Features
- Features, Overview
- Feature-Auth
- Feature-Storage
- Feature-Search
- Feature-Functions
- Feature-Email
- Feature-Monitoring
- Feature-Plugins
- Feature-ɳClaw, AI Assistant
- Feature-ɳChat, Messaging
- Feature-ɳTV, Media Player
- Feature-ɳFamily, Family Social
- Feature-ɳCloud, Managed Hosting
- Feature-Memory-Rooms, Knowledge Organization
- Feature-Agent-Dashboard, Agent Metrics
- Feature-Image-Generation, AI Image Generation
Configuration
- Configuration, Overview
- Config-Env-Vars
- Config-Postgres
- Config-Hasura
- Config-Auth
- Config-Nginx
- Config-Optional-Services
- Config-Custom-Services
- Config-System
Plugins (87 + 10 monitoring)
Free (25)
- plugin-backup
- plugin-content-acquisition
- plugin-content-progress
- plugin-cron
- plugin-donorbox
- plugin-feature-flags
- plugin-github
- plugin-github-runner
- plugin-invitations
- plugin-jobs
- plugin-link-preview
- plugin-mdns
- plugin-mlflow
- plugin-monitoring
- plugin-notifications
- plugin-notify
- plugin-paypal
- plugin-search
- plugin-shopify
- plugin-stripe
- plugin-subtitle-manager
- plugin-tokens
- plugin-torrent-manager
- plugin-vpn
- plugin-webhooks
Pro (62)
- plugin-access-controls
- plugin-activity-feed
- plugin-admin-api
- nself-ai-gateway
- nself-ai-cc
- nself-ai-mcp
- plugin-analytics
- plugin-auth
- plugin-backup-pro
- plugin-bots
- plugin-browser
- plugin-calendar
- plugin-cdn
- plugin-chat
- plugin-claw
- plugin-claw-budget
- plugin-claw-news
- plugin-claw-web
- plugin-cloudflare
- plugin-cms
- plugin-compliance
- plugin-cron-pro
- plugin-ddns
- plugin-devices
- plugin-documents
- plugin-donorbox-pro
- plugin-entitlements
- plugin-epg
- plugin-file-processing
- plugin-game-metadata
- plugin-geocoding
- plugin-geolocation
- plugin-google
- plugin-home
- plugin-idme
- plugin-knowledge-base
- plugin-linkedin
- plugin-livekit
- plugin-media-processing
- plugin-meetings
- plugin-moderation
- plugin-mux
- plugin-notify-pro
- plugin-object-storage
- plugin-observability
- plugin-paypal-pro
- plugin-photos
- plugin-podcast
- plugin-post
- plugin-realtime
- plugin-recording
- plugin-retro-gaming
- plugin-rom-discovery
- plugin-shopify-pro
- plugin-social
- plugin-sports
- plugin-stream-gateway
- plugin-streaming
- plugin-stripe-pro
- plugin-support
- plugin-tmdb
- plugin-voice
- plugin-web3
- plugin-workflows
Planned (26)
plugin-auditplugin-blogplugin-checkoutplugin-commerceplugin-drmplugin-exportplugin-flowplugin-importplugin-ldapplugin-mailgunplugin-mediaplugin-oauth-providersplugin-pagesplugin-postmarkplugin-rate-limitplugin-reportsplugin-samlplugin-schedulerplugin-sendgridplugin-ssoplugin-subscriptionplugin-thumbplugin-transcoderplugin-twilioplugin-wafplugin-watermark
Guides
- Guide-Production-Deployment
- Guide-SSL-Setup
- Guide-Multi-Tenancy
- Guide-Security-Hardening
- Guide-Monitoring-Setup
- Guide-Backup-Restore
- Guide-Custom-Services
- Guide-Migration-from-v1
Architecture
Reference
- API-Reference
- reference-error-codes, Error Codes
Licensing
Security
Brand
Operations
- operations/release-cascade, Release Cascade
- operations/self-healing, Self-Healing Schema
- operations/redis-tuning, Redis Pool Tuning
- operations/meilisearch-warmup, MeiliSearch Warm-Up
- operations/jwt-rotation, JWT Key Rotation
- operations/windows-wsl2-setup, Windows / WSL2 Setup
- operations/gemini-oauth-reauth, Gemini OAuth Reauth
Contributing
Admin
- USER-ACTION-QUEUE, Pending Admin Actions