Overview
PeaBox IDE is a local-first desktop code editor built with Electron, focused on the everyday loop developers actually live in: open a folder, edit, search, review Git changes, run code and drive a real terminal. It uses Monaco — the VS Code editor engine — with custom dark/light themes, 40+ languages, bracket-pair colouring, minimap and word wrap, wrapped in a UI that stays out of your way.
It exists for developers who want a capable editor that is fast, offline-friendly and honest about your data: no telemetry, no cloud sync, no account. State lives under Electron's userData folder (or a PeaBox-IDE-Data folder next to a portable executable), Git runs through argument arrays with shell: false and no interactive prompts, and the renderer is sandboxed with context isolation, a strict CSP and no nodeIntegration.
It suits solo developers, students, open-source contributors and anyone who wants a serious editor without another subscription or SaaS dependency. Current release: v0.17.0.
Use Cases
- Everyday coding — Monaco editing with tabs, minimap and 40+ languages;
Ctrl+P to jump anywhere.
- Code review — staged/unstaged sections, per-file diffs, commit, pull, push, fetch, stash — all from one panel.
- Quick scripts — press
F5 to run Python, Node, Go, PowerShell or shell files; Shift+F5 to stop.
- Large-repo search — async, chunked full-text search with match-case/whole-word options and click-to-jump results.
- Bulk edits — Replace in Files with a preview before applying; affected editor tabs reload afterwards.
- Terminal-driven work — multiple xterm.js tabs backed by node-pty;
Ctrl+` toggles the panel.
- Focus writing — distraction-free editing with search exclusions, reduced-motion support and theme cycling.
- Crash-safe sessions — unsaved buffers are snapshotted as you type; tabs, cursor and scroll restore on reopen.
A Day in PeaBox IDE
You open yesterday's project with the Code-Editor-IDE D:\proj command line — workspace and tabs restore exactly where you left them. Ctrl+Shift+F finds every call site of the function you're refactoring; you jump, edit, then Ctrl+Shift+H previews a replace-all across the repo. The Explorer shows change badges; you split the Git panel, stage two files, glance at the diff viewer, and commit with a message. You press F5 — the Python script streams live output, an input bar appears when it asks for your name, and box-drawing characters render correctly on Windows. A \r progress bar updates in place. You switch to the terminal tab, run the test suite, then stash an unrelated experiment before pushing. Nothing was uploaded, synced or phoned home — the source stayed on your disk the whole time.
Features
- Editor — Monaco with custom dark/light themes, 40+ languages, bracket-pair colouring, minimap, word wrap, adjustable font and tab size.
- Explorer — lazy-loaded folder tree for large repos; right-click new/rename/delete/copy-path/reveal-in-Explorer.
- Search — async, chunked, match-case/whole-word, grouped results with highlighted snippets; Replace in Files previews matches first.
- Unified palette —
Ctrl+P fuzzy file open, Ctrl+Shift+P commands, Ctrl+Shift+O symbols; inline > and @ mode switching with full arrow-key navigation.
- Source control — branch switch/create, stage/unstage/discard per file, diff viewer, commit, pull, push, fetch, stash/pop; read-only status-bar change count.
- Runtimes — F5 runs Python/Node/Go/PowerShell/shell with configurable paths, a Check button and Auto-Detect; output streams UTF-8, input is forwarded to stdin,
Shift+F5 kills the process tree.
- Terminal — multiple xterm.js sessions on node-pty with tabs, resize and auto-fit; prebuilt binary verified against Electron 38, no C++ toolchain needed.
- Safety — path confinement via
realpath against workspace roots, atomic saves with fsync, 50 MB file limit, crash recovery, external-change protection with clean/dirty buffer handling.
- Encoding & EOL awareness — status bar shows UTF-8/UTF-16/UTF-32 (with BOM) and LF/CRLF/CR; session restore reopens workspace, tabs and scroll.
Requirements
- Windows 10/11 (current target), macOS 13+ or Linux (glibc) with Node.js 20+ and npm 10+.
node-pty ships a prebuilt binary for win32-x64 and macOS/Linux verified against Electron 38 — no C++ toolchain required.- Git on
PATH for source-control features; runtimes (Python/Node/Go/PowerShell) only for the languages you actually run.
Installation
From source (npm-based; there is no pip package):
git clone https://github.com/PeaBox-Lab/Code-Editor-IDE.git
cd Code-Editor-IDE
npm install
npm start
Useful scripts:
npm run validate :: static checks: syntax, DOM ids, icons, IPC, security
npm run test:unit :: node:test unit suite for shared.js
npm run test:e2e :: Playwright Electron smoke test
npm run build :: validate + unit tests + portable/zip artifacts in dist/
BUILD_WINDOWS.bat and START_SOURCE.bat wrap the same commands and locate Node on PATH (or in a local node\ folder). tools/postinstall.js checks the prebuilt node-pty binary first and falls back to a source rebuild only if it cannot load.
Quickstart — 30 Seconds
git clone https://github.com/PeaBox-Lab/Code-Editor-IDE.git
cd Code-Editor-IDE
npm install
npm start
The window opens; pass a folder on the command line (npm start -- D:\my-project) or use Ctrl+O. Press Ctrl+P, type a filename, hit Enter — you're editing.
Configuration
Settings live in state.json under Electron's userData folder: %APPDATA%\peabox-ide for installed builds, or a PeaBox-IDE-Data folder next to a portable EXE. Open them from Ctrl+,. Configurable: theme, typography, tabs, word wrap, minimap, auto-save, terminal shell, runtime paths (with a Check button), and search exclusions. session.json stores open tabs, cursor positions and scroll offsets; unsaved buffers go to a recovery folder as you type.
Keyboard Shortcuts
| Shortcut | Action |
Ctrl+O / Ctrl+Alt+O | Open folder / file |
Ctrl+N | New file |
Ctrl+S / Ctrl+Alt+S | Save / Save all |
Ctrl+P / Ctrl+Shift+P / Ctrl+Shift+O | Files / commands / symbols |
Ctrl+F / Ctrl+H / Ctrl+G | Find / replace / go to line |
Ctrl+Shift+E/F/G | Explorer / Search / Git panels |
Ctrl+Shift+H | Replace in files |
F5 / Shift+F5 | Run / stop |
Ctrl+` / Ctrl+B / Ctrl+J | Terminal / sidebar / panel |
Troubleshooting
- Terminal says node-pty could not be loaded — install "Desktop development with C++" from Visual Studio Build Tools, run
npx electron-builder install-app-deps, restart. Editor, search, Git and run panel work without it.
npm install prints a native rebuild warning — the prebuilt binary did not load and a source rebuild was attempted; install still succeeds, only the terminal is affected.
- Editor is blank — run
npm install again so monaco-editor and @xterm/* are present, then restart.
- Git commands time out — check Git is installed and on
PATH; credentials must be configured for non-interactive use (prompts are disabled).
- Packaged build fails — ensure
npm install completes before npm run build; if modules are missing, delete node_modules and dist and retry.
- Unsaved work after a crash — recovery buffers are offered back from the recovery folder on next launch.
Release & License
Current release: v0.17.0. MIT licensed. Contributions welcome: open an issue, fork into a feature branch, run npm run validate && npm run test:unit && npm run test:e2e before submitting, and keep the CSP strict.
github.com/PeaBox-Lab/Code-Editor-IDE · PeaBox Lab help & docs