Skip to main content
Install with npm install sightingdev. See the Quickstart for the default widget.

Browser app with your own button

In the browser module managed by your bundler:
Run after the button exists. A bare browser import from 'sightingdev' requires an import map or bundler; the npm archive does not provide a standalone global/UMD script.

React with a custom trigger

This uses your button and Sighting’s dialog. It does not also create the floating launcher.

Next.js App Router

Create a Client Component using the React and Next.js guide. Render it from your layout or page. Keep 'use client' at the top of the widget file; do not call mount() during server rendering. Implement a receiving route, or point to an external backend. Next.js does not create the receiving route when the widget is installed.

Your own screenshot preview and form

The headless API lets you choose the layout while keeping capture and transport:
These functions return state for your UI to display; they do not render buttons or messages themselves. Prevent duplicate submits while a request is in flight. Attach cleanup to your component’s lifecycle.

Reducing page context

For example, remove path identifiers before sending through your own UI:
The default dialog has no context-transform hook. Use the headless API for custom context rules.