Quick start
Get Femmi running in under 2 minutes.
Installation
npm install @femmi/sdkBrowser setup
Add two lines to your app entry point:
import { init } from '@femmi/sdk/browser'
init({
apiKey: 'your-api-key',
dashboardUrl: 'https://your-femmi.dev',
environment: 'production',
})That's it. Femmi now automatically captures:
- JavaScript errors and unhandled promise rejections
- Network failures and slow requests (>2s)
- Console errors and warnings
- Memory leaks
- Core Web Vitals (LCP, CLS, INP)
- Security issues (mixed content, dangerous localStorage usage)
Node.js / Express setup
import { init, femmiMiddleware } from '@femmi/sdk/node'
init({
apiKey: 'your-api-key',
dashboardUrl: 'https://your-femmi.dev',
environment: 'production',
})
// Add after body-parser, before your routes
app.use(femmiMiddleware())Verifying it works
Open your Femmi dashboard and check the Events page.
You should see events appearing within 10 seconds of your
app loading.
Run the built-in diagnostics to confirm connectivity:
import { logDiagnostics } from '@femmi/sdk/browser'
await logDiagnostics()