Sign inSign up

garretpremo/scratch

By garretpremo

Updated 6 months ago

Image
0

199

garretpremo/scratch repository overview

Scratch

A simple markdown notes webapp with real-time multi-client sync via WebSockets. Built with Bun, Svelte 5, and SQLite.

Features

  • Sidebar with all notes, tabbed header for open notes
  • Markdown editor with live preview
  • Real-time sync across all connected clients via WebSockets
  • SQLite storage with WAL mode
  • No auth — designed for trusted networks

Quick Start

docker run -p 3000:3000 -v scratch-data:/data garretpremo/scratch:latest

Then visit http://localhost:3000

Docker Compose
services:
  scratch:
    image: garretpremo/scratch:latest
    ports:
      - "3000:3000"
    environment:
      - DB_PATH=/data/scratch.db
    volumes:
      - scratch-data:/data

volumes:
  scratch-data:

Configuration

VariableDefaultDescription
PORT3000Server port
DB_PATH./data/scratch.dbSQLite database path

Tag summary

Content type

Image

Digest

sha256:28adcef37

Size

89.8 MB

Last updated

6 months ago

docker pull garretpremo/scratch