Documentation Index
Fetch the complete documentation index at: https://docs.chromaflow.ai/llms.txt
Use this file to discover all available pages before exploring further.
Real-Time Enterprise Deployment Playbook
Deploy ChromaFlow like a precision launch: edge-optimized, scalable, and resilient. This guide covers local-to-global workflows, real-time configurations, and enterprise scaling patterns for zero-downtime operations on Cloudflare.Global Instant Deploys
<12ms cold starts with Vite + Cloudflare Pages; real-time state migration via Durable Objects.
Multi-Tenant Config
Wrangler bindings for isolated namespaces; Auth0/Stripe secrets per environment.
Streaming Observability
WebSocket health checks, webhook alerts, and edge metrics for proactive ops.
Mission Prerequisites
- Runtime: Node.js ≥18.18, pnpm ≥9.4.0 (
package.json). - Cloudflare: Account with Pages, Workers, Durable Objects enabled; Wrangler CLI (
wrangler login). - Enterprise Services: Active Auth0 tenant, Supabase project, Stripe account, Perplexity API key.
- Real-Time Tools: GitHub for CI/CD; monitoring stack (Datadog/Sentry optional).
Local Real-Time Development Loop
Stream dev changes instantly:- Boots Remix/Vite on port 5173 with Cloudflare dev proxy (
vite.config.ts). - Secrets via
.envorenv/.development; emulate Durable Objects locally. - WebSocket workbench for live testing; stream logs to console.
pnpm dev -- --open for browser auto-launch; monitor real-time metrics in terminal.Build & Real-Time Preview
Validate production streams:pnpm build: Runsnpx remix vite:build; generatesbuild/client(assets) andworker.js(Functions).pnpm preview: Emulates Cloudflare with bindings; test SSE/WebSockets at scale.- Output: Edge-optimized bundles; real-time compatibility verified.
Edge Deployment to Cloudflare Pages
Global rollout with zero downtime:- Builds, then
wrangler pages deploy ./build/client --project-name=chromaflow --branch=main. - Auto-binds Durable Objects; streams deployment progress via CLI.
- Verify: <1min to live; global anycast routing.
Real-Time Environment Variables
| Variable | Description | Real-Time Role | Example |
|---|---|---|---|
AUTH0_DOMAIN etc. | Auth0 config | Session streaming | dev-123.us.auth0.com |
SESSION_SECRET | Remix encryption | Secure SSE | 64-char key |
SUPABASE_URL/KEY | DB connection | Realtime subscriptions | https://proj.supabase.co |
STRIPE_* | Billing keys | Webhook verification | sk_live_... |
PERPLEXITY_API_KEY | Search | Edge augmentation | pplx-... |
INTERCOM_APP_ID | Support | Live Messenger | abc123 |
DURABLE_OBJECT_NAMESPACE | State binding | WebSocket persistence | AGENT_STATE |
wrangler secret put SESSION_SECRET.
Durable Objects & Real-Time Bindings
Configure stateful real-time:functions/_worker.jsexportsAgentStateManager.- In
wrangler.toml: - Reference in Remix:
context.cloudflare.env.AGENT_STATE.get(id)for streams. - Scale: Partition by tenant ID; auto-migrate on deploys.
compatibility_flags = ["nodejs_compat"]; deploy to secondary regions for <50ms global.Post-Launch Real-Time Checklist
Stream Verification
Stream Verification
Integration Smoke
Integration Smoke
Performance Audit
Performance Audit
Security Scan
Security Scan
Observability Hook
Observability Hook
Real-Time Rollbacks & Recovery
Instant Rollback
Instant Rollback
wrangler pages publish --tag=prev for <1s revert.State Recovery
State Recovery
scripts/restore-all.sh for configs/UI.Live Drills
Live Drills
Backup Streams
Backup Streams
Enterprise CI/CD & Automation
Stream deployments end-to-end:Pipeline Setup
Pipeline Setup
pnpm lint/test/build/deploy on push.Real-Time Gates
Real-Time Gates
Scaling Automation
Scaling Automation
scripts/scale-enterprise.sh adjusts bindings/quota based on load.Monitoring Integration
Monitoring Integration
| Stage | Real-Time Check | Tool | Fail-Safe |
|---|---|---|---|
| Build | Bundle Validation | Vite | Cache Purge |
| Test | Streaming E2E | WebContainer | Auto-Retry |
| Deploy | Edge Rollout | Wrangler | Canary Release |
| Monitor | Live Metrics | Cloudflare | Alert Streams |
