A minimalist pastebin and URL shortener written in rust.
Open the homepage, paste your text, and click Save.
$ curl -F '[email protected]' https://bin.example.com/
$ curl -F '[email protected]' -F 'expires_in=3600' https://bin.example.com/Optional field: expires_in accepts never or a positive number of seconds.
You may want to use this friendly wrapper instead.
Open /{id} to view a paste and /{id}/raw for plain text. CLI clients like curl always receive plain text.
Syntax highlighting is automatic based on the file extension. You can also append an extension to the paste URL:
https://bin.example.com/abc123def4.rsLine links are available with fragments such as #L12 or #L12-L20.
Paste a URL on its own to create a short link. Visiting the short URL will redirect to the original.
$ echo 'https://example.com' | curl -F 'file=@-' https://bin.example.com/