A simple Electrobun app to get you started with the framework.
This hello world app demonstrates:
- Native Window: A cross-platform desktop window
- Web-based UI: Modern HTML, CSS, and JavaScript interface
- Simple Architecture: Clean separation between Bun process and UI
-
Install dependencies:
bun install
-
Run in development mode:
bun run dev
-
Build for production:
bun run build
src/
├── bun/
│ └── index.ts # Main process - creates and manages windows
└── mainview/
├── index.html # Your app's UI
├── index.css # Styles
└── index.ts # View logic
Ready to build something more complex? Check out:
- Documentation - Learn about all Electrobun features
- Examples - See advanced features like RPC, menus, and system tray
- GitHub - Star the repo and join the community
Want to extend this app? Try adding:
- RPC communication between Bun and webview
- Native menus and system tray
- File dialogs and system integration
- Multiple windows and views
Happy building! 🚀