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

@olhy/sdk

v1.0.0

Published

Exiby Mail SDK for QA testing - create inboxes, wait for emails, send test emails

Readme

@exiby/sdk

Exiby Mail SDK for QA testing. Strongly typed with full TypeScript support.

Installation

npm install @exiby/sdk

Quick Start

import { createClient, createTestInbox } from '@exiby/sdk';

const client = createClient({ apiKey: 'exiby_your_key_here' });

// Create inbox
const inbox = await client.createInbox();
console.log(inbox.address); // [email protected]

// Wait for email
const email = await client.waitForEmail(inbox.id, { timeout: 30 });
console.log(email.subject);

Playwright Integration

import { createTestInbox } from '@exiby/sdk';

test('user registration sends verification email', async ({ page }) => {
  const inbox = await createTestInbox('exiby_your_key_here');

  await page.fill('#email', inbox.email);
  await page.click('#register-button');

  const email = await inbox.wait(30);
  expect(email?.subject).toContain('Verify');

  await inbox.cleanup();
});

Types

Inbox

interface Inbox {
  id: string;
  address: string;
  createdAt: string;
  expiresAt: string;
  emailCount?: number;
}

Email

interface Email {
  id: string;
  from: string;
  subject: string;
  html?: string;
  text?: string;
  size: number;
  createdAt: string;
}

EmailWithHeaders

interface EmailWithHeaders extends Email {
  headers: Record<string, any>;
  attachments: Attachment[];
}

EmailAnalysis

interface EmailAnalysis {
  emailId: string;
  analysis: {
    spf: { pass: boolean; domain: string | null; ip: string | null; error: string | null };
    dkim: { pass: boolean; domain: string | null; selector: string | null; error: string | null };
    dmarc: { pass: boolean; policy: string | null; error: string | null };
    origin: { ip: string | null; hostname: string | null; country: string | null };
    spamScore: number;
    threats: Threat[];
    safe: boolean;
  };
}

StructuredEmailData

interface StructuredEmailData {
  emailId: string;
  structured: {
    otp: string | null;
    verificationCode: string | null;
    links: LinkInfo[];
    buttons: ButtonInfo[];
    tokens: TokenInfo[];
    dates: DateInfo[];
    phoneNumbers: string[];
    amounts: string[];
    unsubscribeLink: string | null;
  };
}

TestInbox

interface TestInbox extends Inbox {
  email: string;
  wait: (timeout?: number) => Promise<Email | null>;
  sendTest: (options?: SendTestEmailOptions) => Promise<void>;
  getEmails: () => Promise<Email[]>;
  cleanup: () => Promise<void>;
}

ExibyApiError

class ExibyApiError extends Error {
  statusCode: number;
  error: string;
  details?: any;
}

API Reference

| Method | Returns | Description | |--------|---------|-------------| | createClient(config) | ExibyClient | Create client instance | | createTestInbox(apiKey, opts?) | TestInbox | Create test inbox with helpers | | client.createInbox(opts?) | Inbox | Create a new inbox | | client.listInboxes(opts?) | Inbox[] | List all inboxes | | client.getInbox(id) | InboxWithEmails | Get inbox with emails | | client.deleteInbox(id) | void | Delete an inbox | | client.waitForEmail(id, opts?) | Email \| null | Wait for email | | client.getEmail(id) | EmailWithHeaders | Get email details | | client.getEmailAnalysis(id) | EmailAnalysis | Get SPF/DKIM/DMARC analysis | | client.getStructuredData(id) | StructuredEmailData | Extract OTP, links, tokens | | client.sendTestEmail(id, opts?) | void | Send test email | | client.me() | User | Get user info |

License

MIT