1.0.0 • Published 2 months ago

selflare v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Selflare

Compile Cloudflare Workers to Cap'n Proto and deliver them as minimalist Docker images.

Features

  • Cloudflare Worker
  • Cloudflare KV
  • Cloudflare D1
  • Cloudflare R2
  • Cloudflare DO
  • Cache API
  • Cloudflare Vectorize

Usage

Install the CLI with npm i -g selflare and run the following commands in the directory of your worker:

selflare compile   # Compile the worker to Cap'n Proto
selflare docker    # Generate Dockerfile and docker-compose.yml
docker compose up  # Run the worker

The image is based on jacoblincool/workerd which has a size of 35MB (compressed) and supports both amd64 and arm64 architectures.