No description
  • HTML 57.6%
  • Go 35%
  • CSS 7.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Arne Skaar Fismen c6011dca14 Remove code block border box, align margins with header
Code now renders as open text matching the header's 1.5rem left/right
margins. No border, background, or border-radius on pre. The per-line
copy icon gutter is absorbed into the left margin space.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 14:16:13 +01:00
static Add titles, dark mode, random IDs, .raw.ext, more padding 2026-03-15 14:07:55 +01:00
templates Remove code block border box, align margins with header 2026-03-15 14:16:13 +01:00
.gitignore Initial implementation of clips paste service 2026-03-15 10:42:21 +01:00
go.mod Replace SQLite with flat file storage 2026-03-15 12:40:28 +01:00
go.sum Replace SQLite with flat file storage 2026-03-15 12:40:28 +01:00
main.go Add titles, dark mode, random IDs, .raw.ext, more padding 2026-03-15 14:07:55 +01:00
README.md Update README: go install, flat file flags, purge docs 2026-03-15 12:46:25 +01:00

clips

A minimal paste service. Submit code, get a short URL.

Install

go install code.bas.es/arne/clips@latest

Usage

clips --data /srv/clips --port 3000
Flag Env var Default Description
--port PORT 3000 Port to listen on
--host — 0.0.0.0 Bind address
--data DATA_DIR /srv/clips Data directory

Purge

clips purge --data /srv/clips --older-than 90d
clips purge --data /srv/clips --keep-last 10000
clips purge --data /srv/clips --older-than 30d --dry-run

Features

  • Syntax highlighting with auto-detection (highlight.js)
  • Per-line copy on hover, copy-all button
  • Append .raw to any clip URL for plain text output
  • Sequential numeric IDs (/1, /42)
  • 1000 line limit, clips never expire

Stack

  • Go standard library only — no dependencies
  • htmx for progressive enhancement
  • highlight.js for syntax highlighting
  • JetBrains Mono embedded in the binary — no external requests