PGB Hub
The programmable cloud for AI-native applications.
Unify dedicated PostgreSQL 17 databases, serverless compute, microVM container workloads, self-hosted maps, 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, maps, auth, storage, mail, and AI agents—accessible over one sovereign endpoint.
Serverless Compute
Deploy Python & Node.js functions with sub-10ms cold starts, 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 17 Core
Document JSONB collections with auto GIN path indexing, PostGIS 3.4 spatial calculations, pgvector embeddings, and TLS 1.3.
SELECT ST_DWithin(geom, ST_MakePoint(-122.4, 37.7), 2500)PGB Maps Gateway
100% Mapbox-compatible self-hosted raster/vector tiles, Search Box autocomplete, geocoding, and turn-by-turn routing.
PGB_MAPS_URL=https://<project>.pgbhub.app/mapsBuilt-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 with S3 API compatibility, 15-minute presigned upload URLs, and global edge distribution.
await pgb.storage.getPresignedUploadUrl({ path })Transactional Mail Engine
High-deliverability email dispatch with automated AWS SES bounce/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 @pgbox/mcp-serverThe Full Backend Stack in One Unified Platform
Stop stitching together ten different vendors. PGB Hub combines databases, serverless compute, containers, maps, auth, storage, and AI agents into a single sovereign control plane.
Serverless Compute & Feature Modules
Deploy instantly scalable Python and Node.js logic with sub-10ms cold starts. 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 CRIU memory snapshots that automatically scale to zero RAM when idle.
services:
api:
image: ghcr.io/app/express:v2
port: 8080
tier: microDedicated PostgreSQL 17 & JSONB Engine
Store dynamic JSON collections with automatic GIN path indexing, perform PostGIS 3.4 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 Maps & Location Gateway
Drop-in Mapbox replacement with self-hosted raster/vector tiles, Search Box autocomplete, reverse geocoding, and live traffic turn-by-turn routing with 0% Mapbox dependency.
https://<project>.pgbhub.app/maps/styles/v1/mapbox/streets-v12/tiles/256/{z}/{x}/{y}@2xBuilt-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 with direct S3/R2 API compatibility, 15-minute presigned upload URLs, media streaming, and global CDN caching.
const { uploadUrl } = await pgb.storage.getPresignedUploadUrl({ path: 'images/hero.png' });Transactional Mail Engine
High-deliverability transactional email dispatch with automated AWS SES bounce and complaint webhooks, template rendering, and domain reputation scoring.
await pgb.mail.send({ to: 'user@domain.com', 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', '@pgbox/mcp-server'] } }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 "@pgbox/client";
// 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: Generate instant 15-minute presigned upload URLs
const { uploadUrl } = await pgb.storage.getPresignedUploadUrl({ path: "receipts/inv_984.pdf" });
// 4. Maps: Compute turn-by-turn routes with zero Mapbox bills
const route = await pgb.maps.getDirections({ origin: [-122.4, 37.7], destination: [-122.2, 37.8] });
// 5. Mail: Dispatch transactional emails with deliverability tracking
await pgb.mail.send({ to: email, subject: "Order Dispatched", html: "<p>On its way!</p>" });Replace 8 Fragmented Vendors with 1 Sovereign Cloud
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 | AWS Lambda + API Gateway ($$$) | Built-in Sub-10ms Functions & MicroVMs |
| Database & Vectors | Supabase or Neon + Pinecone | PostgreSQL 17 + JSONB + pgvector Core |
| Maps & Geolocation | Mapbox ($$$ per 10k loads) | Self-Hosted PGB Maps Gateway ($0 API fees) |
| Authentication | Auth0 / Clerk ($$$ per MAU) | Built-in OTP, Magic Links, JWT & RLS |
| Object Storage | AWS S3 + Cloudflare CDN | Partitioned S3 Buckets & Presigned URLs |
| Transactional Mail | Resend / Postmark / SendGrid | Native SES 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 17 reliability, strict ACID transactions, GIN path indexing, PostGIS spatial queries, and automated encrypted backup vaults.
Build Faster with TypeScript, Python, Dart/Flutter & 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, maps, auth, storage, and agent MCP tooling under one unified sovereign endpoint.