swing-ui is a JavaScript GUI module for building cross-platform desktop applications on Windows, macOS and Linux. You write the whole interface in simple synchronous JavaScript or just build the layout of each window in a visual GUI designer. There is no HTML, no CSS and no embedded browser/WebView, and the UI is rendered with enhanced Java Swing components. It runs on Node.js, Bun and Deno 2+ and is installed from npm.
UI calls to set/get component properties are synchronous, so you don’t need async/await or Promises to build UI and interact with it. Components can be configured with method chaining, which keeps layout code compact (inspired by JQuery). Available components include buttons, text fields, tables, trees, tabs, menus, system tray icons and media player, with built-in support for drag and drop, clipboard, undo/redo and much more. Several themes are included: the system look and feel, light and dark FlatLaf, and classic Java themes.
You can build interfaces in code or with the Visual GUI Designer, a drag-and-drop editor that saves layouts as a JSON UI definition file. Shapes allow building nice graphical interfaces, graphs, charts, games easily. Included AI skill gives AI instant knowledge of swing-ui to build the apps you want in just minutes with zero coding.
Because swing-ui does not use web technologies, it suits tools, utilities and business apps built from standard desktop widgets. The project code consists of only JavaScript and UI in JSON file, therefore the codebase of your project results in a very small size. Completed application can be packaged with npm pack and shared in popular .tgz file format.
It comes with an app manager "App Depot" that allows easy app/updates distribution with self-hosted repository, and bunch of free apps are included in the official repository.
Great JSDocs in the JavaScript API gives your IDE ability to assist you in the development. The module is compatible with TypeScript and comes with type definitions.
No comments or reviews, maybe you want to be first?