Skip to content

rustpad

Browser-based collaborative code editor you self-host in a 6 MB Docker image

Permissive (OSI) · MIT

Listed by , founder & editor

25

Health

Dormant

Overview

Stars

4,086

Last commit

2 years ago

Feb 2025

Repository age

5 years

since May 2021

Latest version

–

Contributors

–

Releases

0

last 12 months

Docker pulls

8.8M

ekzhang/rustpad

Language

Rust

Rustpad is a small collaborative text editor for writing code together in the browser. Several people open the same document and see each other's edits in real time. It uses operational transformation to merge concurrent changes.

The server is written in Rust with the warp framework. Text operation logic is compiled to WebAssembly and runs in the browser. The frontend is TypeScript and React, and it uses Monaco, the editor component behind VS Code. Clients talk to the server over WebSocket, and the server keeps documents in memory, so no database is needed.

By default, documents are lost on restart or after 24 hours of inactivity. You can change the expiry with EXPIRY_DAYS, or set SQLITE_URI to snapshot documents to a local SQLite file. The Docker image is about 6 MB and supports linux/amd64 and linux/arm64. It is MIT licensed. It is not tied to a specific commercial product, but it fills the same role as shared online code pads.

Who it's for

Interviewers and teachers running live coding sessions

Everyone edits the same Monaco-based document in a browser with no accounts or database to set up.

Skip if: You need code execution, video, or long-term document history built in.

Small teams that want a private scratchpad

A single tiny container on your own server gives you a shared pad that stays under your control.

Skip if: You need access control, user accounts, or folders of documents.

Rust and WebAssembly developers

The codebase is a compact example of operational transformation with a Rust server and a WASM client.

Skip if: You want a project with active development and frequent releases.

The problem it solves

Sharing code live usually means a hosted service or a heavy collaboration suite. Rustpad gives you a shared browser editor that you run yourself with one container and no database.

Strengths

  • Docker image is about 6 MB, with amd64 and arm64 builds
  • No database required; documents live in server memory
  • Optional SQLite persistence through one environment variable
  • Uses Monaco, the editor that powers VS Code
  • MIT license

Trade-offs

  • Documents vanish on restart or after 24 hours unless SQLite is configured
  • No recent commits or contributors; maintenance is dormant
  • No built-in user accounts or access control mentioned
  • Building from source needs Rust, wasm-pack, and Node.js

Self-host rustpad

Self-hostable
Yes
Docker image
ekzhang/rustpad

Quick start

docker run --rm -dp 3030:3030 ekzhang/rustpad

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Rustpad free to use and self-host?

Yes. It is MIT licensed and designed to be self-hosted. A public instance also runs at rustpad.io.

Do I need a database?

No. Documents are kept in memory by default. Set SQLITE_URI if you want them saved to a SQLite file.

How long are documents kept?

By default they are removed after 24 hours of inactivity. EXPIRY_DAYS changes that.

Which architectures does the Docker image support?

linux/amd64 and linux/arm64.

Similar tools in Code editors and IDEs

RStudio Server

Code editors and IDEs

Desktop and browser-based IDE for R, with Quarto and R Markdown authoring

5.1k 1.2k today Active AGPL-3.0

neovide

Code editors and IDEs

Graphical front end for Neovim on Windows, macOS and Linux

15k 645 2 days ago Thriving MIT

IntelliJ IDEA OSS

Code editors and IDEs

Open-source core of JetBrains IDEs, built for Java and Kotlin developers

21k 6.2k today Thriving Apache-2.0

Replaces Visual Studio

ImHex

Code editors and IDEs

56k 2.6k today Active GPL-2.0

Pulsar

Code editors and IDEs

4.2k 200 3 days ago Thriving MIT