WebAssembly Demo

Deploy C++ applications as WebAssembly. Pure C++ code automatically compiled and deployed to the web with no manual WASM setup.
Overview
This ray tracing demo is written in standard C++ with SDL, with no WebAssembly configuration. Spawned’s AI system automatically:
- Detects the language and project type
- Applies the Emscripten toolchain and optimizations
- Generates the web wrapper and serves it live
The developer writes C++ — Spawned handles the rest.
Deployment with Specific Instructions
Detailed Deployment:
- Go to /new to create a new deployment
- Add Source: Click “Add Source” → “Repository” → Select
Ossian531/sphereLightfrom available repositories - Optional Settings: Add context “C++ file written with SDL. Deploy in WASM container and compile to WebAssembly.”
- Deploy: Click “Deploy” to compile and deploy your C++ ray tracer to the web
Minimal Deployment
Simple Deployment:
- Go to /new to create a new deployment
- Add Source: Click “Add Source” → “Repository” → Select
Ossian531/sphereLightfrom available repositories - Deploy: Click “Deploy” - Spawned automatically detects C++/SDL and applies WebAssembly compilation
Explore the Code
Join the Community
This kind of “desktop to web” transformation is just one example of what’s possible with Spawned’s AI deployment system. We’re constantly discovering new emergent capabilities as users experiment with different code types and deployment targets.
Found a similarly cool use case? Join our Discord and share what you’ve deployed! The community loves seeing creative applications of the platform.
Last updated on