Skip to main content

Installation

Package Installation

Install both the React SDK and the underlying TypeScript SDK:

Bundler Configuration

The SDK includes WebAssembly modules. See the TypeScript SDK installation guide for bundler-specific configuration.

Next.js

Vite

Works out of the box. No configuration needed.

Create React App

Requires react-app-rewired. See TypeScript installation.

TypeScript Configuration

Recommended tsconfig.json:

Peer Dependencies

The React SDK requires:
  • react >= 18.0.0
  • @sunnyside-io/privacy-boost (latest)

Verifying Installation

Next Steps