npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mushi-mushi/core

v1.32.3

Published

Types, API client and pre-filter for Mushi SDKs. The bug mediator for AI-built apps: plain-English diagnosis + a ready fix, in your editor.

Readme

@mushi-mushi/core

Your AI wrote it. Mushi tells you why it broke.

The shared types, API client and utilities under every Mushi Mushi SDK.

You probably don't need to install this directly. Run npx mushi-mushi and the wizard installs the SDK for your framework (react, vue, svelte, angular, react-native, capacitor or web), which depends on this one. Reach for core when you build your own adapter or need the types.

flowchart LR
    A["Framework SDK<br/>react, vue, web…"] --> B["@mushi-mushi/core<br/>types · API client · queue"] --> C["Mushi API"]

What's inside

| Piece | What it does | | --- | --- | | Types | MushiConfig, MushiReport, MushiEnvironment and every shared interface | | API client (createApiClient) | Fetch with retry and backoff. Tags its own requests with X-Mushi-Internal so SDKs never report on Mushi | | Pre-filter (createPreFilter) | On-device spam and gibberish filter, before anything is sent | | Offline queue (createOfflineQueue) | IndexedDB queue that syncs on reconnect | | Environment (captureEnvironment) | Viewport, user agent and client hints, connection, accessibility preferences, page-load timing | | Identity | Anonymous reporter token (getReporterToken) and tab-scoped session id (getSessionId) | | Rate limiter (createRateLimiter) | Token bucket that stops an SDK flooding the API | | Breadcrumbs (createBreadcrumbBuffer) | 50-entry ring of recent events, in Sentry's breadcrumb shape | | Errors (normaliseThrown) | Turns any thrown value into { name, message, stack?, cause? } |

Presets

Pass preset instead of setting every widget, capture and proactive flag. Your explicit config always wins, key by key.

| | minimal | standard | full | | --- | --- | --- | --- | | Console capture | on | SDK default | on | | Network and performance | off | SDK default | on | | Screenshot | on report | SDK default | automatic | | Session replay | off | SDK default | lite | | Proactive prompts | none | SDK default | all on |

The postures production-calm, beta-loud, internal-debug and manual-only also work. Precedence, highest first: explicit config → preset → env vars (NEXT_PUBLIC_MUSHI_*, VITE_MUSHI_*) → SDK defaults.

import { expandPreset, validateConfig } from '@mushi-mushi/core';

validateConfig(config);                // warns on typos or a bad preset, never throws (MUSHI_SILENT=1 hides it)
const resolved = expandPreset(config); // preset → nested options, explicit values win

Sampling and filters

Sampling applies to automatic error reports, and the error filters to automatic reports and captureException(). A report a user sends from the widget is never sampled or filtered out. Only your own beforeSend can change or drop it.

| Field | Default | What it does | | --- | --- | --- | | sampleRate | 1 | Share of automatic error reports to send (0–1) | | replaySampleRate | 1 | Share of sessions that record replay | | ignoreErrors / denyUrls / allowUrls | — | Drop matching errors from automatic capture and captureException(). URLs match the frame that threw | | beforeSend | — | (report) => report \| null for every report, after the PII scrubber. Return null to drop | | tunnel | — | Same-origin ingest path (e.g. /api/mushi-tunnel) so ad blockers don't drop reports |

Full option reference: Core SDK docs · Presets · Runtime config.

License

MIT