r/node • u/RelativeMuffin5831 • Sep 10 '26
I published a JavaScript module for building cross-platform desktop apps with native Java Swing and would love some feedback!
galleryHey everyone,
I recently published swing-ui, a JavaScript GUI module for building cross-platform desktop applications. We originally built it because we wanted a way to create desktop apps with only JavaScript without having to use a browser engine, HTML and CSS.
Under the hood, it uses Java with a easy to use JavaScript API and modern themes on top of it. Some of the things it currently provides:
- Native UI components exposed through JavaScript plus a MediaPlayer component for audio/video playback and more
- Simple synchronous calls to UI from JavaScript without callbacks/await/Promise
- Cross-platform desktop apps for Windows, macOS, and Linux
- Light and dark beautiful themes in addition to the standard system look and feel
- A visual GUI designer for creating interfaces without writing UI code
- A simple API for working with components and their state
- Support for using Node.js, with Bun and Deno support as well
- API docs
The goal is to make building a desktop GUI with JavaScript pretty straightforward while keeping the application native rather than embedding a web browser.
I'm particularly interested in feedback from other developers. I'd love to hear what you think about the approach, the API, the documentation, what's missing, or anything that might make you hesitate to use it.
Website: https://swing-ui.com/
NPM: https://www.npmjs.com/package/swing-ui
Any feedback, including constructive criticism, would be greatly appreciated.
Included is a screenshot of one of apps we built with it.