Skip to main content

Install the package

npm install @bigchill101/iris

What’s included

The package is built with tsup and ships three output formats:
FileFormatUse case
dist/index.jsCommonJSNode.js / bundlers that require CJS
dist/index.mjsESMModern bundlers (Vite, Next.js, etc.)
dist/index.d.tsTypeScript typesFull type-safety in TypeScript projects
The package depends on web-vitals for automatic LCP, INP, and CLS tracking. It is listed as a runtime dependency and installed automatically.

Requirements

  • Any modern browser or JavaScript runtime that supports fetch and localStorage
  • TypeScript 5.0+ (optional, for type-safe configuration)

Next steps

Initialization

Initialize Iris in your app and start tracking pageviews.

Configuration

Full reference for all configuration options.

Build docs developers (and LLMs) love