Vercia Platform Core

A developer framework for building any kind of application — SaaS, CRMs, marketplaces, portals. Ships the 60–80% infrastructure so you focus on your domain logic.


What's included

Multi-tenancy
Row-Level Security via PostgreSQL SET LOCAL. Every table isolated by tenant automatically.
Identity & Auth
Local provider: scrypt passwords, TOTP, API keys, sessions, team roles, invitations.
RBAC Authorization
Deny-by-default PolicyService. Permission keys, role registry, contextual policies.
Billing
State machine (trialing → active → past_due → canceled). Stripe adapter or fake for dev.
Transactional outbox
Events written in same DB transaction as mutations. Worker relays via SMTP, etc.
Module system
Composable modules: content, media, messaging, meetings, forms, features, integrations, commerce.
Object storage
S3/MinIO adapter. Quarantine-scan-release upload flow with ClamAV hook.
Observability
Structured logging, OpenTelemetry tracing (OTLP), OTEL collector in docker-compose.
Realtime
SSE for messaging. LiveKit adapter for video meetings.
B2B SaaS recipe
9 pre-wired modules, 3 plans, navigation, email templates — ready to brand and ship.

Quick start

git clone https://github.com/your-org/vercia-platform-core
cd vercia-platform-core
cp .env.example .env
docker compose up -d
pnpm install
pnpm dev

Then visit http://localhost:3000 (web), http://localhost:3001/docs (Swagger API), http://localhost:3002 (Admin panel), http://localhost:3003 (Operator control).