Skip to content

Releases

v1.4.0

Choose a tag to compare

@arvarik arvarik released this 18 Aug 03:28

Paste v1.4.0 adds secure editing, durable revision storage, a responsive interface, and complete operator tooling.

Highlights

  • Responsive paste and diff workspaces for desktop, tablet, and mobile.
  • Private edit secrets and scoped API tokens.
  • Revision history with conflict-safe restore.
  • Tags, favorites, expiry, and burn-after-read items.
  • Portable item import and export.
  • Verified backups, restores, integrity checks, and migration recovery.
  • Rolling rate limits, bounded work queues, and strict request validation.
  • Self-hosted frontend assets with safe Markdown rendering.
  • Updated Docker, Go, frontend dependencies, CI checks, and documentation.

Upgrade notes

  • Create a verified backup before the upgrade.
  • The server migrates the earlier file layout during startup.
  • New items use 32-character public IDs and separate edit secrets.
  • Legacy six-character IDs remain readable.
  • Compose now stores data in the paste-data named volume.
  • Remote deployments require an HTTPS reverse proxy.

See the repository documentation for configuration, API, operations, security, and development details.

v1.3.1

Choose a tag to compare

@arvarik arvarik released this 12 May 22:13
ff4e428

Editor & Viewer

  • Fix line-number gutter misalignment (fixed rem-based line-height)
  • Add line numbers for programming languages; skip text/markdown
  • Responsive mobile gutter sizing

Diff App

  • Dynamic line-number sync for both diff textareas
  • Scroll sync between textareas and gutters
  • Fix column-order bug in diff output
  • Extract renderDiffLine() builder as single source of truth

DRY Refactor

  • Shared syncLineNumbers() in utils.js
  • .editor-gutter CSS class for all gutter elements

Backend

  • PUT /api/saved_diffs/{id} for diff persistence
  • XSS hardening in OG tag generation
  • /api/format endpoint for code formatting
  • Time-bucketing boundary fix
  • TitleSanitizer hardening

v1.3.0 — Modular Architecture & Diff Workspace

Choose a tag to compare

@arvarik arvarik released this 12 May 04:07
539d4f2

🏗️ Architecture

  • Refactored flat Go files into cmd/server/ + internal/{api,models,storage,util} package layout
  • Extracted monolithic index.html into Go html/template components (layout/, components/)
  • Migrated inline JavaScript to ES modules (static/js/{main,state,dom,ui,paste,diff,utils}.js)
  • Dockerfile updated to build from cmd/server/ and copy templates + static assets

✨ Features

  • Diff workspace — side-by-side line-level diff viewer powered by go-difflib. Diffs can be saved, listed, searched, and shared with permanent URLs at /diff/<id>
  • Command palette — Cmd/Ctrl + K opens a fuzzy-searchable palette for workspace switching and quick actions
  • OG preview images — each paste generates a syntax-highlighted PNG preview (1200×630, Dracula theme) via Chroma + gg for rich social media link unfurling
  • Paste editing — PUT /api/pastes/{id} allows in-place updates to existing pastes
  • Diff search — GET /api/search_diffs?q={query} for full-text search across saved diffs
  • Code formatting — Cmd/Ctrl + Shift + F formats code in the paste editor

📦 New Dependencies

Package Purpose
go-difflib Structured line-level diff computation
Chroma Server-side syntax highlighting for OG preview images
gg + x/image 2D graphics and font rendering for preview PNGs

🔧 API Changes

New Endpoints

Method Path Description
PUT /api/pastes/{id} Update an existing paste
GET /api/pastes/{id}/preview.png Syntax-highlighted OG preview image
POST /api/diff Compute a diff (returns opcodes + lines)
POST /api/saved_diffs Save a diff
GET /api/saved_diffs List saved diffs (time-bucketed)
GET /api/saved_diffs/{id} Get a saved diff
DELETE /api/saved_diffs/{id} Delete a saved diff
GET /api/search_diffs?q={query} Search across diffs

⌨️ Keyboard Shortcuts

Shortcut Action
Ctrl/Cmd + S Save current paste or diff
Ctrl/Cmd + K Open command palette
Ctrl/Cmd + N New paste or diff
Ctrl/Cmd + Shift + F Format code (paste editor)
Escape Close palette / sidebar

📝 Docs

  • Rewrote README.md — condensed from ~450 to ~230 lines with grouped features and API endpoint tables
  • Updated all .agent/ files (ARCHITECTURE, PHILOSOPHY, STYLE, STATUS, TESTING)

🐛 Fixes (included in this release)

  • Fixed .gitignore pattern server → /server to prevent excluding cmd/server/ (#25)
  • Added .dockerignore for proper Docker build context (#25)
  • Added missing cmd/server/main.go that was blocked by the old gitignore (#26)

Full Changelog: v1.2.0...v1.3.0

v1.2.0

Choose a tag to compare

@arvarik arvarik released this 16 Apr 21:49
0ce4286

What's Changed

  • chore: bootstrap repository with gemstack agent orchestration files by @arvarik in #19
  • docs: add Gemstack topology-aware configuration by @arvarik in #20
  • feat: DX Polish Release by @arvarik in #21
  • chore: clear testing scenarios for next feature by @arvarik in #22

Full Changelog: v1.1.0...v1.2.0

v1.1.0

Choose a tag to compare

@arvarik arvarik released this 10 Mar 23:11
c7037a3
🧹 [code health] Use strings.NewReplacer for paste title sanitization …

Initial release

Choose a tag to compare

@arvarik arvarik released this 01 Mar 18:06
720bfea

A lightweight, self-hosted pastebin built with Go and zero external dependencies. Single binary, file-based storage, no database required.

  • File-based storage — pastes saved as plain files with real extensions (.py, .go, .md)
  • Syntax highlighting with line numbers for 10+ languages via Prism.js
  • Markdown rendering with rich text formatting and per-code-block copy buttons
  • In-memory full-text search with highlighted preview snippets
  • Immutable pastes with permanent shareable links
  • Clipboard copy that works on both HTTPS and plain HTTP deployments
  • Dark mode UI with color-coded language badges and time-grouped sidebar
  • Keyboard shortcuts for save, search, and navigation
  • Full JSON REST API for programmatic access
  • Production-ready Docker Compose with healthchecks, resource limits, and Watchtower auto-update
  • Under 20 MB Docker image via multi-stage Alpine build
  • Security guardrails including cryptographic IDs, upload limits, and path traversal protection