Sign up at app.vaultbrix.com using email/password, Magic Link, or GitHub OAuth.
Click "New Project" and select your region. Currently available:
From your project dashboard, copy your connection details:
# Project URL
https://YOUR_PROJECT_REF.vaultbrix.com
# API Keys (Settings > API)
ANON_KEY=<jwt-placeholder>
SERVICE_ROLE_KEY=<jwt-placeholder>
# Database Connection
postgresql://tenant_<slug>:YOUR_PASSWORD@db.vaultbrix.com:5433/postgres?sslmode=require&schema=tenant_<slug>Vaultbrix is Supabase-compatible. Use the official client libraries:
npm install @supabase/supabase-js
// Initialize client
import { createClient } from '@supabase/supabase-js'
const supabase = createClient(
'https://YOUR_PROJECT_REF.vaultbrix.com',
'YOUR_ANON_KEY'
)
// Query your database
const { data, error } = await supabase
.from('users')
.select('*')Auto-generated RESTful API from your PostgreSQL schema:
# Base URL
https://YOUR_PROJECT_REF.vaultbrix.com/rest/v1
# Examples
GET /rest/v1/users # List all users
GET /rest/v1/users?id=eq.1 # Get user by ID
POST /rest/v1/users # Create user
PATCH /rest/v1/users?id=eq.1 # Update user
DELETE /rest/v1/users?id=eq.1 # Delete user
# Headers required
apikey: <anon-key>
Authorization: Bearer YOUR_JWT_TOKENFull GraphQL endpoint powered by pg_graphql:
# Endpoint
POST https://YOUR_PROJECT_REF.vaultbrix.com/graphql/v1
# Example query
query {
usersCollection {
edges {
node {
id
email
created_at
}
}
}
}WebSocket subscriptions for live data:
// Subscribe to changes
const channel = supabase
.channel('db-changes')
.on(
'postgres_changes',
{ event: '*', schema: 'public', table: 'messages' },
(payload) => console.log('Change:', payload)
)
.subscribe()
// Presence (who's online)
const presenceChannel = supabase.channel('room-1')
presenceChannel.on('presence', { event: 'sync' }, () => {
console.log('Online:', presenceChannel.presenceState())
})GoTrue-based authentication endpoints:
# Base URL
https://YOUR_PROJECT_REF.vaultbrix.com/auth/v1
# Endpoints
POST /signup # Register new user
POST /token # Sign in (returns JWT)
POST /logout # Sign out
POST /recover # Password recovery
POST /magiclink # Magic link login
GET /user # Get current user
PUT /user # Update userEvery Vaultbrix tenant exposes a context endpoint that lets AI tools inspect schema, query data, and persist conventions without manually stitching prompts together.
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"vaultbrix": {
"transport": "http",
"url": "https://api.vaultbrix.com/mcp/YOUR_TENANT_SLUG",
"headers": {
"X-API-Key": "YOUR_VAULTBRIX_API_KEY"
}
}
}
}Add to .cursor/mcp.json:
{
"mcpServers": {
"vaultbrix": {
"transport": "http",
"url": "https://api.vaultbrix.com/mcp/YOUR_TENANT_SLUG",
"headers": {
"X-API-Key": "YOUR_VAULTBRIX_API_KEY"
}
}
}
}get_schema_contextCompressed schema context for the tenant
query_tableRead rows with safe filters
add_memoryStore conventions, decisions, and facts
run_sqlTenant-scoped SELECT and DML with DDL approval
The full tenant MCP inventory also includes storage, backup, and migration tools. See the MCP docs for the management surface.
PostgreSQL 17 with enterprise extensions, hosted in Switzerland.
-- Enable pgvector
CREATE EXTENSION IF NOT EXISTS vector;
-- Create table with embeddings
CREATE TABLE documents (
id SERIAL PRIMARY KEY,
content TEXT,
embedding vector(1536)
);Database Access Guide GoTrue-based auth with multiple providers and enterprise SSO.
// Sign up
const { data, error } = await supabase.auth.signUp({
email: 'user@example.com',
password: 'secure-password'
})
// Sign in with OAuth
await supabase.auth.signInWithOAuth({
provider: 'github'
})S3-compatible object storage with access policies.
// Upload file
const { data, error } = await supabase.storage
.from('avatars')
.upload('user-123.png', file)
// Get public URL
const { data: { publicUrl } } = supabase.storage
.from('avatars')
.getPublicUrl('user-123.png')Serverless TypeScript/Deno functions running in Switzerland.
// functions/hello/index.ts
import "jsr:@supabase/functions-js/edge-runtime.d.ts"
Deno.serve(async (req) => {
const { name } = await req.json()
return new Response(
JSON.stringify({ message: `Hello ${name}!` }),
{ headers: { 'Content-Type': 'application/json' } }
)
})WebSocket-based real-time subscriptions and presence.
// Subscribe to new messages
supabase
.channel('messages')
.on('postgres_changes', {
event: 'INSERT',
schema: 'public',
table: 'messages'
}, (payload) => {
console.log('New message:', payload.new)
})
.subscribe()Git-like branching for your database schema and data.
# Create a branch
vaultbrix branch create feature-auth
# Make changes to your branch
# ... run migrations, test data
# View diff
vaultbrix branch diff feature-auth
# Merge to production
vaultbrix branch merge feature-auth