Databuddy DevTools
Databuddy DevTools is a moveable browser overlay for local development, QA, and previews. It observes the Databuddy browser SDK already running on the page.
Installation
bun add -d @databuddy/devtoolsReact
import { DatabuddyDevtools } from "@databuddy/devtools/react";
export function AppShell({ children }: { children: React.ReactNode }) {
return (
<>
{children}
<DatabuddyDevtools enabled={process.env.NODE_ENV !== "production"} />
</>
);
}Manual mount:
import { mountDevtools } from "@databuddy/devtools/react";
const unmount = mountDevtools();Vue
<script setup>
import { DatabuddyDevtools } from "@databuddy/devtools/vue";
</script>
<template>
<RouterView />
<DatabuddyDevtools :enabled="import.meta.env.DEV" />
</template>Manual mount:
import { mountDevtools } from "@databuddy/devtools/vue";
const unmount = mountDevtools();What It Shows
Feature Flags
DevTools reads the browser flag manager created by FlagsProvider or Vue createFlagsPlugin. If no flag manager is mounted, the flag panel will show flags as unavailable.
Flag sources:
Overrides are local only. Clear overrides before validating real flag behavior.
Flag Debugging Workflow
Managing Flags
DevTools can create, update, and delete flag definitions when you paste an API key with manage:flags scope at runtime.
It uses:
The default API host is the active flag manager API URL, falling back to https://api.databuddy.cc. You can override it in the overlay for local or preview environments.
Related
How is this guide?