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

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 t

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

78

out of 100

Verdict

VALIDATE

high confidence

Competition

No competitor data yet

Trend

No signal yet

A lightweight, high-performance cross-platform UI framework using WASM and GPU rendering with a unified JavaScript API.

The pain

Developers struggle with fragmented native frameworks, slow updates, language restrictions, and inefficient cross-platform UI solutions.

The gap

No existing framework combines small bundle size, direct WASM GPU rendering, fast iteration, and multi-platform native runtimes with JavaScript APIs.

Build angle

Leverage C-based WASM core and JavaScript API to build a performant, lightweight UI framework that supports hot-reload and native packaging.

Strengths

  • Addresses a well-defined developer pain with cross-platform UI frameworks
  • Innovative use of WASM and GPU rendering for performance and size
  • Supports fast iteration with hot-reload on multiple platforms
  • Unified JavaScript API simplifies development and deployment

Risks

  • High technical complexity and maintenance burden for cross-platform runtimes
  • Strong competition from established frameworks and browser-based solutions
  • Uncertain developer adoption due to ecosystem inertia
  • Monetization and market size may be limited to niche developer segments

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “JavaScript web apps with WASM layout and GPU rendering in 280 KB”.

Open FlyBot