A simple tool to convert Alchemy projects to use Pocket JS.
First, go to the project root.
Then, run the following command:
npx pocketizer
Copy .env.vars.example to .env.vars and fill in the values.
cp .dev.vars.example .dev.vars
npm install
The API key for Claude is hidden behind a Cloudflare worker. To deploy the worker, run npx wrangler deploy
. You will then need to set the environment variable for CLOUDFLARE_WORKER_URL to your new worker URL.