What Is lesma and How Do You Share Plain Text Snippets With It?

lesma is a simple paste app that works from both a browser and the command line. You use it to upload plain text, get a short link back, and share that link instead of pasting long content into chat or email. It fits quick, low-friction sharing: notes, logs, config snippets, or code you want someone else to read or clone. The main limits to know up front are that it accepts plain text files only (you can drag and drop them), and that pastes can carry an expiration time, a password, and a download count limit.

What lesma does

A pastebin-style tool stores a block of text at a URL so you can send the URL rather than the text itself. lesma follows that model with a deliberately small feature set:

  • Browser and command line — the same service is reachable interactively in a browser or from a terminal, so it suits both people who click and people who script.
  • Plain text only — the interface states you can only drag and drop plain text files. Binary files, images, and rich documents are out of scope.
  • Shareable link — after saving, you get a paste you can open, clone, or view as raw text.

The page shows a save action alongside New, Clone, Raw, and Info controls, which maps to the basic lifecycle: create a paste, make a new one, duplicate an existing one, fetch the raw content, and read metadata.

Creating a paste

  1. Open lesma in your browser (lesma.eu) or from your command line client.
  2. Add your text — type or paste it directly, or drag and drop a plain text file onto the page.
  3. Set options if you need them (see the next section): expiration time in hours, a password, and a download count limit.
  4. Save the paste.
  5. Copy the resulting link and share it. The recipient can open it in a browser, use Raw to get the plain text, or Clone it to make their own copy.

Expected result: a URL that returns your text. If you set a password, anyone opening the link needs that password first.

The options and what they mean

Option What it controls When to use it
Expiration time (in hours) How long the paste stays available Short-lived secrets, temporary logs, one-off debugging output
Password Requires a password to open the paste Content you only want specific people to read
Download count limit Caps how many times the paste can be downloaded Limiting distribution of a sensitive snippet

These three controls are the practical difference between lesma and a bare paste endpoint: you can make a paste self-destruct on a timer, gate it behind a password, or cap how many times it can be pulled.

Getting a paste back out

  • Open the link to read it in the browser view.
  • Raw returns the plain text with no surrounding interface — useful for curl, scripts, or piping into another tool.
  • Clone creates a new paste from the existing content, handy when you want to fork a snippet and edit it without touching the original.
  • Info shows the paste's metadata, such as its settings.

From the command line, the same flow applies: you push text up and get a URL, then fetch it back as raw text when you need it in a script or terminal.

How it compares to pastebin, sprunge, and hastebin

All of these share text at a URL; they differ in interface and intended use.

  • pastebin — a general-purpose, long-established paste host with a broad web interface and many formatting options. Better when you want syntax highlighting, public browsing, or a large feature set.
  • sprunge — a command-line-first paste service: you pipe text in and get a URL back. Minimal, terminal-centric, no rich browser UI.
  • hastebin — oriented toward code and logs with a clean web view and an API; commonly used for sharing error output.
  • lesma — sits between these: it explicitly targets both browser and command line, keeps the feature set small, and exposes expiration, password, and download-count controls directly. Choose it when you want a quick plain-text paste with those three controls and don't need formatting or a public paste gallery.

If your priority is a scriptable one-liner, sprunge-style tools are the closest fit. If you want a browsable, feature-rich paste site, pastebin is broader. If you want a small dual-interface tool with per-paste limits, lesma is the match.

Common snags

  • Non-text files won't work. The service only accepts plain text, so convert or extract the text first.
  • A password-protected link isn't shareable without the password. Send the password through a separate channel.
  • Expiration is in hours. Set it deliberately; a paste that expires too soon is a dead link for a recipient in another time zone.
  • A download count limit can lock out late readers. If several people need the paste, set the limit high enough or leave it off.

For a quick decision: use lesma when you need to hand someone plain text with an optional expiry, password, or download cap, from either a browser or a terminal. Use pastebin, sprunge, or hastebin when their specific strengths — broad features, pure CLI piping, or code-oriented viewing — matter more than lesma's small, dual-interface design.

lesma.eu
Simple paste app friendly with browser and command line.