Skip to main content
Suada provides official SDKs for multiple platforms and frameworks to help you integrate business analytics into your applications. Choose the SDK that best matches your tech stack:

Available SDKs

Frontend SDKs

React SDK

Build interactive analytics interfaces in React applications
  • React 18+ support
  • Custom hooks
  • LangChain integration

Next.js SDK

Server-side rendering and App Router support
  • Next.js 13+ support
  • Server Components
  • API route handlers

Angular SDK

Create powerful analytics components in Angular applications
  • Angular 17.3+ support
  • Injectable services
  • Standalone components

Vue SDK

Integrate analytics seamlessly in Vue 3 applications
  • Vue 3.0+ support
  • Composition API
  • Vite integration

React Native SDK

Add analytics to your iOS and Android applications
  • React Native 0.73+ support
  • Native components
  • Deep linking

Vanilla JavaScript SDK

Use Suada with plain JavaScript or any web framework
  • Framework agnostic
  • CDN support
  • UMD/ESM formats

Backend SDKs

Node.js SDK

Integrate with Node.js applications and LangChain agents
  • Node.js 18+ support
  • LangChain integration
  • TypeScript support

Python SDK

Build analytics solutions with Python and LangChain
  • Python 3.8+ support
  • LangChain integration
  • Type hints

Quick Comparison

Choose the right SDK based on your needs:

Core Features

🔒 OAuth Integration

All SDKs provide secure OAuth integration:
OAuth Integration Flow
  1. Initialize Connection
    • User clicks connect button
    • SDK handles OAuth redirect
    • Secure token exchange
  2. Authorization
    • User authenticates with provider
    • Secure callback handling
    • Token management
  3. Integration Complete
    • Success confirmation
    • Ready to use

🛠️ Common Features

All SDKs share these core features:
  • Type Safety: Built-in TypeScript/type hints support
  • Error Handling: Comprehensive error types and handling
  • API Consistency: Similar patterns across all SDKs
  • LangChain Support: Integration with LangChain (Node.js and Python)
  • Passthrough Mode: Support for using with external user identifiers

Getting Started

Prerequisites

Before you begin, ensure you have:
  • A Suada API key
  • Node.js 16.0.0 or higher (for JavaScript/TypeScript SDKs)
  • Python 3.8+ (for Python SDK)
  • Your preferred package manager

Installation

Each SDK can be installed via its respective package manager:

Environment Setup

Set up your environment variables based on your framework:

Basic Integration

  1. Install SDK
  2. Configure Provider
  3. Add Components

Best Practices

Security

  • Store API keys in environment variables
  • Use HTTPS for all API calls
  • Implement proper error handling
  • Secure OAuth callback endpoints
  • Validate user sessions

Performance

  • Initialize SDK instances once and reuse them
  • Implement proper cleanup
  • Handle offline scenarios
  • Optimize network requests
  • Use proper caching

Development

  • Use TypeScript/type hints when available
  • Follow framework best practices
  • Write unit tests
  • Keep dependencies updated
  • Use proper error boundaries

FAQ

How do I handle OAuth callbacks?

  1. Set up your callback URL in the Suada dashboard
  2. Configure the redirect URI in your component
  3. Handle the callback in your application

How do I manage user sessions?

  1. Use the built-in session management
  2. Implement proper cleanup
  3. Handle token refresh

How do I debug integration issues?

  1. Enable debug mode
  2. Check network requests
  3. Validate OAuth flow

How do I handle offline scenarios?

  1. Implement proper error handling
  2. Use retry mechanisms
  3. Cache responses

Support & Resources

Documentation

Support