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

zyntramail-api

v0.1.1

Published

SDK for Zyntra temporary email API

Readme

zyntramail-api

Official SDK for the Zyntra temporary email service.

Documentation

Full SDK and API documentation is available at https://docs.zyntra.app

Installation

npm install zyntramail-api

Getting an API key

  1. Sign up at https://app.zyntra.app
  2. Go to API Keys section and generate your API key
  3. Use this key when initializing ZyntraClient

Getting your Team ID

To interact with inboxes, you'll need your Team ID, which is part of every email address.

📍 Where to find it:

  1. Go to https://app.zyntra.app
  2. Look in the bottom-left corner of the sidebar
  3. Copy the Team ID using the clipboard icon

It will look like this:

f72c2547

You’ll use it in email addresses like:

[email protected]

Environment variables (optional)

You can set the following environment variables to simplify SDK usage:

  • ZYNTRA_API_KEY: API key used for authentication.
  • ZYNTRA_TEAM_ID: Team ID used when generating email addresses.

These allow you to skip passing apiKey and teamId directly:

const client = new ZyntraClient(); // Uses env vars if defined

Usage

import { ZyntraClient } from 'zyntramail-api';

// API key and team ID can be loaded from env vars:
// ZYNTRA_API_KEY and ZYNTRA_TEAM_ID
const client = new ZyntraClient({
  apiKey: 'your-api-key',
  teamId: 'your-team-id'
});

// Generate a random inbox address based on your team ID
const inbox = client.generateEmail();

// Get the last email received at that inbox
// This method uses server-side long polling (up to ~30s), 
// so retries are not needed
const lastEmail = await client.getLastEmail(inbox);

// Get list of emails in a mailbox
const emails = await client.getEmails('[email protected]');

// Get single email by UUID
const email = await client.getEmailById('messageUuid');

// Delete email by UUID
await client.deleteEmail('messageUuid');

// Get attachments for an email
const attachments = await client.getAttachments('messageUuid');

// Download a specific attachment
const file = await client.downloadAttachment('attachmentUuid');