GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - omrylcn/zero-editor: Lightweight web-based code editor for Raspberry Pi and resource-constrained devices. 3MB binary, ~2MB RAM.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
README.md
README.md
 
 

Repository files navigation

Zero Editor

A lightweight, web-based code editor built with Rust for resource-constrained devices like the Raspberry Pi Zero.

3 MB binary. ~2-3 MB RAM. Zero dependencies.

Why?

VS Code Remote SSH is too heavy for a Pi Zero (416 MB RAM). JupyterLab is too heavy. Nano works but lacks a modern editing experience. Pi Editor fills this gap: a real code editor with syntax highlighting, file management, and an integrated terminal — all served from a single binary that barely touches your RAM.

Features

  • Code Editor — CodeMirror-powered editor with syntax highlighting for Python, Rust, JavaScript, Shell, TOML, YAML, Markdown, HTML, CSS, and more
  • File Explorer — Browse, open, and navigate your project directory
  • Integrated Terminal — Run commands directly from the browser with command history (Up/Down arrows) and tab completion
  • Run Button — One-click execution with automatic language detection:
    • .py → uv run python
    • .rs → rustc + run
    • .js → node
    • .sh → bash
  • File Transfer — Drag-and-drop upload from your desktop + download button
  • Keyboard Shortcuts — Ctrl+S save, Ctrl+Enter run
  • Dark Theme — Dracula theme, easy on the eyes

Quick Start

Build from source

# Clone
git clone https://github.com/omrylcn/zero-editor.git
cd zero-editor

# Build
cargo build --release

# Run (edit WORKSPACE path in src/main.rs first)
./target/release/zero-editor

Open http://localhost:3000 in your browser.

Deploy to Raspberry Pi

# Cross-compile for aarch64
cross build --release --target aarch64-unknown-linux-gnu

# Copy binary to Pi
scp target/aarch64-unknown-linux-gnu/release/zero-editor user@pi-address:~/

# SSH and run
ssh user@pi-address
./zero-editor

Then access from your desktop browser: http://<pi-ip>:3000

SSH Port Forward (optional)

ssh -L 3000:localhost:3000 user@pi-address
# Then open http://localhost:3000

Configuration

Edit the WORKSPACE constant in src/main.rs to point to your project directory:

const WORKSPACE: &str = "/home/your-user/your-project";

Tech Stack

  • Backend: Rust + Actix Web (~3 MB binary, stripped + LTO)
  • Frontend: CodeMirror 5 (loaded from CDN, zero storage on device)
  • Dependencies: None at runtime — single static binary

Resource Usage

Pi Editor VS Code Remote JupyterLab
RAM ~2-3 MB ~200+ MB ~100+ MB
Disk 3 MB 200+ MB 50+ MB
Startup instant 10-30s 5-15s

License

MIT

About

Lightweight web-based code editor for Raspberry Pi and resource-constrained devices. 3MB binary, ~2MB RAM.

Topics

codeedge-deviceiotraspberry-pi

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.