Skip to main content

Welcome to Solute SDK

Solute SDK is a lightweight, TypeScript-first analytics SDK that tracks user events and enables A/B testing. Similar to PostHog or Amplitude, but designed specifically for the Solute platform.

Get Started

Install and set up the SDK in minutes

Quick Start

Start tracking events and using feature flags

Next.js Integration

First-class Next.js App Router support

API Reference

Complete API documentation

Features

Track custom events, page views, and user actions with automatic context enrichment. Queue events when offline and sync when back online.
Run experiments with feature flags and variants. Consistent user assignment and percentage-based rollouts.
Identify and track users across sessions with support for anonymous and identified users.
Full TypeScript support with comprehensive type definitions for all SDK methods.
Less than 20KB gzipped. Optimized for performance with minimal bundle size impact.
Works with vanilla JS, React, Next.js, and more. First-class Next.js App Router integration.

Quick Example

import { SoluteClient } from '@solute-ai/sdk';

const solute = new SoluteClient({
  apiKey: 'your_api_key',
  host: 'https://api.solute.dev',
});

// Track events
solute.track('Button Clicked', {
  button_id: 'signup-cta',
  page: '/homepage',
});

// Check feature flags
if (solute.isFeatureEnabled('new-checkout')) {
  // Show new checkout flow
}

Installation

npm install @solute-ai/sdk
# or
yarn add @solute-ai/sdk
# or
pnpm add @solute-ai/sdk

Ready to get started?

Follow our installation guide to set up the SDK in your project.