Full-stackSep 2025
GenEngine
Type a game, watch it get written into a live editor, and play it in the same breath.
- HackRice 15 โ Best AI Application Built with Cloudflare

Gemini writes JavaScript into a Monaco editor while a sandboxed Canvas runtime executes it live beside the code. The hard part was the sandbox: AI-generated code fails in creative ways, and an infinite loop in the generated game must not take the whole application with it.
Deployed entirely on Cloudflare's edge, with Workers running Hono for the backend and Pages plus R2 for hosting and assets.
What it does
- Built a prompt-to-playable game environment where Gemini 2.5 Flash generates JavaScript into a Monaco editor while a sandboxed Canvas runtime executes it live.
- Architected the sandboxed execution environment so AI-generated code could run and re-render in real time without freezing the application.
- Deployed a serverless backend on Cloudflare Workers with Hono, using Pages and R2 for hosting and asset storage.
- Added iterative refinement, an Ask AI code-explanation feature, and one-click revert acting as lightweight version control.
Built with
- React
- TypeScript
- Vite
- Monaco
- Cloudflare Workers
- Hono
- Gemini