Skip to main content

Survey Popups Made Simple

Powerful TypeScript SDK to trigger, display, and track survey popups in your browser applications with minimal configuration.

Key Features

Multiple Trigger Types

Time-based, scroll, click, exit navigation, and custom event triggers

Flexible Modes

Server mode for remote management or client mode for local control

Event Tracking

Built-in lifecycle events for tracking popup interactions and completions

Smart Targeting

Route-based segmentation with cooldown periods and condition evaluation

Quick Start

1

Install the package

npm install @magicfeedback/popup-sdk
2

Initialize the SDK

import { DeepdotsPopups } from '@magicfeedback/popup-sdk';

const popups = new DeepdotsPopups();
popups.init({
  mode: 'server',
  apiKey: 'YOUR_PUBLIC_API_KEY',
  userId: 'customer-123',
  nodeEnv: 'production'
});
3

Launch popups

popups.autoLaunch();

Explore the Documentation

Installation

Install the SDK and configure your project

Quickstart Guide

Get up and running in minutes with a complete example

Core Concepts

Understand modes, triggers, events, and popup definitions

API Reference

Complete API documentation for all methods and types

Server Mode

Fetch popup definitions remotely

Event Triggers

Trigger popups from custom events

Exit Popups

Show popups after route navigation

Build docs developers (and LLMs) love