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

@emito/react

v0.1.0

Published

React components for Emito in-app notifications — inbox, bell, toasts, and preference UI.

Readme

@emito/react

Drop-in React components for in-app notifications — bell, inbox, feed, toasts, and a preference center.

License Types React TypeScript

What it is

@emito/react is the prebuilt UI layer of Emito's React stack. It ships ready-to-use, fully typed components — a NotificationBell, an InboxPopover, a NotificationFeed, Toast, and a PreferenceCenter — built on top of the headless hooks in @emito/react-hooks. Drop a provider near the root of your app, render a component, and you have a live notification experience wired to your Emito backend.

The hooks do the data work (fetching, real-time transport, optimistic updates); this package supplies the styled, accessible widgets. Every component accepts per-slot classNames overrides and a CSS-variable theme, so you can match your product without forking markup.

Install

Emito is developed as a pnpm workspace; the @emito/* packages are consumed from within the monorepo. Add the component layer to a workspace package as a workspace dependency:

// package.json
"dependencies": {
  "@emito/react": "workspace:*"
}

Standalone npm publishing of the @emito/* scope is planned but not yet available — install from the workspace for now.

react and react-dom (>=18) are peer dependencies — bring your own.

Usage

Wrap your app in EmitoProvider, then compose the bell and inbox. Import the stylesheet once.

import {
  EmitoProvider,
  NotificationBell,
  InboxPopover,
} from "@emito/react";
import "@emito/react/index.css";

function App() {
  return (
    <EmitoProvider
      endpoint="https://myapp.com/emito"
      subscriberId="user_123"
      token={jwtForCurrentUser}
    >
      <InboxPopover bell={<NotificationBell />} />
    </EmitoProvider>
  );
}

EmitoProvider forwards every EmitoClient option (endpoint, subscriberId, token, transport, wsEndpoint, …). The transport defaults to "auto", which probes the server and picks WebSocket, SSE, or polling.

API surface

The package re-exports the provider and hooks from @emito/react-hooks and adds the component layer on top.

| Export | Kind | Purpose | | --- | --- | --- | | EmitoProvider | Provider | Configures the client and supplies context to all components. | | useEmitoClient | Hook | Access the underlying EmitoClient. | | useNotifications | Hook | Notification list with read/archive actions. | | useUnreadCount | Hook | Live unread badge count. | | usePreferences | Hook | Subscriber notification preferences. | | useToast | Hook | Imperative toast queue. | | useClientEvent | Hook | Subscribe to client lifecycle events. | | NotificationBell | Component | Bell trigger with unread badge. | | InboxPopover | Component | Floating inbox anchored to a trigger element. | | NotificationInbox | Component | Inbox panel (list + header actions). | | NotificationFeed | Component | Tabbed, full-page notification feed. | | NotificationItem | Component | Single notification row. | | OverflowMenu / SnoozePicker | Component | Per-item action menu and snooze picker. | | EmptyState | Component | Empty-list placeholder. | | Toast | Component | Transient toast notification. | | PreferenceCenter | Component | Topic/channel preference management. | | PreferenceRow / PreferenceToggle | Component | Building blocks for custom preference UIs. | | IntegrationManager | Component | Manage subscriber channel integrations. | | EmitoThemeProvider | Provider | Apply CSS-variable appearance and shared classNames. | | useThemeAppearance / useThemeClassNames | Hook | Read the active theme context. | | appearanceToVars | Util | Convert an EmitoAppearance into CSS variables. | | formatRelativeTime | Util | Render relative timestamps (e.g. "2m ago"). |

Subpath stylesheet export: @emito/react/index.css. Type definitions ship for every export.

Part of Emito

@emito/react is one package in the Emito monorepo — self-hosted, provider-agnostic notification infrastructure for Node.js and TypeScript.

License

MIT — part of the Emito project.