Bun Installation
BugPin can be installed and run directly with the Bun runtime without Docker. This is the recommended approach for Linux servers where you want full control of the process, lower container overhead, or integration with systemd for automatic startup and log management.
Prerequisites
- Bun 1.4.4, the version BugPin 1.3.0 is built and tested with
- Git (to clone the repository)
- Port 7300 free. The server always listens on port 7300; use a reverse proxy to serve it on another port or domain.
- CPU: 1 core minimum (2 cores recommended for production)
- RAM: 512MB minimum, 1GB recommended for production and when screen recording is enabled. If building on the same machine, 1GB is required as the build step (
bun run build) compiles the Admin Console and widget. - Disk: 1GB minimum for the application and dependencies; additional space depends on screenshot and attachment volume (plan for 10–50MB per 1,000 reports). Screen recording, if you enable it, needs far more: by default a video can be up to 50 MB and each project can receive up to 2 GB of video per day. See Screen Recording.
- Linux, macOS, or Windows (Linux recommended for production)
- For production: a domain name and a reverse proxy that terminates HTTPS. Websites served over HTTPS can only load the widget from an HTTPS BugPin server. See Reverse Proxy Setup.
Installation
1. Clone the Repository
git clone https://github.com/aranticlabs/bugpin.git
cd bugpin
2. Install Dependencies
bun install
3. Build for Production
bun run build
This builds:
- Server (TypeScript compilation)
- Admin Console (React/Vite build)
- Widget (Preact/Vite build)
4. Start the Server
bun run start
BugPin is now running at http://localhost:7300.
5. Login and Choose a New Password
Open http://localhost:7300 and log in with:
- Email:
[email protected] - Password:
changeme123
The initial password works only once. BugPin asks you to choose a new password right after the first login. To use other initial credentials, start the server with them the first time:
[email protected] ADMIN_PASSWORD='a-strong-initial-password' bun run start
Development Mode
For development with hot reload:
# Start both server and admin with hot reload
bun run dev
This runs:
- Server on port 7301 with hot reload
- Admin Console on port 7300 with Vite HMR
Development mode does not require the initial password change, so you can keep logging in with the initial credentials while you work.
Access the admin at http://localhost:7300/admin.
Or start components separately:
bun run dev:server # Server with hot reload (port 7301)
bun run dev:admin # Admin Console with Vite HMR (port 7300)
bun run dev:widget # Widget with watch mode
Available Commands
| Command | Description |
|---|---|
bun run dev | Start development servers (server + admin) |
bun run build | Build all components for production |
bun run start | Start production server |
bun run typecheck | Run TypeScript type checking |
bun run test | Run tests |
bun run migrate | Run database migrations |
Data Directory
BugPin stores data in the ./data directory (relative to where you run BugPin):
data/
├── bugpin.db # SQLite database
├── .secret # Auto-generated key that encrypts authenticator app secrets
└── uploads/ # Uploaded screenshots and attachments
Back up this directory regularly. See Backup and Restore.
Running as a Service
For production deployments, run BugPin as a systemd service, so it starts on boot and restarts after a crash. See the systemd guide.
Updating
Pull the new code, reinstall dependencies, rebuild, and restart. See Upgrading BugPin for the steps, what to back up first, and how to roll back.
Reverse Proxy
For production, place BugPin behind a reverse proxy with HTTPS. See Reverse Proxy Setup for Nginx, Traefik, Caddy, and Apache configurations.
Should You Use Bun or Docker?
| Aspect | Bun | Docker |
|---|---|---|
| Setup complexity | More steps | Simpler |
| Resource usage | Lower overhead | Container overhead |
| Updates | Git pull + rebuild | Docker pull |
| Isolation | Shared system | Containerized |
| Best for | Development, custom setups | Production, simplicity |