{"_id":"@databuddy/devtools","name":"@databuddy/devtools","dist-tags":{"beta":"0.0.1-beta.0","latest":"0.0.1-beta.0"},"versions":{"0.0.1-beta.0":{"name":"@databuddy/devtools","version":"0.0.1-beta.0","description":"Moveable Databuddy browser devtools overlay","main":"./dist/core/index.mjs","types":"./dist/core/index.d.ts","license":"MIT","private":false,"sideEffects":false,"type":"module","scripts":{"build":"unbuild","check-types":"tsc --noEmit"},"devDependencies":{"@types/bun":"catalog:","@types/react":"catalog:","react":"catalog:","typescript":"catalog:","unbuild":"^3.6.1","vue":"^3.5.33"},"peerDependencies":{"react":">=18","vue":"^3"},"peerDependenciesMeta":{"react":{"optional":true},"vue":{"optional":true}},"exports":{".":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.mjs"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.mjs"},"./vue":{"types":"./dist/vue/index.d.ts","import":"./dist/vue/index.mjs"}},"keywords":["analytics","databuddy","devtools","preact","react","vue"],"homepage":"https://databuddy.cc","repository":{"type":"git","url":"git+https://github.com/databuddy-analytics/databuddy.git"},"bugs":{"url":"https://github.com/databuddy-analytics/databuddy/issues"},"dependencies":{"preact":"^10.29.1"},"gitHead":"bccf7591f7d0e941dafaf4232a5732ee8ca6b5ce","_id":"@databuddy/devtools@0.0.1-beta.0","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-m9cvlTsOosb3Uby8toorfc+gOis/fUAW6ff98U6j5+J+xSDWfhkcozKHmXqT3ZENx1ON5OqTw2kwbJNLZ0WDaQ==","shasum":"949aaa080cc523259093cbe7d4441bbcb7f3c636","tarball":"https://registry.npmjs.org/@databuddy/devtools/-/devtools-0.0.1-beta.0.tgz","fileCount":14,"unpackedSize":141871,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDjoM2l0Tkl+M1nD9WrWvCp91o1CmvosTSgemeI2JMsggIhALb05y4xEXeZ5D1B0UxeAE/dLdTC2uQbLKtO5K91JET8"}]},"_npmUser":{"name":"izadoesdev","email":"contact@databuddy.cc"},"directories":{},"maintainers":[{"name":"izadoesdev","email":"contact@databuddy.cc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/devtools_0.0.1-beta.0_1776971135554_0.6816809222860627"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-23T19:05:35.476Z","0.0.1-beta.0":"2026-04-23T19:05:35.677Z","modified":"2026-04-23T19:05:35.900Z"},"maintainers":[{"name":"izadoesdev","email":"contact@databuddy.cc"}],"description":"Moveable Databuddy browser devtools overlay","homepage":"https://databuddy.cc","keywords":["analytics","databuddy","devtools","preact","react","vue"],"repository":{"type":"git","url":"git+https://github.com/databuddy-analytics/databuddy.git"},"bugs":{"url":"https://github.com/databuddy-analytics/databuddy/issues"},"license":"MIT","readme":"# Databuddy Devtools\n\nMoveable browser overlay for inspecting Databuddy analytics during local development, QA, and previews.\n\n## Install\n\n```sh\nbun add -d @databuddy/devtools\n```\n\n## React\n\n```tsx\nimport { DatabuddyDevtools } from \"@databuddy/devtools/react\";\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n\treturn (\n\t\t<html lang=\"en\">\n\t\t\t<body>\n\t\t\t\t{children}\n\t\t\t<DatabuddyDevtools enabled={process.env.NODE_ENV !== \"production\"} />\n\t\t\t</body>\n\t\t</html>\n\t);\n}\n```\n\nThe overlay observes the current Databuddy browser globals:\n\n- `window.databuddy`\n- `window.db`\n- `window.databuddyConfig`\n\nIt does not require changes to `@databuddy/sdk` or the tracker script.\n\n## Manual Mount\n\n```ts\nimport { mountDatabuddyDevtools } from \"@databuddy/devtools/react\";\n\nconst unmount = mountDatabuddyDevtools({ initialOpen: true });\n```\n\n## Shortcut\n\nPress `Cmd/Ctrl + Shift + D` to toggle the overlay.\n\n## V1 Scope\n\n- Runtime status\n- Client, anonymous, and session IDs\n- Observed `track`, `screenView`, `flush`, and `clear` calls\n- Manual test event, screen view, flush, and clear actions\n- Moveable, minimized overlay with local position persistence\n","readmeFilename":"README.md","_rev":"1-23b5c6e8a0711a97b36a67489d2b67db"}