Skip to content
PluginStats

@databuddy/sdk weekly downloads statistics

By databuddy · npm · MCP servers

Databuddy SDK: hosted, cookieless product analytics with custom events, feature flags, and error tracking for React, Next.js, Vue, and Node.js.

View on npm Fresh · Dec 6, 2026

@databuddy/sdk has 32,630 recorded weekly downloads on npm, an increase of 10.8% over the past 30 days, ranking #904 of 3,247 tracked listings.

Weekly downloads
32,630
Official API · Dec 5, 2026
7-day growth
-18.4%
-7.3K weekly downloads
30-day growth
+10.8%
+3.2K weekly downloads
90-day growth
+39.7%
+9.3K weekly downloads
Rank
#904
▼ 91 in 7 days

About @databuddy/sdk

Databuddy SDK

npm version License Docs

Hosted product analytics for your web app: pageviews, custom events, funnels, feature flags, and errors, without cookies.


Features

  • Automatic page and screen view tracking
  • Web Vitals and JavaScript error tracking
  • Custom events from the browser and from Node.js
  • Drop-in React/Next.js and Vue components
  • Client and server-side feature flags
  • MCP server analytics covering tool calls, clients, latency, and errors
  • Server-side detection of AI agents that read your pages
  • No cookies, with sampling, batching, and path masking options
  • Type-safe configuration with autocompletion

Quickstart

bun add @databuddy/sdk
# or
npm install @databuddy/sdk

Add the provider to your root layout (Next.js/React):

import { DatabuddyProvider } from '@databuddy/sdk/react';

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>
        <DatabuddyProvider
          clientId={process.env.NEXT_PUBLIC_DATABUDDY_CLIENT_ID!}
          autocapture={{ webVitals: true, errors: true }}
        />
        {children}
      </body>
    </html>
  );
}

Without children the provider only loads tracking. To also link events to the signed-in user and serve feature flags, wrap your app and pass the user, or null when signed out:

<DatabuddyProvider
  clientId={process.env.NEXT_PUBLIC_DATABUDDY_CLIENT_ID!}
  user={user ? { id: user.id, traits: { email: user.email, plan: user.plan } } : null}
  userPending={isPending}
>
  {children}
</DatabuddyProvider>

The provider calls identify() and reset() for you as user changes. Omit user to manage identity yourself.

Track custom events from anywhere in the browser:

import { track, trackError } from '@databuddy/sdk';

track('signup_completed', { plan: 'pro' });
trackError(error, { page: '/checkout' });

Declare your events to type-check track():

import '@databuddy/sdk';

declare module '@databuddy/sdk' {
  interface Events {
    signup_completed: { plan: 'free' | 'pro' };
  }
}

Without React, call init() once on the client:

import { init } from '@databuddy/sdk';

init({ clientId: 'your-client-id', autocapture: { errors: true } });

Upgrading from an earlier 3.x API? Existing code keeps working; see the upgrade guide.


Accounts

Put each visitor in the company or workspace they're working in. Their events and flags are then grouped by that account. With React, pass it to the provider:

<DatabuddyProvider
  clientId={process.env.NEXT_PUBLIC_DATABUDDY_CLIENT_ID!}
  user={user}
  groups={{ workspace: workspace?.id }}
>
  {children}
</DatabuddyProvider>

Leave a type undefined while its account loads, so the remembered one is kept. Pass null once the visitor has left it.

Without the provider, call group() once you know the account:

import { getGroups, group } from '@databuddy/sdk';

group('workspace', workspace.id, { name: workspace.name });
group('workspace', null); // when they leave it or sign out

getGroups(); // { workspace: 'ws_123' }

Later events carry group_workspace, and the SDK remembers the account across visits. Billing, date and usage traits are accepted only from your server: send them with the Node SDK's client.group(). See the accounts guide.

Feature flags

Declare each flag once with its default, then read it inside DatabuddyProvider. useFlag returns the typed value and never undefined: the default is served until flags load, when the flag is missing, and on errors.

import { defineFlag } from '@databuddy/sdk';
import { useFlag, useFlagDetails } from '@databuddy/sdk/react';

export const newCheckout = defineFlag('new-checkout', { default: false });

function Checkout() {
  const enabled = useFlag(newCheckout);
  return enabled ? <NewCheckout /> : <OldCheckout />;
}

useFlagDetails(flag) adds loading, status, variant and reason, and useFlagsStatus() returns { isReady, error, refresh }. Flags load the first time a component reads one, or render with real values from the server when you pass flags={{ bootstrap: await evaluateFlags({ clientId, user }) }} (from @databuddy/sdk/node). Configure them with the provider's flags prop: flags={{ environment: 'production', persist: false }}.

Node.js events

import { Databuddy } from "@databuddy/sdk/node";

const client = new Databuddy({
  apiKey: process.env.DATABUDDY_API_KEY!,
  websiteId: process.env.DATABUDDY_WEBSITE_ID,
  source: "server"
});

await client.track({
  name: "job_completed",
  eventId: "job-123",
  properties: { queue: "emails" }
});

const result = await client.flush();
if (!result.success) {
  console.error("Failed to flush analytics:", result.error);
}

MCP servers

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { trackMcp } from "@databuddy/sdk/mcp";

const server = trackMcp(new McpServer({ name: "my-server", version: "1.0.0" }));
```…

Description from the npm listing.

  • analytics
  • product-analytics
  • web-analytics
  • cookieless
  • feature-flags
  • error-tracking
  • tracking
  • databuddy
  • sdk
  • react
  • nextjs
  • vue
  • node
  • mcp
  • source-maps
  • vite-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@databuddy/sdk weekly downloads on npm, last 90 days: 32,630 weekly downloads as of Dec 5, 2026, +39.7% over 90 days.@databuddy/sdkWeekly downloads on npm · Last 90 days32,630downloads / week+39.7% over 90 days010K20K30K40K50KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@databuddy/sdk weekly downloads on npm, last 90 days: 32,630 weekly downloads as of Dec 5, 2026, +39.7% over 90 days.

7/30/90-day growth

@databuddy/sdk weekly downloads growth on npm: -18.4% over 7 days, +10.8% over 30 days, +39.7% over 90 days.@databuddy/sdkWeekly downloads growth on npm32,630downloads / week now7-day growth-7,336 weekly downloads-18.4%30-day growth+3,173 weekly downloads+10.8%90-day growth+9,277 weekly downloads+39.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@databuddy/sdk weekly downloads growth on npm: -18.4% over 7 days, +10.8% over 30 days, +39.7% over 90 days.

Ranking history

@databuddy/sdk npm ranking history: currently #904 (by weekly downloads).@databuddy/sdknpm ranking · by weekly downloads · Last 90 days#904current rank#200#300#400#500#600#700#800#900#1000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
@databuddy/sdk npm ranking history: currently #904 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 46, #4 (overall #904)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 8, #3 (overall #143)
MCP servers: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (592)
Recent weekly downloads observations for @databuddy/sdk
Date (UTC)Weekly downloadsChange vs. previous
32,630-2.8K
35,469-72
35,541+747
34,794-5K
39,819+503
39,316-203
39,519-447
39,966-157
40,123+2.1K
38,050-1.6K
39,652+4.3K
35,303-1.2K
36,454+1.9K
34,512—

Similar npm MCP servers plugins

All 20 @databuddy/sdk alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@databuddy/sdk. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.