frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

https://github.com/mystralengine/mystralnative
19•Flux159•2d ago
Hi HN, I've been building Mystral Native — a lightweight native runtime that lets you write games in JavaScript/TypeScript using standard Web APIs (WebGPU, Canvas 2D, Web Audio, fetch) and run them as standalone desktop apps. Think "Electron for games" but without Chromium. Or a JS runtime like Node, Deno, or Bun but optimized for WebGPU (and bundling a window / event system using SDL3).

Why: I originally started by starting a new game engine in WebGPU, and I loved the iteration loop of writing Typescript & instantly seeing the changes in the browser with hot reloading. After getting something working and shipping a demo, I realized that shipping a whole browser doesn't really work if I also want the same codebase to work on mobile. Sure, I could use a webview, but that's not always a good or consistent experience for users - there are nuances with Safari on iOS supporting WebGPU, but not the same features that Chrome does on desktop. What I really wanted was a WebGPU runtime that is consistent & works on any platform. I was inspired by deno's --unsafe-webgpu flag, but I realized that deno probably wouldn't be a good fit long term because it doesn't support iOS or Android & doesn't bundle a window / event system (they have "bring your own window", but that means writing a lot of custom code for events, dealing with windowing, not to mention more specific things like implementing a WebAudio shim, etc.). So that got me down the path of building a native runtime specifically for games & that's Mystral Native.

So now with Mystral Native, I can have the same developer experience (write JS, use shaders in WGSL, call requestAnimationFrame) but get a real native binary I can ship to players on any platform without requiring a webview or a browser. No 200MB Chromium runtime, no CEF overhead, just the game code and a ~25MB runtime.

What it does: - Full WebGPU via Dawn (Chrome's implementation) or wgpu-native (Rust) - Native window & events via SDL3 - Canvas 2D support (Skia), Web Audio (SDL3), fetch (file/http/https) - V8 for JS (same engine as Chrome/Node), also supports QuickJS and JSC - ES modules, TypeScript via SWC - Compile to single binary (think "pkg"): `mystral compile game.js --include assets -o my-game` - macOS .app bundles with code signing, Linux/Windows standalone executables - Embedding API for iOS and Android (JSC/QuickJS + wgpu-native)

It's early alpha — the core rendering path works well & I've tested on Mac, Linux (Ubuntu 24.04), and Windows 11, and some custom builds for iOS & Android to validate that they can work, but there's plenty to improve. Would love to get some feedback and see where it can go!

MIT licensed.

Repo: https://github.com/mystralengine/mystralnative

Docs: https://mystralengine.github.io/mystralnative/

Comments

iddan•2h ago
Cool project and very clear explanation for the motivation kudos!
auyez•2h ago
Great project! I also had similar thoughts when I saw ability to make WebGPU calls in deno. I wonder how performant could games get on this runtime

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

https://github.com/mystralengine/mystralnative
19•Flux159•2d ago•2 comments

Show HN: Ourguide – OS wide task guidance system that shows you where to click

https://ourguide.ai
46•eshaangulati•3d ago•22 comments

Show HN: The Freak Circus Game Online – Yandere Horror Visual Novel

https://the-freakcircus.com/
2•tomstig•1h ago•0 comments

Show HN: I'm building an AI-proof writing tool. How would you defeat it?

https://auth-auth.vercel.app/
16•callmeed•1d ago•27 comments

Show HN: ShapedQL – A SQL engine for multi-stage ranking and RAG

https://playground.shaped.ai
74•tullie•2d ago•21 comments

Show HN: ÆTHRA – Writing Music as Code

2•CzaxTanmay•3h ago•0 comments

Show HN: Kolibri, a DIY music club in Sweden

https://kolibrinkpg.com/
38•EastLondonCoder•15h ago•13 comments

Show HN: Autonomous recovery for distributed training jobs

https://docs.tensorpool.dev/features/agent
8•tsvoboda•15h ago•3 comments

Show HN: Transcribee: YouTube transcriber that builds a knowledge base

https://github.com/itsfabioroma/transcribee
16•ofabioroma•13h ago•2 comments

Show HN: I built VanCamera: FOSS, secure, zero-config Android webcam for Windows

https://github.com/danielbolivar/vancamera
12•danielb74•3h ago•1 comments

Show HN: A website that summarises all adopted texts of EU parliament

https://euforya.eu
2•krzysiek•6h ago•0 comments

Show HN: VCluster Free – Free K8s Multi-Tenancy with Virtual Clusters

https://www.vcluster.com/blog/launching-vcluster-free-get-enterprise-features-at-no-cost
15•gentele•13h ago•3 comments

Show HN: Play Zener Cards

https://zener.cards
5•nirvanist•7h ago•0 comments

Show HN: SHDL – A minimal hardware description language built from logic gates

https://github.com/rafa-rrayes/SHDL
43•rafa_rrayes•1d ago•21 comments

Show HN: The HN Arcade

https://andrewgy8.github.io/hnarcade/
344•yuppiepuppie•1d ago•113 comments

Show HN: A MitM proxy to see what your LLM tools are sending

https://github.com/jmuncor/sherlock
214•jmuncor•1d ago•118 comments

Show HN: Build Web Automations via Demonstration

https://www.notte.cc/launch-week-i/demonstrate-mode
31•ogandreakiro•2d ago•20 comments

Show HN: Shelvy Books

https://shelvybooks.com
46•tekkie00•1d ago•17 comments

Show HN: LemonSlice – Upgrade your voice agents to real-time video

126•lcolucci•2d ago•128 comments

Show HN: I built a small browser engine from scratch in C++

https://github.com/beginner-jhj/mini_browser
143•crediblejhj•1d ago•45 comments

Show HN: SimpleSVGs – Free Online SVG Optimizer Multiple SVG Files at Once

https://www.simplesvgs.online/
5•firtaet•13h ago•0 comments

Show HN: Pinecone Explorer – Desktop GUI for the Pinecone vector database

https://www.pinecone-explorer.com
21•arsentjev•2d ago•3 comments

Show HN: We review YC applications for free – with feedback from YC founders

https://www.ycroaster.com
3•gjarrosson•10h ago•2 comments

Show HN: An Open Source Alternative to Vercel/Render/Netlify

https://www.shorlabs.com/
21•thirdavenue•21h ago•4 comments

Show HN: One Human + One Agent = One Browser From Scratch in 20K LOC

https://emsh.cat/one-human-one-agent-one-browser/
314•embedding-shape•2d ago•149 comments

Show HN: Externalized Properties, a modern Java configuration library

https://github.com/joel-jeremy/externalized-properties
11•jeyjeyemem•3d ago•7 comments

Show HN: ARC-AGI-3 Toolkit

https://docs.arcprize.org
4•gkamradt•11h ago•1 comments

Show HN: We Built the 1. EU-Sovereignty Audit for Websites

https://lightwaves.io/en/eu-audit/
104•cmkr•2d ago•87 comments

Show HN: Cua-Bench – a benchmark for AI agents in GUI environments

https://github.com/trycua/cua
38•someguy101010•3d ago•8 comments

Show HN: Cursor for Userscripts

https://github.com/chebykinn/browser-code
55•mifydev•1d ago•15 comments