Awesome Open Source
Awesome Open Source

cfworker

A collection of packages optimized for Cloudflare Workers and service workers.

@cfworker/base64url

base64 URL encoding for Cloudflare Workers and service workers

readme | npm

@cfworker/cosmos

Azure Cosmos DB client for Cloudflare Workers and service workers

readme | npm

@cfworker/csv

Streaming CSV encoding for Cloudflare Workers and service workers

readme | npm

@cfworker/dev

Run, test and deploy Cloudflare workers

readme | npm

@cfworker/json-schema

A JSON schema validator that will run on Cloudflare workers. Supports drafts 4, 7, and 2019-09.

readme | npm

@cfworker/jwt

Tiny lib for decoding JWTs and verifying signatures, using native crypto APIs

readme | npm

@cfworker/sentry

Minimalist Sentry client for Cloudflare workers and service workers

readme | npm

@cfworker/uuid

Fast UUID generator with no dependencies. Generate V4 compliant UUIDs using crypto.getRandomValues

readme | npm

@cfworker/web

Web framework for Cloudflare Workers and service workers, inspired by Koa and fastify

readme | npm

contributing

Install dependencies using yarn. Yarn will ensure cfworker packages that depend on other cfworker packages are linked properly.

yarn install

Run all tests

yarn test

Run a specific package's tests

yarn workspace @cfworker/base64url test

Watch files for changes and re-run tests

yarn workspace @cfworker/base64url test --watch

Use chrome devtools to debug tests

yarn workspace @cfworker/base64url test --watch --inspect

Refer to each package's README for more specific instructions and examples. Some packages require a .env file (gitignored) containing cloudflare or cosmos db keys for integration testing.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
typescript (11,646
jwt (407
azure (377
json-schema (145
cloudflare (113
sentry (65
auth0 (52
workers (51
cloudflare-workers (31
cosmosdb (25