Skip to content

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.

  • 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 doctor module-graph panel.

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).

LayerTechnology
RuntimeBun (default) / Node+tsx / Deno + winit (native windowing)
RenderingWebGPU / wgpu
LanguageTypeScript (engine), Rust (platform + native modules)
PhysicsRapier3D (Rust FFI)
AudioKira (Rust FFI)
PersistenceWorker-backed binary save store (libraries/persistence)
UIhtml-ui (Blitz HTML/CSS, worker-rasterized)
AIMCP (JSON-RPC)

MIT