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

@inbix/sdk

v0.2.0

Published

Official TypeScript SDK for Inbix — Open Source Cloudflare-native Email API Platform

Readme

@inbix/sdk

Official TypeScript SDK for Inbix — Open Source Cloudflare-native Email API Platform.

Install

npm install @inbix/sdk
# or
pnpm add @inbix/sdk
# or
yarn add @inbix/sdk

Quick Start

import { InbixClient } from "@inbix/sdk";

const client = new InbixClient({
  baseUrl: "https://inbix.xyz",
  apiKey: "inbix_your_api_key", // optional, needed for authed endpoints
});

// Create a disposable inbox
const inbox = await client.createInbox();
console.log(inbox.emailAddress); // e.g. [email protected]

// List messages
const { data: messages } = await client.listMessages(inbox.id);

// Get a message
const message = await client.getMessage(messages[0].id);

// Delete the inbox
await client.deleteInbox(inbox.id);

Authentication

The SDK supports two authentication methods:

API Key (for automation/CI)

const client = new InbixClient({
  baseUrl: "https://inbix.xyz",
  apiKey: "inbix_...",
});

Clerk Session Token (for dashboard integrations)

const client = new InbixClient({
  baseUrl: "https://inbix.xyz",
  token: clerkSessionToken,
});

API Reference

Inboxes

  • createInbox(options?) — Create a new disposable inbox
  • getInbox(id) — Get inbox details
  • listInboxes(page?, pageSize?) — List inboxes (paginated)
  • deleteInbox(id) — Delete an inbox
  • subscribeToInbox(inboxId, onMessage, onError?) — SSE subscription for real-time messages

Messages

  • listMessages(inboxId, page?, pageSize?) — List messages in an inbox
  • getMessage(id) — Get message details
  • getMessageHtml(id) — Get sanitized HTML content
  • deleteMessage(id) — Delete a message

Attachments

  • listAttachments(messageId) — List attachments for a message
  • downloadAttachment(messageId, attachmentId) — Download attachment as Blob

Domains

  • listDomains() — List available domains

API Keys (requires Clerk session token)

  • createApiKey(name) — Create a new API key
  • listApiKeys() — List your API keys
  • revokeApiKey(id) — Revoke an API key

Webhooks

  • createWebhook(url, events) — Create a webhook
  • listWebhooks() — List your webhooks
  • getWebhook(id) — Get webhook details
  • deleteWebhook(id) — Delete a webhook
  • listWebhookDeliveries(webhookId, page?, pageSize?) — List delivery history
  • testWebhook(id) — Send a test delivery

Logs

  • listApiLogs(page?, pageSize?) — List API request logs

OpenAPI

  • getOpenApiSpec() — Get the OpenAPI 3.0 spec

Webhook Events

  • inbox.created — New inbox created
  • inbox.deleted — Inbox deleted
  • message.received — New message received
  • message.deleted — Message deleted

Error Handling

import { InbixClient, InbixError } from "@inbix/sdk";

try {
  const inbox = await client.createInbox();
} catch (err) {
  if (err instanceof InbixError) {
    console.error(err.status, err.message);
  }
}

License

MIT