Simple shareable code snippet and text blocks
Find a file
Leo 4d896adcdb Fix bottom nav bar hidden on mobile
Use 100dvh (dynamic viewport height) so the layout accounts for mobile
browser chrome (address bar, navigation bar), with 100vh as fallback.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-02 20:42:44 +02:00
index.html Fix bottom nav bar hidden on mobile 2026-03-02 20:42:44 +02:00
lzma.js Initial commit 2026-02-12 19:10:05 +02:00
lzma_worker.js Initial commit 2026-02-12 19:10:05 +02:00
README.md Add README.md 2026-02-13 00:20:36 +02:00

Paste

A client-side paste tool that compresses text/code into shareable URLs using LZMA compression.

Features

  • No server required - All data is stored in the URL itself
  • LZMA compression - Efficiently encodes content into URL-safe base64
  • Syntax-friendly editor - Line numbers, tab support, and monospace font
  • Dark/Light mode - Toggle between themes with preference persistence
  • Copy to clipboard - Quick copy for both content and generated URLs
  • Warning for long URLs - Alerts when URLs may not work in all browsers

Usage

  1. Paste your text or code into the editor
  2. Click "Generate URL" to create a shareable link
  3. Share the URL - recipients can open it to view the content directly

How It Works

The content is compressed using LZMA and encoded as base64 in the URL hash. When someone opens the URL, the data is decompressed client-side and displayed in the editor. No data is ever sent to a server.

Credits

This project was heavily inspired by topaz/paste.