Quick Start
Welcome to Electrobun! This guide will help you create your first ultra-fast, tiny desktop application with TypeScript.
Prerequisites
Before getting started, make sure you have:
- Bun installed on your system
- A text editor or IDE (Blackboard’s own co(lab) recommended)
- Basic knowledge of TypeScript/JavaScript
Getting Started
Create a new Electrobun project with a single command:
bunx electrobun initIt’ll ask you which template project you want to get started with.
This creates a new directory with the basic project structure:
my-app/├── src/│ ├── bun/│ │ └── index.ts # Bun entry point (main process)│ └── mainview/│ ├── index.html # UI template│ ├── index.css # Styles│ └── index.ts # Frontend logic├── package.json # Project dependencies├── tsconfig.json└── electrobun.config.ts # Build configurationRunning Your App
Navigate to your project directory and start development:
cd my-appbun installbun startThis will use the Electrobun cli:
- Create a quick start project on your machine
- Use the Electrobun cli to do a dev build of your app
- Open your app in dev mode
Next Steps
Now that you have a basic app running, explore these topics:
- Hello World - Create a hello world from scratch.
- Creating UI - Build beautiful interfaces with web technologies
- Bun API - Learn about the main process APIs
- BrowserView - Manage multiple webviews
- Bundling & Distribution - Package your app for distribution
Need Help?
If you run into any issues:
- Check the GitHub repository
- Join our Discord community
- Read through the other documentation guides