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
Requestand return aResponse - 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.devConcepts
| Concept | Description |
|---|---|
| Function | A JS/TS module exporting a handler(request: Request): Response |
| Deployment | A versioned snapshot of your function code. Can be preview or production |
| Organization | A group that owns functions. You select one when deploying |
| Preview URL | Every deployment gets https://{deployment-id}.clusterbase.dev |
| Production URL | The 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