frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: JavaScript web apps with WASM layout and GPU rendering in 280 KB

https://github.com/rkaehn/uniform
7•rkaehn•1d ago
Over the past year, I have been working to find a better way to write cross-platform apps.

The problems I am trying to solve:

- Native frameworks only work on a subset of platforms, so a different implementation of the UI needs to be written per target. - They are updated at the same pace as the platform itself, which forces the developer to split the user base to be able to use new features, or wait a long time for bugs to get fixed. - They also force developers to use specific high-level languages, so they are not a good fit for apps with high performance requirements, like creative apps or games. - Cross-platform frameworks that rely on bundling a browser engine solve the problem of code reuse, but they inherit the limitations of HTML/CSS. - Those that take control over layout and rendering are not efficient and lightweight enough to be used on the web, and require the use of compiled languages.

Ideally, we would be able to bundle the UI framework directly with the application. This would allow developers to use new features and fix issues in the UI framework immediately. It would also allow ideas for improvements to compete in a natural way, rather than being decided by a committee.

Uniform is my idea for how we can solve these problems. This is the structure:

- A layout and rendering engine written in C, compiled to WASM on the web and native code on all other platforms - A JavaScript API where each function call gets forwarded directly into the core, for best performance and efficiency - A native runtime (<2 MB) that makes it possible to run the same JavaScript code on macOS and iOS (more platforms to come). The runtime can also generate packaged apps to upload to app stores. The packaging steps are also described in JS.

Uniform supports very fast iteration cycles via hot-reload on all platforms. Even on iOS, the JS source code of an app can be changed while the app is running. Changes are visible on the next display refresh. No connection to a computer or the internet is required. Apps can be written from scratch on a phone, with native performance.

The readme in the linked repository includes many examples and a detailed explanation of the core ideas. It is handwritten without any use of AI.

And here is a live demo: https://raffk.com/hn-demo/

It should work in any browser that supports WebGPU. (To get 120 Hz support in Safari, the “Prefer Page Rendering Updates near 60fps” feature flag needs to be disabled.)

Comments

socalgal2•2m ago
The problem here is all the OS features are discarded. Can't insert password from password manager because to do so the page would need to access to passwords. Can't use the user dictionary because to do so would be a privacy issue. Doesn't support CJK and other languages that require an input method editor. etc....

It also means a platform's features are not duplicated so your app's behavior sticks out as having a different experience from everything else the user does making it frustrating.

That said, if you want see an app in WebGL/WASM where the browser is rendering everything there's https://earth.google.com as a high end example. It has most of the issues just mentioned as well as the fact that nothing is selectable by default. Want to copy a name so you can paste it into your search engine of choice. NO! Want to right click on a foreign name to find out how to pronounce it? NO! etc....

KetchUp – Open-source SketchUp alternative built with Rust and WebGPU

https://ketchup3d.github.io/app/
286•dcoulmbe•5h ago•82 comments

Unlocking any car from X brand in most of the world

https://shubs.io/unlocking-any-car-from-x-brand-in-most-of-the-world/
133•infosecau•3h ago•47 comments

RIP, Harvest

https://aphyr.com/posts/427-rip-harvest
56•zdw•1h ago•19 comments

Chimera Vocal Synth

https://chimera-vocal-synth.vercel.app/
134•nmstoker•5h ago•20 comments

Outlook.com Is Quietly Rejecting Email from Domains Without DMARC

https://mailroute.net/blog/outlook-rejecting-email-without-dmarc
289•xmddmx•8h ago•204 comments

Declarative Dragging

https://declarative-dragging.github.io/
407•smusamashah•4d ago•51 comments

Dux: Free, open-source Wayland desktop shell with file manager and theming

https://duxlabs.dev/
221•indigodaddy•8h ago•69 comments

Ask HN: What are you working on? (November 2026)

160•david927•6h ago•543 comments

Show HN: JavaScript web apps with WASM layout and GPU rendering in 280 KB

https://github.com/rkaehn/uniform
7•rkaehn•1d ago•1 comments

A Bit about Email

https://maurycyz.com/misc/email/
4•vinhnx•1h ago•1 comments

Herb Sutter: When a language's creator and its owners strongly disagree [pdf]

https://isocpp.org/files/papers/P4454R0.pdf
89•acossta•4h ago•70 comments

The Qlobe: Rotating Quine (2010)

http://mamememo.blogspot.com/2010/09/qlobe.html
4•niceguitars•38m ago•0 comments

Ask HN: How do you manage your AI agents' context across clients and projects?

13•Michel_Aventin•1d ago•14 comments

The Web Is More Than Enough, by Paul Ford

https://ftrain.com/aboard-the-web-is-more-than-enough
96•edward•8h ago•52 comments

Goldman Sachs is pulling Claude Code from its bankers and traders

https://www.thestateofai.com/news/goldman-sachs-claude-code-traders-bankers
657•TheWiggles•9h ago•378 comments

Taco: The Tensor Algebra Compiler

http://tensor-compiler.org/
12•measurablefunc•5d ago•0 comments

Llama-modchip: 284B DeepSeek on 64GB RAM, no GPU

https://github.com/synchopate/llama-modchip
386•joshcsimmons•17h ago•172 comments

Writing as a thinking tool

http://muratbuffalo.blogspot.com/2026/11/writing-as-thinking-tool.html
304•jruohonen•17h ago•83 comments

The History of Djgpp (1998)

https://www.delorie.com/djgpp/history.html
56•atan2•5d ago•19 comments

Air holes turn silicon wafers into flat UV focusing mirrors for compact optics

https://phys.org/news/2026-11-air-holes-silicon-wafers-flat.html
34•bookofjoe•1d ago•4 comments

Playing with the STM32MP2

https://serd.es/2026/11/08/playing-with-stm32mp2.html
45•dverlaeckt80•8h ago•30 comments

How I Fight AI Brain Fry

https://sergeykuhne.com/blog/fighting-ai-brain-fry
179•kyunez•8h ago•142 comments

Goodbye Claude, hello Pi

https://caleb.software/posts/claude-to-pi.html
713•karagenit•1d ago•443 comments

Show HN: Vegetable Gardening for Engineers

https://jrcpl.us/contrib/2020/gardening-for-engineers/
177•jrcplus•4d ago•35 comments

JIT bitmap text rendering for microcontrollers

https://linebender.org/blog/jit-bitmap-text/
95•dmit•17h ago•19 comments

I'm not a fan of Deno's security model (2024)

https://goldstein.lol/posts/deno-security/
92•maxloh•13h ago•46 comments

Edward Hopper's Iconic Painting, "Nighthawks

https://lithub.com/the-story-behind-edward-hoppers-iconic-painting-nighthawks/
82•prismatic•4d ago•28 comments

A Little Snitch for Windows

https://packethound.app/
103•BadBoyBubby•10h ago•48 comments

Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files

https://apiiro.com/blog/coding-agents-leaking-secrets-github-dont-ask-again
595•shmulc•1d ago•404 comments

Are big problems more difficult to solve?

https://paulitaylor.com/2026/09/11/are-big-problems-really-more-difficult-to-solve/
4•andsoitis•1d ago•0 comments