Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Self-Hosting

The web interface is started with bbscope serve. It provides a full UI for browsing scopes, viewing changes, and querying targets, plus a REST API.

Local development

bbscope serve --dev --listen :8080

The --dev flag enables development mode (e.g., no caching).

Flags

FlagDefaultDescription
--listen:8080Address to listen on
--devfalseDevelopment mode
--poll-interval6Hours between background poll cycles
--domainlocalhostDomain for canonical URLs and sitemap

Environment variables

The web server reads platform credentials from environment variables:

VariableDescription
DB_URLPostgreSQL connection string
DOMAINPublic domain name
POLL_INTERVALHours between poll cycles
H1_USERNAMEHackerOne username
H1_TOKENHackerOne API token
BC_EMAILBugcrowd email
BC_PASSWORDBugcrowd password
BC_OTPBugcrowd TOTP secret
BC_PUBLIC_ONLYSet to any value for Bugcrowd public-only mode
IT_TOKENIntigriti token
YWH_EMAILYesWeHack email
YWH_PASSWORDYesWeHack password
YWH_OTPYesWeHack TOTP secret
OPENAI_API_KEYOpenAI API key for AI normalization
OPENAI_MODELModel name (default: gpt-4.1-mini)

Pages

PathDescription
/Landing page
/programsPaginated program listing with search and filters
/program/{platform}/{handle}Program detail: scope tables, recon links, change timeline
/updatesScope changes feed
/statsCharts: programs by platform, assets by type
/apiInteractive API explorer
/docsBuilt-in feature guide
/debugServer uptime, AI status, poller status per platform
/sitemap.xmlAuto-generated sitemap

Debug endpoint

The /debug page shows:

  • Server uptime
  • AI normalization status (enabled/disabled)
  • Total target count
  • Per-platform poller status: last run time, duration, success/failure/skipped