Introduction
DownDraft Engine is an AI-driven app engine built on a native runtime — winit + wgpu, hosted by Bun, Node, or Deno (TypeScript-first, Rust native modules for platform and audio). Apps run as a single process driving a real OS window and the GPU directly — a native app, not a page in an embedded browser. It includes a built-in MCP server that enables AI agents to design, build, debug, and manage app assets via natural language prompts.
What can it do?
Section titled “What can it do?”- Render — Deferred WebGPU pipeline with G-Buffer, shadow maps, post-processing, and a Bevy-style render graph with automatic resource aliasing.
- Simulate — Archetype-based ECS with change detection, hierarchy, and double-buffered events running in an isolated worker thread.
- Physics — Pluggable physics abstraction with Rapier3D backend, multi-realm support, and character controllers.
- Audio — Spatial audio with Kira backend via Rust FFI, mixer, effects, and listener tracking.
- Animate — Skeletal animation, GLTF skinning, GPU compute skinning, Mixamo retargeting, and blend trees (1D/2D).
- Network — WebSocket transport, state replication, and RPCs via the networking library.
- AI Integration — MCP server (in-process, JSON-RPC) for AI agents to create scenes, spawn entities, manage assets, and debug.
- DevTools — Docked Blitz UI (toggled with F12): scene tree, entity/component inspector, console, GPU stats, perf metrics + recorder, input, materials, assets, render graph, workers, and the
downdraft doctormodule-graph panel.
Platform Support
Section titled “Platform Support”DownDraft runs on Linux, macOS, and Windows via the native runtime (winit for windowing, wgpu translating WebGPU to Vulkan, Metal, or D3D12). A compatible GPU is required; SwiftShader is available for headless testing. Android is supported as a genuinely native port — the same winit+wgpu stack plus an embedded libnode, packaged to an APK via draft release --target=android (minSdk 30, no WebView/Capacitor).
Technologies
Section titled “Technologies”| Layer | Technology |
|---|---|
| Runtime | Bun (default) / Node+tsx / Deno + winit (native windowing) |
| Rendering | WebGPU / wgpu |
| Language | TypeScript (engine), Rust (platform + native modules) |
| Physics | Rapier3D (Rust FFI) |
| Audio | Kira (Rust FFI) |
| Persistence | Worker-backed binary save store (libraries/persistence) |
| UI | html-ui (Blitz HTML/CSS, worker-rasterized) |
| AI | MCP (JSON-RPC) |
License
Section titled “License”MIT