electrobun

electrobun is a skill for Claude Code, Codex from rajavijayach/electrobun-skills. It costs 238 tokens per session (3,051 once invoked), scanned B, original, MIT.

A development guide for building cross-platform desktop apps with Electrobun, a TypeScript framework that uses Bun and the operating system's native webview. It covers project setup, windows, processes, and builds.

In plain words
What is it for?
Use it to scaffold, develop, build, debug, and package Electrobun apps with templates such as React, Svelte, a camera example, or a browser-style interface.
Why use it?
It explains how the app's system-facing Bun process and sandboxed interface communicate, reducing confusion when creating or shipping desktop software.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to scaffold, develop, build, debug, and package Electrobun apps with templates such as React, Svelte, a camera example, or a browser-style interface.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rajavijayach/electrobun-skills/electrobun
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rajavijayach/electrobun-skills --skill electrobun
Clone the repo
git clone --depth 1 https://github.com/rajavijayach/electrobun-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for electrobun

README.md
[![agentmods](https://agentmods.dev/badge/skills/rajavijayach/electrobun-skills/electrobun/github.svg)](https://agentmods.dev/skills/rajavijayach/electrobun-skills/electrobun)
Your own site
<a href="https://agentmods.dev/skills/rajavijayach/electrobun-skills/electrobun"><img src="https://agentmods.dev/badge/skills/rajavijayach/electrobun-skills/electrobun/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for electrobun

Your own site · 80×15
<a href="https://agentmods.dev/skills/rajavijayach/electrobun-skills/electrobun"><img src="https://agentmods.dev/badge/skills/rajavijayach/electrobun-skills/electrobun.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 238 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,051 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00238 $0.03051
Opus 5.5 $0.00095 $0.01220
Sonnet 5.5 $0.00048 $0.00610
Haiku 4.5 $0.00024 $0.00305

Measured 2mo ago against content hash c2c6597ee932, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

electrobun scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install libgtk-3-dev libwebkit2gtk-4.1-dev
electrobun/SKILL.md · 464 lines

How it starts

The opening of the file, as written. The whole thing — 464 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Electrobun

Electrobun is a TypeScript-first desktop app framework using Bun (runtime + bundler) and the system's native webview. Build apps that are ~14MB, with updates ~14KB, and startup <50ms.

Quick Start

Initialize New Project

bunx electrobun init          # Interactive scaffold
bun run dev                   # Development mode
bun run build                 # Production bundle

Choose from templates:

  • hello-world: Minimal starter
  • react-tailwind-vite: React + Tailwind + Vite
  • svelte: Svelte framework
  • photo-booth: Camera access example
  • multitab-browser: Tab-based browser example

Project Structure

my-app/
├── electrobun.config.ts      # Build configuration
├── src/
│   ├── bun/
│   │   └── main.ts           # Main process (Bun)
│   └── views/
│       └── mainview/
│           ├── index.html
│           └── index.ts      # Webview frontend
└── package.json

Core Concepts

Main Process vs Webview

  • Main Process (src/bun/main.ts): Runs in Bun, has full system access, manages windows, handles RPC
  • Webview Process (src/views/*/index.ts): Runs in OS webview, sandboxed, handles UI, calls RPC

BrowserWindow

Create and manage application windows.

import { BrowserWindow } from "electrobun/bun";

const win = new BrowserWindow({
  title: "My App",
  url: "views://mainview/index.html",
  width: 1200,
  height: 800,
  frame: true,  // Standard window frame
  styleMask: ["titled", "closable", "miniaturizable", "resizable"],
});

Key Options:

  • title: Window title
  • url: Load URL (use views:// protocol for bundled views)
  • width, height: Window dimensions
  • x, y: Window position (optional)
  • frame: Show standard window frame (true/false)
  • styleMask: Array of window controls (macOS)
  • titleBarStyle: "default" | "hidden" | "hiddenInset"
  • trafficLightPosition: Custom position for macOS traffic lights

Methods:

win.loadURL("views://otherview/index.html")
win.setTitle("New Title")
win.resize({ width: 1024, height: 768 })
win.move({ x: 100, y: 100 })
win.show() / win.hide()
win.close()
win.focus()
win.minimize() / win.maximize() / win.fullscreen()

Read the full file on GitHub · 464 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 464 lines · 0 tokens per session scan B c2c6597ee932

Subscribe to this mod's changes

electrobun is a skill published in the GitHub repository rajavijayach/electrobun-skills (11 stars, last pushed 8mo ago), licensed MIT. It adds 238 tokens to every session and 3,051 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

electrobun compared with skills from other repositories

electrobun next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
electrobunrajavijayach/electrobun-skillsSkill118mo agoMITB238Claude Code, Codex
no-bare-castsprisma/ormSkill48kyesterdayApache-2.0A52Claude Code, Codex
aws-sst-developmentsickn33/agentic-awesome-skillsSkill49kyesterdayMITA26Claude Code
league-akari-shard-developmentLeagueAkari/LeagueAkariSkill4.7k5d agoMITA58Claude Code, Codex
dd-code-generationDataDog/pupSkill1.0kyesterdayApache-2.0A16Claude Code
fast-typescript-checkinternet-development/www-sacredSkill1.6k2d agoMITA84Claude Code, Codex
typescript-magicianmcollina/skillsSkill2.0k10d agoMITA108Claude Code, Codex