hn.today

GTKX – Build native apps with React, TypeScript, and Adwaita widgets

github.com3 points0 comments
Screenshot of GTKX – Build native apps with React, TypeScript, and Adwaita widgets

GTKX is a React-based framework that renders native GTK and Adwaita widgets on Linux, letting developers build desktop apps with TypeScript and familiar React patterns. It maps React state and events to native UI, uses Node.js for filesystem and networking, and accepts npm packages that don't rely on a browser DOM. The tooling generates @gtkx/jsx elements and @gtkx/gi bindings from configured native libraries, and a small example shows apps composed with AdwApplication, AdwHeaderBar and GtkLabel and started with createRoot().render(), demonstrating a direct React-to-native rendering model.

The codebase targets Linux with Node.js >= 26.7, GTK 4.20+, libadwaita 1.8+, and native development libraries; a native addon ships prebuilt for x64 and arm64 glibc while other targets require building via Rust. A CLI scaffolds apps (npm create gtkx@beta my-app), and documentation includes a step‑by‑step tutorial for a Tasks app, guides on forms, navigation, animation, testing and deployment, API reference generated per app, and example apps. GTKX 2.0 is in beta with a planned stable release in December 2026; current stable users should follow the 1.x docs. The project is licensed MPL-2.0, provides contributing and security guidelines, solicits funding via Open Collective, and shows community interest with several hundred stars and multiple forks.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Yes, and

Yes, and

Carson Gross argues that learning to write and understand code remains essential despite AI's ability to generate code, as it develops problem-solving skills and mastery over complexity. He warns that relying solely on AI for coding can hinder junior programmers' ability to read and control systems, risking the creation of poorly understood and unmanageable code. (htmx.org)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.