SaaSKit - Backend Only .NET
A focused backend boilerplate for teams who want the SaaS core without the frontend layer.
This version keeps the same strong backbone around multi-tenancy, white-labeling, advanced Stripe flows, and RBAC, making it a strong fit for API-first products, custom frontend teams, and integration-heavy SaaS builds.
Description
Product Description
Welcome to SaaSKit Backend - The Production-Ready .NET Clean Architecture API Infrastructure
Bring your own frontend (React, Next.js, Vue, Flutter, or React Native) and plug it directly into a rock-solid, production-ready backend core. SaaSKit Backend is an enterprise-grade REST API boilerplate engineered entirely with .NET Clean Architecture. Built to eliminate 200+ hours of complex backend infrastructure design, it provides advanced multi-tenancy, flawless billing, and highly secure access layers out of the box.
🏗️ Advanced Multi-Tenancy & EF Core Query Filters
Subdomain Parsing API: Advanced tenant discovery routing mapped via clean endpoint abstractions.
Bulletproof Data Isolation: Enforces strict tenant database boundaries utilizing Entity Framework Core Global Query Filters, ensuring 100% data leak prevention across workspaces.
🔌 White-Labeling & Integration Endpoints
Dynamic Identity APIs: Complete backend infrastructure panels allowing tenants to independently store and update logos, dashboard themes, asset networks, and SMTP configurations.
Custom Branded Email Engine: Dynamically injects tenant-specific styles, colors, and logos during email template rendering sequences.
💳 Flawless Stripe Billing Lifecycle & Background Processing
Subscription State Machine: API-driven engine handling Upgrades, Downgrades, Pauses, Resumes, and Cancellations with automated balance refund safeguards.
Asynchronous Webhook Queue: Raw webhook payloads are instantly dumped into a persistent queuing table and processed via an asynchronous background worker every 5 seconds to ensure zero-refresh local DB synchronization.
Self-Healing Financial Layer: A dedicated Stripe Billing Reconciliation Engine worker sweeps the database logs every 2 minutes to backfill dropped invoice configurations or missing webhook delivery states.
🛂 Highly Granular Dynamic RBAC Engine
Action-Based Access Control: Evaluates dynamic authorization parameters over changing tenant boundaries instead of relying on rigid, static roles.
Machine-Safe Key Normalization Pipeline: Automatically converts layout-created parameters into normalized system keys (e.g. transforms "Email Settings Read" to email_settings_read).
Immutability Guard: Protects structural core roles (super_admin, admin) and system-level permission scopes from runtime deletion or modifications.
⚡ Aspect-Oriented Infrastructure via ASP.NET Core Action Filters
[AuditLog] & [ActivityLog] Interceptors: Captures unalterable data mutations and extracts client browser/IP fingerprints safely before committing transactions on successful 2xx status codes.
[Notification] Pipeline Interceptor: Generates automated tenant broadcasts or user-specific private alerts instantly without polluting core business services.
System Guard Filters: Sensitive controller pipelines are natively guarded by [BillingEnabled], [StripeEnabled], and [StorageSettingsRequirement] attributes to gracefully block invalid requests before framework crash dumps occur.
🕒 Automated Maintenance Workers
Fully automated IHostedService background tasks tracking token events, invitation link expirations, and multi-tenant log retention cleanup routines on strict recurring timer loops.
Stop reinventing core architecture. Own the absolute ultimate backend foundation for your next SaaS.
Complete Documentation: https://codevestllc.mintlify.app/introduction