Powered by Bun
Blazing-fast runtime and build tooling. No bundler config needed â Bun handles TypeScript, bundling, and compilation natively.
Lightweight, fast, cross-platform desktop applications using native webviews. No Electron required.

# Create a new project
npx tronbun init my-app
cd my-app && bun install
# Start developing with hot reload
npx tronbun devYour backend runs in Bun. Your frontend runs in a native webview. They communicate over a type-safe IPC bridge.
import { WindowIPC, windowName, mainHandler } from "tronbun";
@windowName("MyApp")
class MainWindow extends WindowIPC {
constructor() {
super({ title: "My App", width: 800, height: 600 });
this.navigate("public/index.html");
}
@mainHandler("greet")
async handleGreet(name: string) {
return `Hello, ${name}!`;
}
}
new MainWindow();// Auto-generated typed API â full IntelliSense
const result = await window.MyApp.greet("World");
document.getElementById("output")!.textContent = result;
// â "Hello, World!"npx tronbun compileProduces a standalone .app (macOS) or .exe (Windows) with all web assets embedded â no external files needed.