moasq/production-saas-starter: Production-ready B2B SaaS Starter Kit (Go + Next.js). Modular Monolith. Hexagonal Arch.

🚀 Check out this trending post from Hacker News 📖

📂 Category:

💡 Here’s what you’ll learn:

The Enterprise-Grade SaaS boilerplate for serious founders. Built with Next.js 16 and Go 1.25.

Go Report Card
License: MIT

Dashboard Preview

  • Next.js 16 (v16.0.10)
    Modern React framework with App Router and API routes.
  • React 19 (v19.2.3)
    Latest React with improved performance and concurrent features.
  • TypeScript (v5.7.3)
    Type-safe JavaScript for enhanced developer experience.
  • Tailwind CSS (v3.4.17)
    Utility-first CSS framework for rapid UI development.
  • shadcn/ui + Radix UI
    Accessible component library with 29+ pre-built components.
  • TanStack Query (v5.90.5)
    Powerful data fetching and state management.
  • Zustand (v5.0.8)
    Lightweight state management for UI state.
  • react-hook-form + Zod
    Type-safe forms with schema validation.
  • Stytch
    Enterprise authentication with magic links, OAuth, and SSO.
  • Polar.sh
    Billing integration and subscription management.
  • Recharts
    Composable charting library for data visualization.
  • Go 1.25
    High-performance, concurrent backend with excellent tooling.
  • Gin
    Fast HTTP web framework with middleware support.
  • PostgreSQL with pgvector
    Reliable relational database with vector similarity search.
  • SQLC
    Type-safe SQL compiler for Go (no ORM).
  • Stytch B2B
    Enterprise authentication, SSO, and RBAC.
  • Polar.sh
    Merchant of Record for subscriptions, invoicing, and global tax compliance.
  • OpenAI API
    LLM integration with RAG pipeline and vector embeddings.
  • Mistral AI
    OCR service for document data extraction.
  • Cloudflare R2
    Object storage for file management.
  • Docker + Docker Compose
    Containerization for consistent environments.
  • Authentication: Sign in with Magic Link, Google OAuth, and Enterprise SSO.
  • Multi-Tenancy: Built-in Organization support with strict data isolation.
  • Roles & Permissions: Granular RBAC system with 3 roles (Member, Manager, Admin) and 7 permission types.
  • Billing & Subscriptions: Complete integration with Polar.sh for SaaS pricing models.
  • AI & RAG: Ready-to-use vector embeddings pipeline for AI features.
  • OCR Service: Extract structured data from valid documents instantly.
  • Team Management: Invite members, manage roles, and update settings.
  • Responsive Design: Mobile-first UI built with Tailwind CSS and shadcn/ui.
  • Type Safety: End-to-end type safety from database (SQLC) to frontend (TypeScript).
  • Audit Logs: Complete audit logging system for tracking user activities.
  • Webhooks UI: Customer-facing webhook configuration.
  • Advanced Analytics: Built-in charts and usage tracking.

Please follow these simple steps to get a local copy up and running.

  • Docker & Docker Compose
  • Go 1.25+
  • Node.js 20+ & pnpm

Run this command to configure your keys and start the infrastructure:

chmod +x setup.sh && ./setup.sh

Manual Start:

  1. Backend: cd go-b2b-starter && make dev
  2. Frontend: cd next_b2b_starter && pnpm dev
  3. Visit: http://localhost:3000

MIT License

👯 Consulting & Services

Although this kit is self-service, I help ambitious founders move faster.

I can help you with:

  1. Managed Config: I sets up your AWS/GCP production environment so you never touch DevOps.
  2. Custom Features: Need SAML SSO or complex RAG flows? I’ll build them directly into your repo.
  3. Code Audits: Migrating from Node/Python? I’ll review your architecture for scale.

m.salim@apflowhq.com@foundmod

🔥 Tell us your thoughts in comments!

#️⃣ #moasqproductionsaasstarter #Productionready #B2B #SaaS #Starter #Kit #Next.js #Modular #Monolith #Hexagonal #Arch

🕒 Posted on 1766147128

By

Leave a Reply

Your email address will not be published. Required fields are marked *