Integrate Databuddy analytics using the SDK, REST API, or MCP.

AGPL-3.0Auto-check passedBackend & APIs

Install Databuddy

skills CLI
$ npx skills add databuddy-analytics/Databuddy --skill databuddy -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install databuddy-analytics/Databuddy databuddy --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/databuddy-analytics/Databuddy.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/databuddy .claude/skills/databuddy && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
databuddy
GitHub stars
1.2k
Token cost
~2.1k tokens
SKILL.md length
543 words
Files
7 (incl. references)
Skills in repo
8
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Integrate Databuddy analytics using the SDK, REST API, or MCP.

  • Implementing analytics tracking
  • SKILL.md covers External Documentation, When to Use This Skill, SDK Entry Points and Quick Start, plus 5 more sections
  • Calls curl; reaches api.databuddy.cc and basket.databuddy.cc; needs DATABUDDY_API_KEY
  • LLM observability

What it does

Databuddy is an agent skill from databuddy-analytics/Databuddy. Integrate Databuddy analytics using the SDK, REST API, or MCP. Use when implementing analytics tracking, feature flags, custom events, Web Vitals, error tracking, LLM observability, MCP agents, or querying analytics data programmatically.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `references/ai-vercel.md`, `references/api.md` and `references/core.md`).

It sits in Backend & APIs, covering Product analytics, REST APIs and Web performance. It works with Model Context Protocol, Next.js, React and Node.js. The repository describes itself as: Open-source product analytics for startups: track visitors, events, funnels, and goals without cookies, and ask Databunny, the built-in AI analyst. Uptime, feature flags, and… The licence is AGPL-3.0.

When your agent uses it

  • Implementing analytics tracking
  • LLM observability
  • Querying analytics data programmatically

Example prompts

  • “/databuddy”

Requirements

  • Node.js
  • A credential in DATABUDDY_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit 5f63610. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.databuddy.cc
    • basket.databuddy.cc

    Also links to:

    • databuddy.cc

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • DATABUDDY_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Databuddy loads about 2.1k tokens when it runs, and up to ~10k if it reads all its reference files. Until then it costs about 62 tokens; SKILL.md has 543 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~10k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from databuddy-analytics/Databuddy at commit 5f63610, republished under its AGPL-3.0 licence (© databuddy-analytics). 543 words, ~2,087 tokens.

Download SKILL.mdSave it as .claude/skills/databuddy/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
databuddy
description
Integrate Databuddy analytics using the SDK, REST API, or MCP. Use when implementing analytics tracking, feature flags, custom events, Web Vitals, error tracking, LLM observability, MCP agents, or querying analytics data programmatically.
metadata.author
databuddy
metadata.version
2.3

Databuddy

Databuddy is a privacy-first analytics platform. This skill covers both the SDK (@databuddy/sdk) and the REST API.

External Documentation

For the most up-to-date documentation, fetch: https://databuddy.cc/llms.txt

When to Use This Skill

Use this skill when:

  • Setting up analytics in React/Next.js/Vue applications
  • Implementing server-side tracking in Node.js
  • Adding feature flags to an application
  • Tracking custom events, errors, or Web Vitals
  • Integrating LLM observability with Vercel AI SDK
  • Querying analytics data via the REST API or MCP
  • Building MCP agents or AI-powered analytics workflows
  • Building custom dashboards or reports

SDK Entry Points

Import PathEnvironmentDescription
@databuddy/sdkBrowser (Core)Core tracking utilities and types
@databuddy/sdk/reactReact/Next.jsReact component and hooks
@databuddy/sdk/nodeNode.js/ServerServer-side tracking with batching
@databuddy/sdk/vueVue.jsVue plugin and composables
@databuddy/sdk/ai/vercelAI/LLMVercel AI SDK middleware for LLM analytics

Quick Start

React/Next.js
tsx
import { Databuddy } from "@databuddy/sdk/react";

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        {children}
        <Databuddy
          clientId={process.env.NEXT_PUBLIC_DATABUDDY_CLIENT_ID}
          trackWebVitals
          trackErrors
          trackPerformance
        />
      </body>
    </html>
  );
}
Node.js Server-Side
typescript
import { Databuddy } from "@databuddy/sdk/node";

const client = new Databuddy({
  clientId: process.env.DATABUDDY_CLIENT_ID,
  enableBatching: true,
});

await client.track({
  name: "api_call",
  properties: { endpoint: "/users", method: "GET" },
});

// Important: flush before process exit in serverless
await client.flush();
Feature Flags
tsx
import { FlagsProvider, useFlag, useFeature } from "@databuddy/sdk/react";

// Wrap your app
<FlagsProvider clientId="..." user={{ userId: "123" }}>
  <App />
</FlagsProvider>

// In components
function MyComponent() {
  const { on, loading } = useFeature("dark-mode");
  if (loading) return <Skeleton />;
  return on ? <DarkTheme /> : <LightTheme />;
}
LLM Analytics
typescript
import { databuddyLLM } from "@databuddy/sdk/ai/vercel";
import { openai } from "@ai-sdk/openai";

const { track } = databuddyLLM({
  apiKey: process.env.DATABUDDY_API_KEY,
});

const model = track(openai("gpt-4o"));
// All LLM calls are now automatically tracked

Key Configuration Options

OptionTypeDefaultDescription
clientIdstringAuto-detectProject client ID
disabledbooleanfalseDisable all tracking
trackWebVitalsbooleanfalseTrack Web Vitals metrics
trackErrorsbooleanfalseTrack JavaScript errors
trackPerformancebooleantrueTrack performance metrics
enableBatchingbooleantrueEnable event batching
samplingRatenumber1.0Sampling rate (0.0-1.0)
skipPatternsstring[]—Glob patterns to skip tracking

Common Patterns

Disable in Development
tsx
<Databuddy
  disabled={process.env.NODE_ENV === "development"}
  clientId="..."
/>
Skip Sensitive Paths
tsx
<Databuddy
  clientId="..."
  skipPatterns={["/admin/**", "/internal/**"]}
  maskPatterns={["/users/*", "/orders/*"]}
/>
Custom Event Tracking
typescript
// Browser
import { track } from "@databuddy/sdk/react";

track("purchase", {
  product_id: "sku-123",
  amount: 99.99,
  currency: "USD",
});

// Node.js
await client.track({
  name: "subscription_renewed",
  properties: { plan: "pro", amount: 29.99 },
});
Global Properties
typescript
// Browser
window.databuddy?.setGlobalProperties({
  plan: "enterprise",
  abVariant: "checkout-v2",
});

// Node.js
client.setGlobalProperties({
  environment: "production",
  version: "1.0.0",
});

REST API

Base URLs
ServiceURLPurpose
Analytics APIhttps://api.databuddy.cc/v1Query analytics data
Event Trackinghttps://basket.databuddy.ccSend custom events
Authentication

Use API key in the x-api-key header:

bash
curl -H "x-api-key: dbdy_your_api_key" \
  https://api.databuddy.cc/v1/query/websites

Get API keys from: Dashboard → Organization Settings → API Keys

Query Analytics Data
bash
curl -X POST -H "x-api-key: dbdy_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": ["summary", "pages"],
    "preset": "last_30d"
  }' \
  "https://api.databuddy.cc/v1/query?website_id=web_123"

Available Query Types:

TypeDescription
summaryOverall website metrics and KPIs
pagesPage views and performance by URL
trafficTraffic sources and referrers
browser_nameBrowser usage breakdown
device_typesDevice category breakdown
countriesVisitors by country
errorsJavaScript errors
performanceWeb vitals and load times
custom_eventsCustom event data

Date Presets: today, yesterday, last_7d, last_30d, last_90d, this_month, last_month

Show full SKILL.md (238 more words)Show less
MCP (Model Context Protocol)

Databuddy exposes an MCP server for AI agents (Claude, Claude Code, Cursor, Windsurf, etc.) to query analytics, read investigations, and manage goals, funnels, annotations, flags, and links. Use for analytics questions, automated reports, or structured data extraction.

Endpoint: POST https://api.databuddy.cc/v1/mcp (local: http://localhost:3001/v1/mcp)

Auth: Claude and Claude Code sign in with a Databuddy account (OAuth), no key needed. Other clients, including Cursor, send an API key via x-api-key or Authorization: Bearer <key>. read:data covers analytics and reads; add manage:websites for goal, funnel, annotation, and investigation-reply writes, manage:flags for flag mutations, and organization-wide read:links (link reads) plus write:links (link mutations) for short links. Tools the key lacks scopes for are hidden from tools/list.

Tools: Use the live tools/list and the databuddy://guide resource; see https://www.databuddy.cc/docs/api/mcp for the full list. Start with list_websites, capabilities, and get_data.

Dates for get_data: a preset such as last_7d, last_30d, last_90d, today, or yesterday, or both from and to. Defaults to last_30d.

Cursor setup (mcp.json): Add a Databuddy MCP entry with the API URL and your API key in the x-api-key header.

Send Events via API
bash
curl -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "type": "custom",
    "name": "purchase",
    "properties": {
      "value": 99.99,
      "currency": "USD"
    }
  }' \
  "https://basket.databuddy.cc/?client_id=web_123"
Batch Events
bash
curl -X POST \
  -H "Content-Type: application/json" \
  -d '[
    {"type": "custom", "name": "event1", "properties": {...}},
    {"type": "custom", "name": "event2", "properties": {...}}
  ]' \
  "https://basket.databuddy.cc/batch?client_id=web_123"

Reference Documentation

For detailed documentation, see:

Source Code

  • SDK: packages/sdk/
  • API: apps/api/
  • API Docs: apps/docs/content/docs/api/

© databuddy-analytics, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (references) in .cursor/skills/databuddy of databuddy-analytics/Databuddy.

  • SKILL.md
  • references/ai-vercel.md
  • references/api.md
  • references/core.md
  • references/flags.md
  • references/node.md
  • references/react.md

Open the folder on GitHubat commit 5f63610

Compare with similar skills

Databuddy next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Databuddy compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Databuddy this skilldatabuddy-analytics/Databuddy1.2k—~2.1kAutomated safety check: PassAGPL-3.0
Domscribepatchorbit/domscribe193—~3.3kAutomated safety check: NotesMIT
Add React Analyticsgotempsh/temps826—~2.7kAutomated safety check: PassApache-2.0
OpenAPI to MCP Servermcp-use/mcp-use11k—~5.2kAutomated safety check: PassApache-2.0
Nextcrmpdovhomilja/nextcrm-app712—~3.3kAutomated safety check: PassMIT
Scaffold ProjectMarve10s/Better-Fullstack752—~716Automated safety check: PassMIT

Similar skills

  • Domscribe

    patchorbit/domscribe

    Work with Domscribe — the pixel-to-code bridge. An agent skill from patchorbit/domscribe.

    193 GitHub stars~3.3k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check: notes
  • Add React Analytics

    gotempsh/temps

    Add Temps analytics to React applications with comprehensive tracking capabilities including page views, custom events, scroll tracking, engagement monitoring, session recording, and Web Vitals…

    826 GitHub stars~2.7k tokensUpdated today
    DevOps & CloudAuto-check passed
  • OpenAPI to MCP Server

    mcp-use/mcp-use

    Turns an OpenAPI or Swagger spec into an MCP server with the mcp-use TypeScript SDK, mapping each operation to a tool, wiring auth, testing and deploying.

    11k GitHub stars~5.2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Nextcrm

    pdovhomilja/nextcrm-app

    Connect to NextCRM MCP server to manage CRM data — accounts, contacts, leads, opportunities, targets, products, contracts, activities, documents, target lists, enrichment, email accounts, campaigns…

    712 GitHub stars~3.3k tokensUpdated 3 days ago
    Sales & SupportAuto-check passed
  • Scaffold Project

    Marve10s/Better-Fullstack

    Scaffold a new app, API, backend, fullstack project, mobile app, polyglot service, monorepo, or starter with Better Fullstack.

    752 GitHub stars~716 tokensUpdated today
    DevelopmentAuto-check passed
  • Context7 MCP

    rtadewald/skills

    This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples.

    180 GitHub stars~681 tokensUpdated 9 days ago
    DatabasesAuto-check passed

More from databuddy-analytics/Databuddy

All 8 skills in this repo
  • Chat SDK

    databuddy-analytics/Databuddy

    Build multi-platform chat bots with Chat SDK (chat npm package).

    1.2k GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed
  • Databuddy

    databuddy-analytics/Databuddy

    Help external users integrate Databuddy into their own apps.

    1.2k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Typescript Bun Drizzle Quality

    databuddy-analytics/Databuddy

    Build or review Bun fullstack TypeScript code with Drizzle-backed SQL.

    1.2k GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Vertical Slices

    databuddy-analytics/Databuddy

    Design, implement, and review software using vertical slices (feature-first architecture) instead of horizontal layers.

    1.2k GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Databuddy Internal

    databuddy-analytics/Databuddy

    Work inside the Databuddy monorepo for internal implementation, debugging, review, and refactoring.

    1.2k GitHub stars~11k tokensUpdated yesterday
    Auto-check: notes
  • Databuddy MCP

    databuddy-analytics/Databuddy

    A skill your agent uses whenever the Databuddy MCP server is available and the user wants analytics, errors, vitals, investigations, flags, links, annotations, funnels, or goals queried or changed.

    1.2k GitHub stars~711 tokensUpdated yesterday
    Auto-check passed

Questions about Databuddy

What does Databuddy do?

Integrate Databuddy analytics using the SDK, REST API, or MCP. Databuddy is an agent skill from databuddy-analytics/Databuddy. Integrate Databuddy analytics using the SDK, REST API, or MCP.

When should I use Databuddy?

Databuddy fits situations like: implementing analytics tracking; LLM observability; querying analytics data programmatically.

How do I install Databuddy in Claude Code?

Run `npx skills add databuddy-analytics/Databuddy --skill databuddy -a claude-code`. Or copy the skill folder (.cursor/skills/databuddy in databuddy-analytics/Databuddy) into .claude/skills/databuddy in your project. Claude Code loads it when a task matches its description.

How do I install Databuddy in Codex?

Run `npx skills add databuddy-analytics/Databuddy --skill databuddy -a codex`. Or copy the skill folder (.cursor/skills/databuddy in databuddy-analytics/Databuddy) into .agents/skills/databuddy in your project. Codex loads it when a task matches its description.

Can I use Databuddy in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add databuddy-analytics/Databuddy --skill databuddy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/databuddy, .gemini/skills/databuddy, .github/skills/databuddy and .opencode/skills/databuddy in your project.

What does Databuddy need to run?

Going by SKILL.md and its folder, Databuddy needs the command-line tools its instructions call (curl) and credentials named DATABUDDY_API_KEY. Our summary lists: Node.js; A credential in DATABUDDY_API_KEY.

Does Databuddy access the network?

SKILL.md names 3 domains. In commands or code: api.databuddy.cc and basket.databuddy.cc; the agent is likely to contact these when it follows the instructions. As links in the text: databuddy.cc. This is read from the text; nothing was executed.

Is Databuddy safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Databuddy use?

Databuddy is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Databuddy use?

About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.4k tokens, read only when the agent opens those files.

What are the alternatives to Databuddy?

Skills that share tags, products or a category with Databuddy: Domscribe (patchorbit/domscribe, 193 stars), Add React Analytics (gotempsh/temps, 826 stars), OpenAPI to MCP Server (mcp-use/mcp-use, 11k stars) and Nextcrm (pdovhomilja/nextcrm-app, 712 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Databuddy?

databuddy-analytics (a GitHub organization) maintains it in databuddy-analytics/Databuddy, which has 1,177 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 7, 2026.

Source: databuddy-analytics/Databuddy on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.