storage-manager/workers
Ravi Khadiwala 1face7cb8c
Some checks failed
CI / build (push) Has been cancelled
Update version to 0.4.8
2026-04-20 12:10:39 -05:00
..
src Update to vitest 4 2026-04-20 11:18:28 -05:00
.editorconfig Squashed history 2024-01-05 16:19:44 -06:00
.gitignore Squashed history 2024-01-05 16:19:44 -06:00
.nvmrc Update dependencies 2026-01-16 11:11:49 -08:00
.prettierrc Squashed history 2024-01-05 16:19:44 -06:00
eslint.config.mjs Update dependencies 2025-04-03 13:17:15 -05:00
package-lock.json Update version to 0.4.8 2026-04-20 12:10:39 -05:00
package.json Update version to 0.4.8 2026-04-20 12:10:39 -05:00
README.md Allow copy requests with a GCS based source 2024-05-02 17:42:36 -05:00
tsconfig.json Switch from deprecated moduleResolution: node to Bundler 2026-04-20 11:56:55 -05:00
vitest.config.ts Update to vitest 4 2026-04-20 11:18:28 -05:00
worker-configuration.d.ts Use generated wrangler types 2026-04-20 11:18:28 -05:00
wrangler.toml Squashed history 2024-01-05 16:19:44 -06:00

Overview

This directory provides a storage-manager built on Cloudflare workers that manages objects stored on Cloudflare R2

Building

You'll need Node.js. If you use nvm run

nvm use

To install dependencies,

npm install

In order to deploy to Cloudflare or use non-local development mode, use the wrangler utility. Follow those instructions to authenticate with your Cloudflare account.

Testing

To run a development server you can interact with over localhost:

npx wrangler dev

To run unit tests,

npm test

Deploying

One time setup

Create R2 buckets and update the bindings in wrangler.toml.

Set the GCS bucket to use, either by setting a variable in wrangler.toml

[vars]
GCS_BUCKET = <your GCS bucket>

or using a wrangler secret

wrangler secret put GCS_BUCKET [-e <staging | production>]

then:

wrangler deploy -e <staging|production>