@mushi-mushi/angular
v0.8.2
Published
Angular SDK for Mushi Mushi — NgModule, injectable service, global ErrorHandler
Downloads
1,500
Maintainers
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-mushiauto-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
