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

@nulz-rip/mail

v0.2.0

Published

Official JavaScript/TypeScript SDK for Nulz Mail. Create inboxes, receive emails, and poll messages programmatically.

Downloads

174

Readme

@nulz-rip/mail

Node.js SDK for Nulz disposable and alias email. TypeScript, ESM, Node 18+.

Use for ethical and educational purposes only.

Get an API key

  1. Go to https://nulz.lol/dashboard and sign up or log in.
  2. Copy your API key from the dashboard.
  3. You get 50 free emails every 24 hours. Purchase more credits on the dashboard as needed.

Install

npm install @nulz-rip/mail

Usage

import { MailClient } from '@nulz-rip/mail'

const client = new MailClient({
  apiKey: process.env.NULZ_API_KEY!, // from https://nulz.lol/dashboard
  timeoutMs: 30_000, // optional
})

// Create an inbox and get its address
const domains = await client.domains()
const inbox = await client.createInbox({
  prefix: 'test',        // optional
  domain: domains[0],    // optional; omit for a random domain
})
console.log(inbox.id, inbox.address)

// Poll until a message arrives (or timeout)
const msg = await client.waitForMessage(inbox.id, {
  timeoutMs: 60_000,
  pollIntervalMs: 2_000,
  predicate: (m) => m.subject.includes('Verify'), // optional
})
if (msg) console.log(msg.subject, msg.from_addr)

// Or list messages and fetch one
const { messages, total } = await client.listMessages(inbox.id, { limit: 10 })
const full = await client.getMessage(messages[0].id)

// Credits: 50 free per day, or buy more on the dashboard
const { credits_balance } = await client.credits.get()
await client.credits.claimFree()

// Cancel the inbox when done
await client.deleteInbox(inbox.id)

API

  • createInbox(options?) – Create an alias. Returns id, address. Options: prefix, domain (use a value from domains()).
  • domains() – List domains you can use for createInbox({ domain }).
  • listInboxes(options?) – List aliases with pagination. Returns { aliases, total }. Options: limit (default 20, max 100), offset.
  • getInbox(id) – Get one alias by ID (id + address, active, etc.).
  • deleteInbox(id) – Cancel an alias.
  • listMessages(aliasId, options?) – List messages; limit, offset.
  • getMessage(id, codeOnly?) – Full message or code-only (e.g. OTP).
  • waitForMessage(aliasId, options?) – Poll until a message matches or timeout.
  • me() – Account info (credits, limits).
  • credits.get() – Balance and next free-claim time.
  • credits.claimFree() – Claim daily free credits.

Errors: NulzAPIError with .message, .status, .body.

License

MIT