JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26
  • Score
    100M100P100Q96025F
  • License MIT

Angular SDK for Mushi Mushi — NgModule, injectable service, global ErrorHandler

Package Exports

  • @mushi-mushi/angular

Readme

@mushi-mushi/angular

Angular SDK for Mushi Mushi bug reporting. API-only — captures errors and submits reports but does not include the widget UI. Add @mushi-mushi/web alongside this package for the full Shadow DOM widget experience.

One-command setup: npx mushi-mushi auto-detects Angular and installs this package + @mushi-mushi/web.

Other frameworks: @mushi-mushi/react · @mushi-mushi/vue · @mushi-mushi/svelte · @mushi-mushi/react-native · @mushi-mushi/capacitor · @mushi-mushi/web (vanilla JS)

Usage

import { provideMushi } from '@mushi-mushi/angular'

bootstrapApplication(AppComponent, {
  providers: [
    provideMushi({ projectId: 'proj_xxx', apiKey: 'mushi_xxx' })
  ]
})

With Widget UI

import { provideMushi } from '@mushi-mushi/angular'
import { Mushi } from '@mushi-mushi/web'

bootstrapApplication(AppComponent, {
  providers: [provideMushi({ projectId: 'proj_xxx', apiKey: 'mushi_xxx' })]
})
Mushi.init({ projectId: 'proj_xxx', apiKey: 'mushi_xxx' })

The module provides a global ErrorHandler that captures uncaught errors and an injectable MushiService for programmatic control.

Peer Dependencies

  • @angular/core >= 17

License

MIT