Description
menubar is a small library for Electron that makes it easy to build a menu bar application. You point it at an index.html file and it handles the window and the tray icon, so a few lines of code give you an app that lives in the menu bar and shows its window when clicked. The library is designed for macOS, Windows and most Linux desktops, and the project says it has one dependency and one peer dependency, and that the minified and compressed code is about 3.6 kB. The returned Menubar object exposes the Electron app, window, tray and positioner, and methods to show and hide the window and to get and set options after creation. Options include the source directory, the URL or local HTML file to load, and BrowserWindow settings such as the window size, position, whether it stays on top, and the icon. Icons should be a small PNG, about 20 by 20 pixels, with a 2x version for retina screens. A hello-world example is included in the repository. The library is open source on GitHub, and its documentation covers the class, the options and the events.…
Highlights
- Menu bar app from one HTML file
- Tray icon and popup window
- Options for size, position and icon
- Works on macOS, Windows and Linux
- Open source, about 3.6 kB
Ratings & Reviews
No ratings yet
Be the first to rate Menubar.
People also visit
Menubar FAQ
What is menubar?
It is a library for Electron that builds menu bar desktop applications from an HTML file.
Which systems does it support?
macOS, Windows and most Linux desktops, according to the README.
How do I start?
Install the library, fill an index.html file, then run Electron. A hello-world example is in the examples folder.
What options can I set?
The source directory, the page to load, BrowserWindow settings such as width, height and always on top, the icon and the tooltip.
What icon size should I use?
The README suggests a 20 by 20 pixel PNG, with a 2x version named with @2x for retina screens.
Is it free?
Yes. menubar is open source on GitHub.
What are the best Menubar alternatives?
Popular alternatives to Menubar include Muda, Menu bar Launcher and SaneBar. See all Menubar alternatives


