Skip to content

HyCore/self-workerd

 
 

Repository files navigation

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.

--- This project will be used for my offline cloud server.

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

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