PGB Hub
The programmable cloud for AI-native applications.
Unify managed PostgreSQL databases, serverless compute, microVM container workloads, realtime pub/sub channels, built-in auth, object storage, transactional mail, and Agent-Native MCP in one resilient platform.
Programmable Building Blocks for Modern Apps
Every backend primitive you need; compute, microVMs, databases, realtime channels, auth, storage, mail, and AI agents, accessible over one sovereign endpoint.
Serverless Compute
Deploy Python & Node.js functions with pre-warmed runtimes, automatic HTTP routing, cron triggers, and CDC listeners.
pgb deploy function --runtime=node20MicroVM Containers
Run full Docker OCI workloads with hardware cgroups v2 isolation and CRIU memory snapshots that scale to 0 RAM when idle.
pgb deploy service --image=ghcr.io/app:v1PostgreSQL Core
Document JSONB collections with auto GIN path indexing, PostGIS spatial calculations, pgvector embeddings, and TLS-encrypted connections.
SELECT ST_DWithin(geom, ST_MakePoint(-122.4, 37.7), 2500)PGB Realtime Channels
Low-latency pub/sub channels with Server-Sent Events streaming, presence tracking, and a broadcast API for live client synchronization.
pgb.realtime.channel('orders').subscribe(onUpdate)Built-In Auth as a Service
Passwordless 6-digit OTP, magic links, OAuth, JWT session verification, and automatic PostgreSQL Row-Level Security scoping.
await pgb.auth.verifyOtp({ email, token })Object Storage & CDN
Isolated per-project bucket storage on S3-compatible object storage, 15-minute presigned upload URLs, and global edge distribution.
await pgb.storage.upload(path, fileData)Transactional Mail Engine
Authenticated sending (SPF, DKIM, DMARC) with automated bounce and complaint webhooks and domain reputation tracking.
await pgb.mail.send({ to, subject, html })Agent MCP & AI Tooling
Expose live schemas, transactional actions, and backend APIs directly to Cursor IDE, Claude Desktop, and autonomous AI agents.
npx -y @pgb/mcpThe Full Backend Stack in One Unified Platform
Stop stitching together ten different vendors. PGB Hub combines databases, serverless compute, containers, realtime channels, auth, storage, and AI agents into a single sovereign control plane.
Serverless Compute & Feature Modules
Deploy instantly scalable Python and Node.js logic with pre-warmed runtimes. Trigger executions via standard HTTP REST, HMAC-signed webhooks, database CDC streams, or cron schedules.
export async function handle(event, { db, auth }) {
return db.orders.create({ user: auth.user.id, amount: 4500 });
}MicroVM Container Workloads
Run full Docker OCI workloads with hardware cgroups v2 isolation and memory-snapshot technology that automatically scales to zero RAM when idle.
services:
api:
image: ghcr.io/app/express:v2
port: 8080
tier: microManaged PostgreSQL & JSONB Engine
Store dynamic JSON collections with automatic GIN path indexing, perform PostGIS geospatial queries, and run pgvector semantic search with ACID reliability.
SELECT * FROM venues WHERE ST_DWithin(geom, ST_MakePoint(-122.4, 37.7), 2500);PGB Realtime Channels
Low-latency pub/sub channels with Server-Sent Events streaming, presence tracking, disconnect-recovery buffers, and a broadcast API for live client sync.
pgb.realtime.channel('orders').subscribe((event) => render(event));Built-In Auth as a Service
Complete authentication engine supporting email/password, 6-digit passwordless OTP, magic links, JWT session verification, and automatic PostgreSQL Row-Level Security scoping.
const { session, user } = await pgb.auth.verifyOtp({ email, token: '849201' });Partitioned Object Storage & CDN
Isolated per-project bucket storage on S3-compatible object storage, 15-minute presigned upload URLs, media streaming, and global CDN caching.
const { url } = await pgb.storage.upload('images/hero.png', fileData);Transactional Mail Engine
Authenticated sending (SPF, DKIM, DMARC) for transactional email, with automated bounce and complaint webhooks, template rendering, and domain reputation scoring.
await pgb.mail.send({ to: '[email protected]', subject: 'Verify Account', html: '...' });Agent-Native MCP & LLM Tooling
Connect AI coding agents, Cursor IDE, Claude Desktop, and LangChain models directly to your live database schemas and backend APIs using Model Context Protocol.
mcpServers: { pgb: { command: 'npx', args: ['-y', '@pgb/mcp'] } }One Client SDK.
Your Entire Cloud Architecture.
Forget managing 8 distinct SDKs, API tokens, IAM policies, and billing dashboards. PGB Hub provides a unified, type-safe client that connects your frontend, mobile apps, and AI agents directly to all cloud subsystems.
https://<project>.pgbhub.appimport { createClient } from "@pgb/sdk";
// Initialize one unified client for all cloud services
const pgb = createClient({
endpoint: "https://<project-id>.pgbhub.app",
apiKey: process.env.PGB_API_KEY
});
// 1. Auth: Passwordless login with automatic session & RLS
const { session } = await pgb.auth.verifyOtp({ email, token: "849201" });
// 2. Database: Query JSONB collections or relational PostgreSQL
const orders = await pgb.table("orders").find({ status: "PENDING" });
// 3. Storage: Upload a file (presigned R2 upload handled for you)
const { url } = await pgb.storage.upload("receipts/inv_984.pdf", fileData);
// 4. Mail: Dispatch transactional emails with deliverability tracking
await pgb.mail.send({ to: email, subject: "Order Dispatched", html: "<p>On its way!</p>" });
// 5. Realtime: Subscribe to live updates over a pub/sub channel
pgb.realtime.channel("orders").subscribe((event) => console.log(event));Replace Fragmented Cloud Stacks with 1 Sovereign Platform
Stop stitching together complex cloud configurations and juggling unpredictable monthly API bills across multiple vendors.
| Cloud Capability | Fragmented Cloud Stack | PGB Hub Sovereign Cloud |
|---|---|---|
| Serverless & Compute | External Serverless Providers ($$$) | Built-in Functions & MicroVMs |
| Database & Vectors | Fragmented DB & Vector SaaS | PostgreSQL + JSONB + pgvector Core |
| Realtime & Pub/Sub | Separate WebSocket/Realtime SaaS ($$$ per connection) | Built-in SSE Channels, Presence & Broadcast |
| Authentication | Third-Party Identity SaaS ($$$ per MAU) | Built-in OTP, Magic Links, JWT & RLS |
| Object Storage | Separate Object Storage & CDN | Partitioned Buckets & Presigned URLs |
| Transactional Mail | Separate Email Dispatch SaaS | Native Deliverability Engine & Webhooks |
| AI Agent Integration | Custom MCP bridges & wrappers | Native Model Context Protocol (MCP) Server |
Document Database Agility.
PostgreSQL Reliability.
Develop with schema-free JSON document collections. Scale with native PostgreSQL reliability, strict ACID transactions, GIN path indexing, PostGIS spatial queries, and automated daily snapshots stored offsite.
Build Faster with TypeScript, Python, Go, Rust & AI Agents
Explore comprehensive documentation, REST APIs, client libraries, and live examples for every cloud subsystem.
Ready to build on a truly programmable cloud?
Provision databases, serverless compute, microVM containers, realtime channels, auth, storage, and agent MCP tooling under one unified sovereign endpoint.