@databuddy/devtools
v0.0.1-beta.0
Published
Moveable Databuddy browser devtools overlay
Downloads
1,066
Maintainers
Readme
Databuddy Devtools
Moveable browser overlay for inspecting Databuddy analytics during local development, QA, and previews.
Install
bun add -d @databuddy/devtoolsReact
import { DatabuddyDevtools } from "@databuddy/devtools/react";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
{children}
<DatabuddyDevtools enabled={process.env.NODE_ENV !== "production"} />
</body>
</html>
);
}The overlay observes the current Databuddy browser globals:
window.databuddywindow.dbwindow.databuddyConfig
It does not require changes to @databuddy/sdk or the tracker script.
Manual Mount
import { mountDatabuddyDevtools } from "@databuddy/devtools/react";
const unmount = mountDatabuddyDevtools({ initialOpen: true });Shortcut
Press Cmd/Ctrl + Shift + D to toggle the overlay.
V1 Scope
- Runtime status
- Client, anonymous, and session IDs
- Observed
track,screenView,flush, andclearcalls - Manual test event, screen view, flush, and clear actions
- Moveable, minimized overlay with local position persistence
