Hacker News new | ask | show | jobs
by egorferber 8 days ago
cool idea of a self-hostable alternative ot CF workers without much overhead, compiling it down to a binary makes local testing way easier.
2 comments

Thx! I thought about adding a context to the fetch handler, could be handy for local testing. Likewise, local commands (e.g. dev or watch mode) are not yet there. Those would be next on the line if the CLI starts getting used by others than me.
*Update:* I've got a draft PR for `kyu dev` with live reload.
*Update*: Done. `kyu dev` is implemented and released :)
I thought CF workers could be self-hosted? I haven't tried that system but saw Kenton Varda tweeting about running them locally for development.
Yes, the Cloudflare Workers Runtime is open source: https://github.com/cloudflare/workerd

You can definitely run workerd in production on your own machines and some people do.

The biggest catch is that workerd's implementation of Durable Objects currently doesn't work across multiple machines, but I'm working on fixing that: https://github.com/cloudflare/workerd/pull/6780