Skip to content

A nice looking Pastebin that just works great. Play with the demo ↓

Notifications You must be signed in to change notification settings

liuzhch1/paste-bin

Repository files navigation

J's Pastebin

It's too annoying to send code snippet files through Airdrop or whatever, so I made this.

Try it out: https://pastebin-6zr.pages.dev

Features

  • Dark / Light mode
  • Code highlight with themes
  • Really short paste link, starting with one letter: /pastes/a
  • VSCode like editor(Monaco)
  • Search all pastes
  • Nice looking UI
  • Export data supported

Screenshot

screenshot

Deploy

With Docker

docker build -t pastebin .
docker run -d -p 3000:3000 pastebin

The sqlite file stored in the docker container.

Locally

pnpm install
pnpm build
export DATABASE_URL="file:/path/to/sqlite.db"
pnpm prisma generate
pnpm prisma migrate deploy
node .output/server/index.mjs

Tech stack

Development

pnpm install
pnpm dev

Hits