PGB Hub · Unified Programmable Cloud

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.

$psql postgresql://app:token@db.pgbhub.app:5433/db?sslmode=require
Loading 3D Cloud Mesh...
8 Sovereign Cloud Subsystems

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.

Explore All 8 Services
Sub-10ms Compute

Serverless Compute

Deploy Python & Node.js functions with sub-10ms cold starts, automatic HTTP routing, cron triggers, and CDC listeners.

pgb deploy function --runtime=node20
CRIU Snapshotting

MicroVM 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:v1
ACID + JSONB + Vector

PostgreSQL 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)
Zero Mapbox Bill

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/maps
Instant Identity

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 })
S3 Compatible

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 })
Deliverability Engine

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 })
Model Context Protocol

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-server
Complete Programmable Cloud

The 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.

Compute & Execution

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 });
}
Full Container Runtime

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: micro
Document & Relational Core

Dedicated 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);
Self-Hosted Geospatial

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}@2x
Identity & Security

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' });
Asset Distribution

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' });
Communications

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: '...' });
AI Integration

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'] } }
Unified Developer Experience

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.

Single endpoint: https://<project>.pgbhub.app
Automatic JWT session injection & Row-Level Security (RLS)
Native Model Context Protocol (MCP) server for Cursor & Claude
app-cloud-service.ts
TypeScript SDK
import { 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>" });
Vendor Consolidation

Replace 8 Fragmented Vendors with 1 Sovereign Cloud

Stop stitching together complex cloud configurations and juggling unpredictable monthly API bills across multiple vendors.

Cloud CapabilityFragmented Cloud StackPGB Hub Sovereign Cloud
Serverless & ComputeAWS Lambda + API Gateway ($$$)Built-in Sub-10ms Functions & MicroVMs
Database & VectorsSupabase or Neon + PineconePostgreSQL 17 + JSONB + pgvector Core
Maps & GeolocationMapbox ($$$ per 10k loads)Self-Hosted PGB Maps Gateway ($0 API fees)
AuthenticationAuth0 / Clerk ($$$ per MAU)Built-in OTP, Magic Links, JWT & RLS
Object StorageAWS S3 + Cloudflare CDNPartitioned S3 Buckets & Presigned URLs
Transactional MailResend / Postmark / SendGridNative SES Deliverability Engine & Webhooks
AI Agent IntegrationCustom MCP bridges & wrappersNative Model Context Protocol (MCP) Server
The Core Data Engine

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.

PostgreSQL 17JSONB CollectionsPostGIS 3.4pgvectorPort 5433 TLS
Database Architecture At A Glance
PGB Hub DatabaseJSONB + SQL + PostGIS + 0-Ops Backups
Traditional NoSQLJSON only · High RAM · No SQL JOINs
Vanilla PostgreSQLManual TLS, Backups, Proxies & Crons
Developer Guides & Multi-Language SDKs

Build Faster with TypeScript, Python, Dart/Flutter & AI Agents

Explore comprehensive documentation, REST APIs, client libraries, and live examples for every cloud subsystem.

Build AI-Native Applications Today

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.

No Credit Card Required
8 Sovereign Cloud Services
Sub-10ms Global Edge Ingress