A modern, GitHub-style pastebin service built with TypeScript, Express.js, and SQLite.


- 📝 Modern UI: GitHub-inspired design with dark/light theme toggle
- 🎨 Syntax Highlighting: Support for multiple programming languages
- � Line Numbers: Toggle-able pink line numbers with copy functionality
- � Admin Panel: Comprehensive management and activity logging
- 🗄️ Database: SQLite with Prisma ORM for easy development
- 🔒 Security: Rate limiting, CSP headers, and XSS protection
- 📱 Responsive: Mobile-friendly navigation and layout
- 🔍 Search: Full-text search with SQLite compatibility
npm install
# Automated setup (recommended)
npm run db:setup
# Or manual setup
sqlite3 pastebin.db < schema.sql
npm run db:generate
Copy the example environment file:
cp .env.example .env
The .env
file should contain:
DATABASE_URL="file:./pastebin.db"
PORT=3000
SESSION_SECRET=your-super-secret-session-key-change-this-in-production
NODE_ENV=development
npm install
npm run dev
npm start
The server will start on http://localhost:3000
- Port: Set via
PORT
environment variable (default: 3000) - Storage: Currently uses in-memory storage. For production, consider using a database.
- Consider adding rate limiting and input validation for production
- HTTPS is recommended for production deployment
Pastebin by Murr
- Author: Murr (vtstv)
MIT License - see LICENSE file for details.
Copyright (c) 2025 Murr (vtstv)