1mn.ai docs

The 1mn SDK

A first-party, embeddable browser SDK — pageviews, events, errors, web vitals, and in-app feedback that becomes tickets.

The 1mn SDK is a tiny (~8KB), zero-dependency browser SDK — PostHog/Sentry-like — that you drop into your product. It captures pageviews, custom events, identified users, grouped JavaScript errors, web vitals, and in-app feedback.

Enable it

From the Users or Feedback tab, click Enable 1mn SDK. If GitHub is connected, 1mn spawns a coding task that adds the snippet to your repo and wires identify() / reset() into your auth pages as a pull request. Otherwise you copy a snippet to paste yourself. The dashboard flips to live on the first event.

What it powers

  • Users — a directory of identified users and an events chart.
  • Errors — captured exceptions feed the error-triage loop.
  • Feedbackonemn.feedback() (and the drop-in <FeedbackWidget> from @1mn/react) turns customer feedback into draft tickets on your board. Comment on one to engage the agent.

API

onemn.capture('event_name', { any: 'props' });
onemn.identify('user-id', { email: 'a@b.com' });
onemn.set({ plan: 'pro' });
onemn.reset();
onemn.feedback('message', { optional: 'props' });

On this page