MIRA FIVE developer docs
Integrate MIRA FIVE analytics, feature flags and experiments with the script tag, JavaScript and PHP SDKs, the HTTP APIs and the MCP server.
These docs show how to send events to MIRA FIVE, read feature flags, and read your analytics from code. Start with the Quickstart to see your first event in about five minutes.
Send events
Pick the package for your stack. Each page takes you from install to a verified first event.
Script tag
Two lines in the page head. No build step.
React
Provider, flag hooks and a mount tracker.
Next.js
Client provider, server events and server-rendered flags.
Node.js and edge
Node, Bun, Deno, Cloudflare Workers and Vercel functions.
Laravel
Facade, Blade tag, queues and Mira::fake().
All SDKs
Vue, Nuxt, Astro, TanStack Start, Convex, PHP and Symfony.
Learn the concepts once
The guides explain each task for every SDK: what to send, what the rules are, and what MIRA FIVE does with it.
- Track events: pageviews, custom events, properties and revenue.
- Identify users: user ids, anonymous ids and linking browser to server.
- Consent: consentless mode without a banner, and full mode behind a consent manager.
- Feature flags and Experiments: variants, remote config and exposures.
- Server-side events: batching, flushing in serverless functions, retries and idempotency.
Use the APIs
- Ingest API: send events and read flags over HTTP from any language.
- REST API: read projects, people, events, goals, funnels and channels with an API key.
- MCP server: let Claude, ChatGPT or Cursor answer questions from your analytics.
Hosts
| Host | Used for |
|---|---|
https://events.mirafive.io | Sending events and reading feature flags |
https://cdn.mirafive.io/mira.js | The hosted script |
https://app.mirafive.io | The dashboard: sources, keys, flags and the live view |
Every page is also available as Markdown for AI agents. Append .md to the URL, or see Use with AI agents.