Event scanner: what gets sent and what is kept

@databuddy/scan finds user actions in your repository that have no analytics event. See exactly what it would send before it sends anything:

npx @databuddy/scan --dry-run          # files and line ranges, sends nothing
npx @databuddy/scan --dry-run --json   # every code segment and the tracking catalog
npx @databuddy/scan src/checkout       # send code only from this folder
  1. Read locally
  2. Send action code
  3. Jev classifies it
  4. Labels come back

Real requests carry the same data as --dry-run --json, in batches of up to four segments. With your own gateway key they also include the scanner's fixed classification instructions. Before sending, the CLI prints where the code is going and how many files it comes from.

With a folder, it still reads the rest of the repository locally to find existing tracking. It sends that only as event names and file:line references, so actions tracked elsewhere aren't reported as missing.

Check what is sent

CodeSent
JavaScript, TypeScript, Vue, Svelte, Astro, HTMLOnly the code around each action: the handler, the functions it calls, and the route it posts to
PythonOnly decorated write routes (FastAPI, Flask or Django POST, PUT, PATCH, DELETE), each as its own function
Swift, and files it can't parseWhole files
Files not tracked by Git, including .envNever
Tests, fixtures, examples, e2e, Cypress and Playwright foldersNever
Symlinks, and files with a private key, a JWT, a password in a connection URL, or a common provider credential (AWS, Stripe, OpenAI, Anthropic, GitHub, GitLab, Slack, Google, Vercel, npm, Resend, SendGrid, Databuddy)Never

Secret detection is a safeguard, not a guarantee. Review --dry-run for repositories with unusual credential formats.

The CLI reads the repository root's .env only for AI_GATEWAY_API_KEY. It checks .env.local, .env.development and .env.production in the root and the working folder for that variable too, only to tell whether a key came from the repository.

Know where it goes

Requests go to Databuddy's scan API at api.databuddy.cc, which forwards them to the Jev model (typesafe-ai/jev) on Vercel AI Gateway. Every call requires zero data retention, which limits routing to providers that don't keep prompts or outputs.

The API holds your code in memory only while it answers. It doesn't write source to logs, databases, caches or error reports, or use it to train models. It returns only classification labels, never generated text.

See what Databuddy records

RecordedContents
Request logs (routine successes are sampled)Method, path, status, duration, request size, user agent such as node, a random run ID, CLI version, segment count, gateway status and timing, input tokens, and how many findings were missing or covered
scan_run_started event in Databuddy's own analyticsThe run ID and CLI version, on the first answered request of each run
Rate limit keyYour IP hashed with a key derived from a server secret, expiring with its window; the IP itself isn't logged or stored

Nothing recorded contains source code, file paths, repository names, Git remotes or account details. Logs are processed by Axiom and Sazabi.

Limit
Per IP600 requests a minute, 5,000 a day
Shared hosted capacityWhen used up, 429 until midnight UTC; the CLI suggests your own key

Keep your code off Databuddy

AI_GATEWAY_API_KEY=your-vercel-gateway-key npx @databuddy/scan

With your own Vercel AI Gateway key, in your shell or the repository's .env, requests go straight to your Vercel account with zero data retention, and Databuddy receives nothing. A key in the repository's .env bills whoever owns it, so the CLI says when the key came from there.

Clear the local cache

Results are cached in ~/.cache/databuddy/scan, or $XDG_CACHE_HOME/databuddy/scan, so unchanged code isn't sent again. The cache holds scanned files with their hashes, tracking calls found, action locations and classifications. Delete the folder to clear it. The scanner never edits your repository, and it's MIT licensed.

How is this guide?