DebugBundle

Installation

Install DebugBundle SDKs, CLI, or self-host with Docker Compose.

CLI

The CLI is the primary tool for local workflows, project setup, and cloud management.

npm install -g @debugbundle/cli

Verify the installation:

debugbundle --version

Node.js SDK

npm install @debugbundle/sdk-node
import DebugBundle from '@debugbundle/sdk-node';

DebugBundle.init({
  projectToken: 'local',    // or your project token for connected mode
  environment: 'production',
  service: 'my-api',
});

The Node.js SDK includes subpath exports for framework integrations and browser relay handlers:

ImportPurpose
@debugbundle/sdk-nodeCore SDK
@debugbundle/sdk-node/relayGeneric relay handler
@debugbundle/sdk-node/relay/expressExpress relay middleware
@debugbundle/sdk-node/relay/fastifyFastify relay plugin
@debugbundle/sdk-node/relay/nextjsNext.js API route relay

Browser SDK

Via npm:

npm install @debugbundle/sdk-browser
import DebugBundle from '@debugbundle/sdk-browser';

DebugBundle.init({
  projectToken: 'dbundle_proj_...',
  environment: 'production',
  service: 'my-frontend',
  relayUrl: '/debugbundle/browser',  // same-origin relay endpoint
});

Browser events are shipped through a same-origin relay handler on your backend — not directly to the DebugBundle API. See Browser Relay Setup for configuration.


Python SDK

pip install debugbundle
import debugbundle

debugbundle.init(
    project_token="local",
    environment="production",
    service="my-api",
)

Framework integrations for Django, Flask, and FastAPI are included. See the Python SDK guide.


PHP SDK

composer require debugbundle/sdk-php
\DebugBundle\SDK::init([
    'projectToken' => 'local',
    'environment' => 'production',
    'service' => 'my-api',
]);

Framework integrations for Laravel and Symfony are included. See the PHP SDK guide.


Self-Hosting

DebugBundle can be self-hosted with Docker Compose. This gives you a fully functional instance with no external dependencies and no usage limits.

Prerequisites

  • Docker and Docker Compose
  • 2 GB RAM minimum
  • Ports 5291 (web), 3004 (API), 5434 (PostgreSQL), 6380 (Redis), and 4567 (LocalStack) available

Quick Start

git clone https://github.com/debugbundle/debugbundle.git
cd debugbundle/deploy/selfhost
cp .env.example .env  # edit with your settings
docker compose up -d

The self-host stack includes:

ServicePortPurpose
Web5291Dashboard SPA
API3004HTTP API
WorkerBackground processing
PostgreSQL5434Metadata storage
Redis6380Job queue
LocalStack S34567Object storage

See the Self-Hosting Guide for environment variables, health checks, backups, and upgrade procedures.

Next Steps

  • Quickstart — Your first debug bundle in under 5 minutes
  • Node.js SDK — Full configuration and framework integration guide
  • Browser SDK — Breadcrumbs, network capture, session controls
  • CLI Setup — Project scaffolding and configuration

On this page