Skip to main content

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:

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​

CommandDescription
bun run devStart development servers (server + admin)
bun run buildBuild all components for production
bun run startStart production server
bun run typecheckRun TypeScript type checking
bun run testRun tests
bun run migrateRun 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?​

AspectBunDocker
Setup complexityMore stepsSimpler
Resource usageLower overheadContainer overhead
UpdatesGit pull + rebuildDocker pull
IsolationShared systemContainerized
Best forDevelopment, custom setupsProduction, simplicity

Next Steps​

  1. Run BugPin as a systemd service
  2. Put BugPin behind a reverse proxy with HTTPS
  3. Add the widget to your site
  4. Set up backups
  5. Configure settings in Admin Console

We use cookies for analytics to improve our website. More information in our Privacy Policy.