The databuddy module adds an Analytics component to apps/web and apps/dashboard that renders the @databuddy/sdk script with web vitals on. It is off by default.
findplate create my-app --modules databuddyWhat it adds
Files and folders:
apps/web/components/analytics.tsxapps/dashboard/components/analytics.tsx
Packages:
@databuddy/sdk
Env keys
NEXT_PUBLIC_DATABUDDY_CLIENT_ID=Create a website in Databuddy and set its client id. With the id empty nothing is tracked. NEXT_PUBLIC_* is inlined at next build, so pass it as a build arg in Docker and Dokploy.
Remove
Run findplate remove databuddy in the project, see add and doctor. It deletes the files the module owns, strips its code from shared files and drops its packages, only where you haven't edited them.
If you'd rather do it by hand: for a new project leave databuddy out of --modules. In a project that already exists, delete the paths above, drop its packages from the package.json files, remove its env block and fix what pnpm check-types reports.
Swap
Use Umami for a self-hosted alternative. The two do not depend on each other.