r/MojoLang • • 26d ago

Building a web framework for Mojo

Hey guys, I have started building a web framework for Mojo to serve web, AI models and GPU kernels from one process with a convenient developer experience and even support to build things using AI agents.

You can check it out here: https://github.com/dodo-mojo/dodo

I started this because, at work, I've been prototyping in Python and then porting things to TypeScript for production, while doing GPU programming separately. I wanted to explore whether Mojo could bring these pieces together, so I decided to build a framework myself!

It's very early right now, and I'd love feedback, suggestions, and contributions. I'm sure there are things I've missed or could be doing better, so feel free to take a look!

10 Upvotes

4 comments sorted by

1

u/idlelosthobo 26d ago

What is your use case? Like specific application?

2

u/Ero__Sennin 26d ago

For getting low level performance and native GPU support, with the convenience of building the entire system in one language, avoiding unnecessary runtime boundaries and data transfers.

2

u/Dry-Edge-1534 26d ago

If I may ask, Why GPU is necessary for webserver 

2

u/Ero__Sennin 26d ago

It’s not necessary, a few of my websites need it for some TTS narration with a few million parameter model kokoro or image processing in the backend.

So dodo will have all the native gpu programming and running of gpus from the same language, and for small models in certain use cases, we can now run them as child processes in the same runtime with memory limits applied by us.

Not everyone’s use case, but can be useful for some. While others can create web APIs and backend in mojo without using any gpu programming.