DebugBundle
Project Setup

Profile Configuration

Configure your project identity, services, and repository metadata in profile.json.

The profile.json file lives at .debugbundle/profile.json and describes your project's identity, services, languages, and deployment targets. It's created automatically by debugbundle setup and can be edited manually.

Schema

{
  "profile_version": "v1",
  "project": {
    "name": "my-app",
    "repo_url": "https://github.com/myorg/my-app",
    "primary_languages": ["TypeScript", "Python"],
    "package_managers": ["pnpm", "pip"],
    "deployment_targets": ["docker-compose", "kubernetes"]
  },
  "services": [
    {
      "name": "api",
      "kind": "backend",
      "runtime": "Node.js",
      "framework": "Fastify",
      "paths": ["apps/api"],
      "owns_routes": ["/v1/events", "/v1/incidents"],
      "depends_on": ["postgres", "redis"]
    },
    {
      "name": "web",
      "kind": "frontend",
      "runtime": "Browser",
      "framework": "React",
      "paths": ["apps/web"],
      "owns_routes": [],
      "depends_on": ["api"]
    }
  ]
}

Project Fields

FieldTypeDescription
profile_versionstringSchema version. Currently "v1".
project.namestringHuman-readable project name. Used as the default cloud project name during debugbundle connect.
project.repo_urlstringRepository URL. Optional but useful for linking incidents to source.
project.primary_languagesstring[]Languages used in the project.
project.package_managersstring[]Package managers (npm, pnpm, yarn, pip, composer).
project.deployment_targetsstring[]Deployment targets (docker-compose, kubernetes, vercel, aws).

Service Fields

Each entry in the services array describes a service in your project:

FieldTypeDescription
namestringService identifier. Must be unique within the project.
kindstringService type: backend, frontend, worker, cli.
runtimestringRuntime environment: Node.js, Python, PHP, Browser.
frameworkstringFramework: Fastify, Express, Next.js, React, Django, Laravel.
pathsstring[]Relative paths to the service's source code.
owns_routesstring[]API routes this service is responsible for.
depends_onstring[]Other services this service depends on (for dependency health checks).

Auto-Detection

debugbundle setup examines your repository to auto-detect:

  • Languages — from file extensions and config files
  • Package managers — from lockfiles (pnpm-lock.yaml, package-lock.json, requirements.txt)
  • Frameworks — from dependencies and config files
  • Services — from directory structure and build configuration

You can always edit the generated profile to add or correct services.

Validation

Validate your profile at any time:

debugbundle doctor

The doctor command checks that:

  • profile.json is valid JSON and conforms to the schema
  • All service paths exist on disk
  • The profile version is supported

Next Steps

On this page