Sign up
newpaste anywhere on this page to start a bin
{

Paste code.
Get a link.

}

Syntax highlighting, optional expiry, raw links. No account needed to paste.

Nnew binctrlVpaste to start
1// fetch a bin by id
2export async function getBin(id) {
3 const res = await fetch(`/api/bins/${id}`);
4 if (!res.ok) throw new Error("not found");
5 return res.json();
6}
8const bin = await getBin("k3x9Qa");
paste.synz.xyz/k3x9Qajavascript8 lines · 206 B
expires

Small on purpose.

four things, done properly
fn main() { println!("hi"); }
HighlightingLanguage is auto-detected. Override it from the picker.
expires in6d 23h
1h · 1d · 7dnever · burn
ExpiryFrom an hour to never. Burn deletes it after the first view.
getBin.js2m
config.py1d
main.rs4d
AccountOptional. Log in to keep, edit and delete your bins.
LinksShort share URL, one-click copy, raw text and download.
from the terminal

Pipe anything in. Curl it back out.

Every bin has a raw URL, so scripts and bots can read it without parsing HTML.

API reference →
$ cat app.js | curl -sF 'file=@-' paste.synz.xyz
https://paste.synz.xyz/k3x9Qa
$ curl paste.synz.xyz/raw/k3x9Qa
export async function getBin(id) { …