No description
- HTML 57.6%
- Go 35%
- CSS 7.4%
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> |
||
|---|---|---|
| static | ||
| templates | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| README.md | ||
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
.rawto 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