You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An open-source, production-grade Full-Stack OpenSaaS Monorepo combining a Go Workspace Modular Monolith Backend Core with a Next.js 16+ TypeScript Frontend (apps/web). The system delivers sub-millisecond policy-cached API responses, strict workspace-as-tenant isolation, type-safe OpenAPI TypeScript SDK generation, dual RBAC/PBAC access control, mandatory feature flagging, and formal API Version Management (/v1, /v2).
Modular Monolith with Go Workspaces: Bounded contexts are separated into independent Go modules (auth, workspace, platform, common). Compiler-enforced boundaries (internal/ packages) prevent unapproved cross-module coupling.
Workspace-as-Tenant Multi-Tenancy: Workspace is the fundamental tenant isolation unit. Every API request context and SQL query MUST filter by workspace_id.
Hexagonal Architecture (Ports & Adapters): Domain logic remains pure, zero-dependency Go code isolated from HTTP, SQL, or external drivers.
API Version Management (/v1, /v2): Strict URL versioning paired with RFC 8594 Sunset/Deprecation headers and OpenAPI 3.0 spec synchronization.
Autonomous Agentic Integration: Built-in rules and custom skills (.agents/skills/) enabling autonomous AI pair programming.
🚀 Quick Start
Prerequisites
Go: 1.26+
Docker & Docker Compose: For PostgreSQL 16, Redis 7, and local development infrastructure.
golang-migrate: For database schema migrations.
Local Development Setup
# 1. Clone repository & configure environment
git clone git@github.com:open-saas/platform.git
cd platform
cp .env.example .env
# 2. Synchronize Go Workspace modules
go work sync
# 3. Spin up local infrastructure (PostgreSQL, Redis, MailHog)
docker-compose up -d
# 4. Run database migrations
migrate -path docs/database/migrations -database "postgres://platform:platform_dev@localhost:5432/platform?sslmode=disable" up
# 5. Run test suite across all workspace modules
go test -v ./...
api-versioning-openapi: API Version Management (/v1, /v2), OpenAPI spec synchronization, deprecation headers (Sunset), and backward compatibility.
feature-flag-management: Mandatory feature flag wrapping, key naming standards (<module>:<subsystem>:<feature_name>), and fallback rules for all new features.