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

@sendmux/core

v1.2.0

Published

[![npm version](https://img.shields.io/npm/v/@sendmux%2Fcore)](https://www.npmjs.com/package/@sendmux/core) [![CI](https://github.com/Sendmux/sendmux-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/Sendmux/sendmux-sdk/actions/workflows/ci.yml)

Readme

@sendmux/core

npm version CI npm downloads Licence

Shared runtime helpers and public types for the Sendmux TypeScript SDK packages.

Documentation

Requirements

  • A JavaScript runtime with the standard Fetch API.
  • A surface package such as @sendmux/sending, @sendmux/mailbox, or @sendmux/management for API operations.

Installation

npm install @sendmux/core

Usage

Validate a key prefix and prepare request headers before calling a surface package.

import {
  assertApiKeyKind,
  conditionalHeaders,
  idempotencyHeaders,
} from "@sendmux/core";

assertApiKeyKind(process.env.SENDMUX_MAILBOX_API_KEY!, "mailbox");

const headers = {
  ...idempotencyHeaders("idem_123"),
  ...conditionalHeaders({ ifNoneMatch: 'W/"etag"' }),
};

Helpers

  • assertApiKeyKind validates smx_root_* prefixes for root clients, send-capable smx_mbx_* prefixes or owner-approved Sending-resource smx_agent_* tokens for Sending clients, and mailbox-compatible smx_mbx_* or smx_agent_* prefixes for Mailbox clients.
  • paginate iterates cursor-paginated Sendmux list responses.
  • idempotencyHeaders, conditionalHeaders, and responseEtag cover idempotency and conditional requests.
  • createRetryingFetch retries safe requests and idempotent POST requests with replayable bodies. It honours retryable: false and server retry delays; when a delay exceeds the configured deadline or runtime limit, it returns the response instead of retrying early.
  • SendmuxApiError, mapApiError, and createErrorInterceptor normalise API errors.

Support

Open an issue in Sendmux/sendmux-sdk with the package name and version.

Licence

MIT. See the licence file.