@homeapis/cfworkers-sdk
v1.2.7
Published
Our internal SDK for Cloudflare Workers.
Downloads
26
Readme
SDK for Cloudflare Workers
This beta package (unstable) includes a few tools we've found useful while developing on the Cloudflare Developer platform.
It includes code to reduce time to ship for the following edge computing services:
- A link shortening tool
- URL-based Image storage with Cloudflare R2
- Marketing tools like email collection with D1 (please, review applicable laws in your jurisdiction before storing personal user data)
It requires (for complete feature set only, lightweight mode coming in next months):
- The itty-router package
- a Cloudflare Account
- Cloudflare Workers enabled on your account
- a Cloudflare D1 database on your account
- a Cloudflare R2 storage bucket on your account
Installation
- NPM Registry:
# install from the NPM registry
npm i @homeapis/cfworkers-sdk
- Github Releases:
# install from the NPM registry
npm i @homeapis/cfworkers-sdk
Documentation
We provide experimental documentation for the project on homeapis.github.io/cfworkers-sdk.
Roadmap
We plan on supporting more Workers features in the coming months.
Credits
This repository is based on the incredible:
- itty-router project from @kwhitley
- @tsndr/cloudflare-workers-jwt
Legal Notice
We provide this package under the terms of the MIT license, allowing you to contribute, distribute, copy, remix and re-use this project as freely as need be.
We are not affiliated to, or endorsed by Cloudflare, nor the Cloudflare Workers® family of products in any manner.