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
- 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
docker build -t pastebin .
docker run -d -p 3000:3000 pastebin
The sqlite file stored in the docker container.
pnpm install
pnpm build
export DATABASE_URL="file:/path/to/sqlite.db"
pnpm prisma generate
pnpm prisma migrate deploy
node .output/server/index.mjs
- Nuxt 3 for the frontend and simple backend. Nuxt UI and Color-Mode plugins are used
- Monaco Editor for the code editor
- Shiki for the syntax highlighting
- Fuse.js for the search functionality
- Prisma for the database ORM with SQLite
pnpm install
pnpm dev