cloudflare / cloudflare/partykit

PartyKit Durable Objects with Cloudflare Free Plan

Open
#295 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.3k
Forks
79
PR merge metrics
No merged PRs in 30d

Description

Can't use PartyKit with durable object on free plan, tried it on personal project & `todo-sync` fixture

Here's the partykit.json I created (only difference from the repo)
```
{
"name": "blah-wss-worker",
"main": "src/server/index.ts",
"compatibilityDate": "2025-11-18"
}
```

```
isaacyeang@Isaacs-MacBook-Pro todo-sync % CLOUDFLARE_ACCOUNT_ID=ABC CLOUDFLARE_API_TOKEN=XYZ npx partykit deploy --domain partykit.mydomain.com 2>&1
🎈 PartyKit v0.0.115
---------------------
Deploying...
file:///Users/isaacyeang/.npm/_npx/52b6cbf32f24ff5f/node_modules/partykit/dist/bin.mjs:96301
throw err;
^

Error: In order to use Durable Objects with a free plan, you must create a namespace using a `new_sqlite_classes` migration.
at fetchResult (file:///Users/isaacyeang/.npm/_npx/52b6cbf32f24ff5f/node_modules/partykit/dist/bin.mjs:84998:11)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async deploy (file:///Users/isaacyeang/.npm/_npx/52b6cbf32f24ff5f/node_modules/partykit/dist/bin.mjs:95750:21)
at async _Command. (file:///Users/isaacyeang/.npm/_npx/52b6cbf32f24ff5f/node_modules/partykit/dist/bin.mjs:96391:3)

Node.js v23.6.1
Error: In order to use Durable Objects with a free plan, you must create a namespace using a `new_sqlite_classes` migration
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.