tech / cloudflare

CLOUDFLARE PLATFORM

The full 2nth.ai edge compute stack. Every service in the Workers Paid plan documented with production patterns, gotchas, and direct skill links.

16 services documented Workers Paid plan v1.0.0
Tiers: Freeincluded on free plan PaidWorkers Paid ($5/mo) required Betaopen beta, API may change
COMPUTE 2 services
workers
Free Paid

V8 isolate runtime at the edge. The foundation every other Cloudflare service is built on. 100k req/day free; unlimited on Paid.

Use for: API handlers, AI inference proxies, auth middleware, request routing.
pages
Free

Static site hosting with global CDN and automatic Git deploys. Unlimited sites, 500 builds/month free. Full-stack via Pages Functions.

Use for: skills.2nth.ai catalog, client portals, demo sites, marketing pages.
STORAGE 3 services
d1
Free Paid

Serverless SQLite at the edge. Native Workers binding, migrations, batch operations, and JSON columns. The default database for 2nth.

Use for: user records, skill metadata, client configs, session state, orders. Prefer over Hyperdrive when possible.
kv
Free Paid

Eventually-consistent global key-value store. Read-optimised for low-latency global reads. Not suitable for rate limiting or counters.

Use for: session tokens, feature flags, config, skill resolution cache. Never for counters — use Analytics Engine.
r2
Free Paid

S3-compatible object storage with zero egress fees. Presigned URLs, multipart upload, public buckets. Never pay bandwidth costs for blobs.

Use for: AI-generated documents, exported reports, uploaded files, model artifacts. Never store blobs in D1.
AI 3 services
workers-ai
Free Paid

Serverless inference on 50+ models including Llama, Mistral, Whisper, and embedding models. JSON schema enforcement for structured output.

Use for: intent classification, embedding generation, local inference (data sovereignty), skill-level routing.
ai-gateway
Free Paid

Observability and control plane for all AI calls — Claude, OpenAI, Workers AI. Token metering, request logging, semantic caching, rate limiting, fallback routing.

Use for: token economy metering, cost attribution per client/skill, fallback routing, caching identical prompts.
vectorize
Paid

Vector database native to Workers. Store embeddings, query by ANN similarity, filter by metadata. Powers the RAG pipeline for skill retrieval.

Use for: skill semantic search, client knowledge base RAG, document similarity, semantic de-duplication.
STATEFUL 3 services
durable-objects
Paid

Globally unique stateful compute. Each DO instance has private storage and a single-threaded execution model. The primitive for WebSockets and real-time coordination.

Use for: live collaboration sessions, WebSocket hubs, per-entity locks, agent execution state.
queues
Paid

Reliable message queues with automatic retry and dead-letter queue. Decouple AI inference from request handlers to avoid timeout errors.

Use for: async AI inference, webhook ingestion, batch processing, email dispatch, event fan-out.
workflows
Paid Beta

Durable multi-step execution with per-step retry, persistent state, and sleep. Orchestrate long-running AI pipelines that survive Worker restarts.

Use for: classify → retrieve → generate → store pipelines, saga patterns, scheduled follow-ups with step.sleep().
ADVANCED 2 services
hyperdrive
Paid

Connection pooler between Workers and external Postgres/MySQL databases. Eliminates per-request connection overhead for client SOR integrations.

Use for: existing client databases on Supabase, Neon, RDS, or PlanetScale that can't be migrated to D1.
analytics-engine
Included

Columnar time-series store built into Workers. 10M data points free/month. The token economy metering layer — cheaper and more appropriate than KV counters.

Use for: token usage per client/skill/model, request counts, latency histograms, billing reports via SQL.
INFRASTRUCTURE 2 services
email-routing
Free

Route inbound email to Workers for processing. Send outbound via MailChannels. Parse MIME, extract attachments, trigger AI workflows from email.

Use for: Penny's email briefings, client intake via email, AI-powered email triage, notification dispatch.
tunnel
Free

Expose local or on-premise services through Cloudflare's network without opening firewall ports. Secure outbound-only connector for client SOR access.

Use for: secure access to client on-premise ERP/CRM, dev environment previews, private service mesh.

EXPLORE THE FULL TREE

Every skill links to a SKILL.md with production-ready patterns, wrangler.toml config, gotchas, and cross-references.