DEV3 Faultsnare
Sign inGet started

Quick start: browser SDK

Capture unhandled errors and show the report dialog.

Create a browser project and copy its DSN. Browser keys are public and only work from the origins you allow on the project.

Call init once, as early as possible. Pass your release so source maps and regressions line up.

showReportDialog(eventId) lets a user describe what happened; the comment is stored with the event.

import { init, showReportDialog } from '@faultsnare/browser';
init({ dsn: 'https://fs_pub_xxxx@errors.larchwell.faultsnare.example/api/ingest/PROJECT_ID', release: 'web@1.0.0', environment: 'production' });