Show HN: Mystral Native – Run JavaScript games natively with WebGPU (no browser)

https://news.ycombinator.com/rss Hits: 7
Summary

Mystral Native.js Run JavaScript/TypeScript games natively with WebGPU. Mystral Native.js is a lightweight runtime that lets you write games using familiar Web APIs (WebGPU, Canvas, Audio, fetch) and run them as native desktop applications on macOS, Windows, and Linux. Think of it as "Electron for games" but without Chromium — just your game code, a JS engine, and native WebGPU rendering. Note Mystral Native.js is in early alpha. The core features work — execute JS against WebGPU, Canvas 2D, Web Audio, and fetch — with runtimes available for macOS, Windows, and Linux. Embedding is available for iOS and Android, with a future goal of console support. To see a production build, check out the Sponza demo on itch.io. Quick Start Option 1: Install via CLI (Recommended) macOS / Linux: curl -fsSL https://mystralengine.github.io/mystralnative/install.sh | bash Windows (PowerShell): irm https: // mystralengine.github.io / mystralnative / install.ps1 | iex This detects your platform, downloads the latest release, installs to ~/.mystral/ (or $HOME\.mystral\ on Windows), and adds mystral to your PATH. Then run the examples: # macOS / Linux cd ~ /.mystral mystral run examples/triangle.js mystral run examples/mystral-helmet.js # GLTF loading demo # Windows (PowerShell) cd $HOME \.mystral mystral run examples\triangle.js mystral run examples\mystral - helmet.js # GLTF loading demo Option 2: Download Prebuilt Binary Download the latest release for your platform from the releases page: Platform Download macOS (Apple Silicon) mystral-macOS-arm64-v8-dawn.zip macOS (Intel) mystral-macOS-x64-v8-dawn.zip Windows mystral-windows-x64-v8-dawn.zip Linux mystral-linux-x64-v8-dawn.zip unzip mystral-macOS-arm64-v8-dawn.zip cd mystral-macOS-arm64-v8-dawn ./mystral run examples/triangle.js Option 3: Build from Source git clone https://github.com/mystralengine/mystralnative.git cd mystralnative # Install bun if you don't have it curl -fsSL https://bun.sh/install | bash # Download dependencies bun ...

First seen: 2026-01-30 05:36

Last seen: 2026-01-30 11:37