2025-08-20 19:46:15 +02:00
2025-08-20 19:43:11 +02:00
2025-08-20 17:42:45 +02:00
2025-08-20 17:14:23 +02:00
2025-08-20 17:42:45 +02:00
2025-08-20 14:14:33 +02:00
2025-08-20 16:41:27 +02:00
2025-08-20 14:14:33 +02:00
2025-08-20 19:46:15 +02:00
2025-08-20 14:14:33 +02:00
2025-08-20 17:48:18 +02:00
2025-08-20 18:26:27 +02:00

AltBin.dev

A modern, open-source pastebin built with Next.js 15, TypeScript, and PostgreSQL.
It allows you to create, share, and manage text snippets (pastes) with features like password protection, expiration, and view tracking.


Features

  • 🔑 Password-protected pastes
  • 📊 Dashboard with statistics (views, size, recent pastes, etc.)
  • 🎨 Beautiful UI with TailwindCSS + Shadcn
  • 🌙 Dark mode support
  • 🔐 Discord authentication (via NextAuth)
  • 📥 Download raw pastes or copy directly to clipboard
  • 📈 View counters & limits
  • 🛡️ Secure storage with Prisma + PostgreSQL

🛠️ Tech Stack


Getting Started

1. Clone the repository

git clone https://github.com/YOUR_USERNAME/altbin.dev.git
cd altbin.dev

2. Install dependencies

pnpm install

3. Set up environment variables

Create a .env file in the root of the project:

# Database
DATABASE_URL="postgres://postgres:<password>@<host>:<port>/postgres"

# Discord OAuth
DISCORD_CLIENT_ID=your_discord_client_id
DISCORD_CLIENT_SECRET=your_discord_client_secret

# NextAuth
NEXTAUTH_SECRET=your_super_secret_key
NEXTAUTH_URL=http://localhost:3000

4. Set up the database

Run Prisma migrations:

pnpm prisma migrate dev --name init

Generate the Prisma client:

pnpm prisma generate

5. Start the dev server

pnpm dev

The app should now be running at http://localhost:3000


🚀 Deployment

You can deploy this project on:

  • Vercel
  • Any Node.js hosting provider with PostgreSQL support

Make sure to set your .env variables on the hosting platform.


🤝 Contributing

Pull requests are welcome! If you want to add a feature or fix a bug, feel free to fork the project and open a PR.


📜 License

This project is licensed under the MIT License. You are free to use, modify, and distribute it as you wish.


👨‍💻 Author

Built with ❤️ by UltraLion


S
Description
Easily share text and code snippets with AltBin. A sleek and secure pastebin for developers.
https://altbin.dev
Readme
207 KiB
Languages
TypeScript 98.6%
JavaScript 0.7%
CSS 0.7%