Features
Privacy-First
No cookies, respects DNT, compliant with GDPR/CCPA out of the box
Lightweight
< 5KB gzipped browser bundle with zero dependencies
Framework Support
First-class support for React, Vue, Next.js, and vanilla JS
Server-Side
Node.js SDK for backend tracking and API events
Auto-Tracking
Automatic page views, web vitals, errors, and scroll depth
Type-Safe
Full TypeScript support with intelligent autocomplete
Quick Start
Platform Guides
JavaScript
Vanilla JavaScript for any web project
React
React hooks and components for Next.js and React apps
Vue
Vue composables and plugins for Vue 3 apps
Node.js
Server-side tracking for APIs and backend services
Package Structure
The SDK is published as a single package with multiple entry points:@databuddy/sdk- Core browser SDK@databuddy/sdk/react- React integration@databuddy/sdk/vue- Vue integration@databuddy/sdk/node- Node.js server-side SDK
Core Concepts
Events
Track custom events with properties:Automatic Tracking
Enable automatic tracking of common metrics:Session Management
Each user gets:- Anonymous ID - Persists across sessions (localStorage)
- Session ID - Expires after 30 min of inactivity (sessionStorage)
Privacy Controls
TypeScript Support
The SDK is written in TypeScript with full type definitions:Browser Support
- Chrome/Edge 90+
- Firefox 88+
- Safari 14+
- iOS Safari 14+
- Samsung Internet 15+
Next Steps
Installation
Detailed installation guide for all platforms
Configuration
Complete configuration options reference
React Guide
Learn about React hooks and components
Node.js Guide
Server-side tracking for backend applications