Stream: ideas

Topic: Writing a web framework in Roc for Roc


view this post on Zulip Kirill (Jul 18 2026 at 13:25):

Hey guys, I wanted to let you know that I'm writing a web framework called "Wisp" on Roc. It's not even at version 0.1 yet (still in development, I don't even have a GitHub repo up just yet but I'm close to the first 0.1 release). My goal is to build a pure-Roc framework, and I'm targeting the alpha4-rolling release as the base. I'm hoping for your support down the road, and I'd really appreciate your help finding bugs when it's out (there are definitely going to be some xd). Would you be interested in this?

view this post on Zulip Niclas Ahden (Jul 18 2026 at 13:41):

Hey Kirill! It's great to see more work in this area! I encourage you to base it on the new compiler rather than alpha-4. I'm running alpha-4 in production with https://github.com/niclas-ahden/joy, and it works, but if I could I would love to already be on the new compiler myself :)

Luke wrote https://github.com/lukewilliamboswell/roc-signals for the new compiler and I'm almost done porting Joy and the accompanying packages (joy-html, joy-carousel, roc-url, roc-playwright etc.) over as well.

Zulip is a great place to get help or discuss ideas for your framework too! Welcome to Roc, I hope you'll have a blast :)

view this post on Zulip Eric Rogstad (Jul 18 2026 at 17:10):

I'm writing a web framework called "Wisp" on Roc.

@Kirill is there meant to be a relationship with the Wisp framework for Gleam?

view this post on Zulip Kirill (Jul 18 2026 at 17:19):

No, just a coincidence

view this post on Zulip TeaDrinkingProgrammer (Jul 18 2026 at 17:20):

Sounds cool! What do you mean by pure Roc? Do you mean minimal use of platforms or simply that you can everything in Roc?

view this post on Zulip Kirill (Jul 18 2026 at 17:29):

@TeaDrinkingProgrammer By “pure-Roc,” I meant minimal use of the platform (I chose Zig as the host, btw). So, yeah, you're right:

mean minimal use of platforms

view this post on Zulip TeaDrinkingProgrammer (Jul 18 2026 at 17:51):

Why not use the platform to your advantage if I may ask? Using another language to power the busywork of your application/framework is one of the great advantages of Roc (see basic-webserver for example, which uses Rusts Hyper and Tokio). Do you have some use-cases in mind (of which "I just want to give it a try" is always perfectly valid of course :smile:)

view this post on Zulip Karl (Jul 18 2026 at 18:32):

IMO the main push for keeping things in Roc would be if you want to be able to migrate platforms.

I'm particularly interested in wasm as a platform and I've been hanging out in the Zulip for years at this point in large part because I think Roc's platform focused design is uniquely well suited to targeting wasm so if there's good support for producing/consuming modules I think it'd be particularly well suited to gluing things together.

So it'd be nice to have it running on a platform locally for development and then toss it over into wasm for edge computing or in a function that only wakes up upon request or whatever.

That said I also have a web platform and mine is really heavy on platform integration because it's an area of system design I haven't really explored. The routing and middleware execution is done host side in Tower, for example. I've continued working on it but I have vibecoded patches on the compiler and wanted to get the bugs reported this weekend instead of pushing something that only compiles on my machine.

view this post on Zulip blu (Jul 18 2026 at 18:38):

Hey @Kirill nice! If you do end up going with the new compiler I made a roc-overlay Nix flake which should make it easy for you to stay up to date with the latest version of the compiler as it progresses.


Last updated: Jul 23 2026 at 13:15 UTC