giuseppelt / self-workerd

Self-host your own FaaS with workerd, the Cloudflare javascript runtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

self-workerd

This is a proof-of-concept on how you can build and self-host a complete FaaS architecture.

This project is based on workerd, the V8-based JavaScript runtime that powers Cloudflare Workers.

And, for a real scenario, it uses Fly as cloud provider, where the FaaS is hosted. It relies on container-based deployment.

Step by step Tutorial

A complete guide can be found on https://www.breakp.dev/blog/build-your-own-faas

It includes everything - from setup, to test and deploy.

Local run

This is a pnpm managed repository. So, it all starts with

pnpm install

Then you can start the publisher

cd publisher
pnpm dev

and the worker

cd worker
pnpm build
pnpm start:worker

Follow updates

About

Self-host your own FaaS with workerd, the Cloudflare javascript runtime


Languages

Language:TypeScript 70.9%Language:Dockerfile 18.6%Language:Cap'n Proto 4.6%Language:JavaScript 3.6%Language:Shell 2.3%