Overview

CCP is the CLI for deploying JavaScript and TypeScript functions to Cluster's V8 isolate runtime at the edge.

CCP CLI

CCP (Cluster Compute Platform) is the command-line tool for deploying JavaScript and TypeScript functions to Cluster. Your code runs in V8 isolates — the same engine that powers Chrome — with sub-millisecond cold starts and automatic TLS.

What You Can Do

  • Deploy functions — Ship JS/TS handlers that receive a Request and return a Response
  • Serve static sites — Deploy SPAs and static sites with a public/ directory
  • Custom domains — Add your own domain with automatic Let's Encrypt TLS
  • Local development — Run a local V8 isolate with hot reload via ccp dev
  • Manage storage — Upload and serve static files via the edge CDN

Quick Example

# Create a new project
ccp init my-app

# Start local dev server
cd my-app && ccp dev

# Deploy to production
ccp deploy --prod
# → https://my-app.clusterbase.dev

Concepts

ConceptDescription
FunctionA JS/TS module exporting a handler(request: Request): Response
DeploymentA versioned snapshot of your function code. Can be preview or production
OrganizationA group that owns functions. You select one when deploying
Preview URLEvery deployment gets https://{deployment-id}.clusterbase.dev
Production URLThe active deployment serves https://{function-name}.clusterbase.dev

Project Structure

After running ccp init, your project looks like:

my-app/
  index.ts              # Your handler
  package.json          # Scripts: dev, deploy
  tsconfig.json         # TypeScript config
  .cluster/config.json  # Links to your remote function
  CLUSTER.md            # Quick reference
  .gitignore

On this page