SDK reference

Databuddy DevTools

Add an overlay to your app in development to see what the Databuddy SDK on the page is sending. Open it with Cmd/Ctrl + Shift + D.

bun add -d @databuddy/devtools
app/app-shell.tsx
import { DatabuddyDevtools } from "@databuddy/devtools/react";

export function AppShell({ children }: { children: React.ReactNode }) {
  return (
    <>
      {children}
      <DatabuddyDevtools enabled={process.env.NODE_ENV !== "production"} />
    </>
  );
}

See what the SDK is doing

PanelShows
StatusWhether the tracker runs, and diagnostics when it doesn't
IdentityClient, anonymous and session IDs, URL attribution parameters and storage keys
Eventstrack, screenView, flush and clear calls, global properties, queue lengths and flush state
FlagsReadiness, config, user context, values, variants, reasons and where each value came from

Debug a feature flag

The flag panel reads the flag manager DatabuddyProvider creates when a component first reads a flag, or the one Vue's createFlagsPlugin mounts.

SourceMeans
serverEvaluated by the flags API
cacheA cached answer
defaultThe flag's default
errorEvaluation failed
overrideForced locally in DevTools

Check the client ID, environment and user context first, then the source. Test each branch with a local override, and clear overrides before checking real behavior.

Edit flag definitions

Paste an API key with the manage:flags scope into the overlay to create, edit and delete flags. It uses the flags API at the active flag manager's URL, or https://api.databuddy.cc, and you can change the host for preview environments.

Never hard-code a flag management key. DevTools keeps a pasted key in session storage and clears it when you disconnect.

How is this guide?