The Full-Stack BaaS Architecture
Every component in Saavan Cloud is built on battle-tested open technologies. Zero synthetic mocks, zero black-box magic.
Engineered for Modern Full-Stack Teams
Every capability you need to build scalable, secure web and mobile applications without stitching together disparate cloud services.
PostgreSQL 18 Database
Managed relational database engine with Row-Level Security (RLS), high-throughput connection pooling via pgx, and ACID transactional guarantees.
Argon2id Authentication
Cryptographically hardened auth with RFC 9106 memory-safe parameters, rotating refresh tokens, JWT access claims, and multi-tenant RBAC.
S3 Object Storage
High-performance object storage with bucket-level policies, multipart resumable uploads, and instant public/private access controls.
Real-time CDC & WebSockets
PostgreSQL Change Data Capture (CDC) streaming into NATS JetStream, broadcasting schema changes, presence, and chat via WebSockets.
Serverless Functions
Node.js 22 execution isolates with Git-style versioning, atomic deployments, rollback support, and encrypted environment secrets.
Quotas & GST Billing
Real-time sliding window usage metering, automated quota protection, and Razorpay integration with optional Indian GST tax invoices (SAC 998315).
The Full Power of PostgreSQL 18
Never compromise on data integrity. Saavan Cloud provides real PostgreSQL with Row-Level Security, JSONB queries, connection pooling, and ACID guarantees.
- ✓Native PostgreSQL Row-Level Security (RLS) ensures bulletproof tenant isolation.
- ✓High-performance connection pooling handles thousands of concurrent client queries.
- ✓Direct SQL query execution with transaction rollback protection.
- ✓Automated migration runner executes ordered DDL safely without manual schema drift.
-- Enforce multi-tenant Row Level Security
ALTER TABLE tenant_documents ENABLE ROW LEVEL SECURITY;
CREATE POLICY tenant_isolation_policy ON tenant_documents
FOR ALL
USING (project_id = current_setting('saavan.project_id')::uuid);
-- Query with tenant session claims
SELECT id, name, created_at
FROM tenant_documents
WHERE status = 'published'
ORDER BY created_at DESC;Store and Serve Any Asset
Store user uploads, documents, and media with native S3 compatibility. Saavan Cloud integrates SeaweedFS for blazing-fast local development and S3 for scalable production deployments.
- ✓Instant public CDN or authenticated pre-signed URL downloads.
- ✓Enforce allowed MIME types and per-bucket file size ceilings.
- ✓Automatic SHA-256 integrity checksum verification on every upload.
PostgreSQL Change Data Capture to WebSockets
Keep millions of connected clients in sync. When database rows change, PostgreSQL CDC triggers notify the NATS JetStream message bus, instantly fanning out updates over secure WebSockets.
- ✓Database change feeds: Listen to INSERT, UPDATE, and DELETE events in real-time.
- ✓Presence tracking: Track online status, user typing, and active cursors.
- ✓Channel broadcast: Low-latency pub/sub messaging without polling.
// Subscribe to live database changes
const channel = saavan
.channel("public:tenant_documents")
.on("postgres_changes", { event: "INSERT" }, (payload) => {
console.log("New document created:", payload.new);
})
.subscribe();
// Track user presence
channel.track({ user: "Ananya", status: "online" });