Logo
Deploy Now

Stars

38442

Forks

8830

Watchers

535

Developer links

Hastebin

"Throw it on a haste and send the link" entered developer vocabulary because of Hastebin (haste-server), the minimalist open-source pastebin. Written in Node.js with three stated design goals - be really pretty, be really simple, be easy to set up - it does one job precisely: paste code, logs, stack traces, or config snippets, press save (or Ctrl+N for a new one), and get a short random-key URL to share. Syntax highlighting renders pastes readably across common languages, a raw view serves plain text for curl and scripts, and duplicate-and-edit makes iterating on a shared snippet trivial. The killer workflow is the terminal: with the haste-client utility or a one-line shell function, `cat error.log | haste` prints a shareable URL straight from stdout - the fastest route from a broken build to a colleague's eyeballs. Storage is pluggable through a simple adapter interface: filesystem by default, Redis with optional key expiration for pastes that should age out, and configurable key length, maximum paste size, and static documents. Self-hosting matters here because pastes often contain internal logs and stack traces that should never sit on a public pastebin - your instance keeps them inside your network, under your retention rules.

Hastebin

Benefits

  • Internal Logs Stay Internal
  • Stack traces and config dumps land on your server instead of a public pastebin indexed by search engines and scrapers.
  • Terminal to Teammate in One Pipe
  • The haste-client and simple POST API turn any command's output into a shareable URL without leaving the shell.
  • Nothing to Learn, Nothing to Break
  • Paste, save, share - the entire product. No accounts, no editor chrome, no feature sprawl to maintain.
  • Retention on Your Terms
  • Redis expiration ages pastes out automatically, or filesystem storage keeps them exactly as long as policy says.

Features

  • Instant Paste URLs
  • Short random-key links generated on save, with configurable key length and paste size limits.
  • Syntax Highlighting
  • Readable rendering for code, logs, and config formats, plus a raw plain-text view.
  • Terminal Client
  • Pipe stdout through haste-client or a one-line shell function to get a share URL instantly.
  • Pluggable Storage
  • Filesystem by default, Redis with optional expiry, and a simple adapter interface for other stores.
  • Duplicate and Edit
  • Fork any paste into an editable copy for quick iteration on shared snippets.
  • Static Documents
  • Serve permanent pages like an about or usage doc alongside expiring pastes.