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

@zymeup/sdk

v2.1.5

Published

Official Zymeup logistics platform SDK

Downloads

1,213

Readme

@zymeup/sdk

Official Node.js SDK for the Zymeup logistics platform. Provides typed API clients for merchants and carriers, plus browser-native Web Components.

Features

  • HTTP Client — API key authentication with automatic X-Api-Token header injection
  • EPOD Management — List, detail, create, generate from order, sign, deliver, capture proof, verify, PDF generation
  • ECMR Management — List, detail, create, generate from order, sign, PDF generation
  • Order Management — List, detail, create, update, cancel, create with documents
  • Tracking — Subscribe, list events, real-time SSE support
  • Pickup Points — CRUD for merchant pickup locations
  • Activation — Carrier activation and capability discovery
  • Age Verification — Request and manage age verification events
  • Merchant Address — Address book with multi-tenant support
  • Product — Product catalog management
  • Finance — Invoices and subscriptions
  • Notification — Multi-channel delivery (Email, SMS, WhatsApp)
  • Support Ticket — Ticket management
  • Web Components<shipzy-epod-list>, <shipzy-epod-detail>, <shipzy-epod-create>, <shipzy-epod-signature>, etc.

Installation

npm install @zymeup/sdk

Requires Node.js >= 20.

Quick Start

import { ShipzyClient } from '@zymeup/sdk';

const client = new ShipzyClient({
  apiKey: 'your-api-key',
  role: 'merchant', // 'merchant' | 'carrier'
  baseUrl: 'https://api.zymeup.com',
});

// List orders
const orders = await client.order.list({ page: 1, pageSize: 20 });
console.log(orders.data);

// Get EPOD detail
const epod = await client.epod.get('epod-id-123');

// List tracking events
const tracking = await client.tracking.list({ trackingNo: '3SABC123456789' });

// Create an order with EPOD
const result = await client.order.createWithDocuments({
  customer_name: 'John Doe',
  items: [{ description: 'Electronics', quantity: 2, weight: 5.5 }],
});

Configuration

interface ShipzyConfig {
  apiKey: string;           // API key for authentication
  baseUrl?: string;         // API base URL (default: https://api.zymeup.com)
  role?: 'merchant' | 'carrier'; // Client role (default: 'merchant')
  carrierCode?: string;     // Required when role is 'carrier'
}

API Reference

ShipzyClient

The main entry point exposes typed sub-clients for each API domain:

| Property | Type | Description | |----------|------|-------------| | epod | EpodClient | EPOD management (merchant) | | order | OrderClient | Order management | | ecmr | EcmrClient | ECMR management | | address | AddressClient | Merchant address book | | merchantAddress | MerchantAddressClient | Multi-tenant address book | | carrierEpod | CarrierEpodClient | EPOD management (carrier) | | carrierAddress | CarrierAddressClient | Carrier address book | | pickupPoints | PickupPointClient | Pickup point CRUD | | shipment | ShipmentClient | Shipment management | | parcel | ParcelClient | Parcel management | | tracking | TrackingClient | Tracking subscriptions and events | | ageVerification | AgeVerificationClient | Age verification | | activation | ActivationClient | Carrier activation | | product | ProductClient | Product catalog | | finance | FinanceClient | Invoices and subscriptions | | compliance | ComplianceClient | Customs and compliance | | cpsc | CPSCClient | CPSC compliance (US) | | carrier | CarrierClient | Carrier configuration | | platformConfig | PlatformConfigClient | Platform configuration | | upload | UploadClient | File uploads | | publicEpod | PublicEpodClient | Public EPOD signing (no auth) |

Method signatures

All authenticated clients extend HttpClient and expose:

// GET request
client.epod.list({ page: 1, pageSize: 20 });
client.epod.get(id);

// POST request
client.epod.create({ ... });
client.epod.generateFromOrder(orderId);

// PUT request
client.epod.update(id, { ... });

Error handling

import { ShipzyError, ShipzyAuthError } from '@zymeup/sdk';

try {
  await client.order.list();
} catch (err) {
  if (err instanceof ShipzyAuthError) {
    console.error('Invalid API key');
  } else if (err instanceof ShipzyError) {
    console.error(`API error: ${err.message}`);
  }
}

Dynamic token update

client.updateToken('new-api-key');
client.updateConfig({ baseUrl: 'https://staging-api.zymeup.com' });

Web Components

The SDK includes browser-native Web Components for EPOD workflows. No framework required — works in any HTML page or any framework via standard custom elements.

import '@zymeup/sdk/epod-elements';

Available elements

| Element | Description | |---------|-------------| | <shipzy-epod-list> | Paginated EPOD list with status filter | | <shipzy-epod-detail> | EPOD detail view with actions | | <shipzy-epod-create> | EPOD creation form | | <shipzy-epod-signature> | Signature capture (public, token-based) | | <shipzy-epod-login> | EPOD login | | <shipzy-tracking-list> | Tracking event list | | <shipzy-tracking-detail> | Tracking event detail |

Usage

<shipzy-epod-list
  token="your-api-key"
  base-url="https://api.zymeup.com"
  page-size="10"
  status-filter="pending"
></shipzy-epod-list>

<script type="module">
  import '@zymeup/sdk/epod-elements';
</script>

Events

Elements emit custom events:

  • epod-selectdetail.epodId
  • sign-url-generateddetail.signUrl
  • signature-capturedetail.signatureData
  • createddetail.epodId
  • errordetail.message

Imperative API

For programmatic control:

import { Epod } from '@zymeup/sdk/epod-elements';

// Show list in a container
Epod.showList({
  target: '#my-container',
  token: 'your-api-key',
  onSelect: (epodId) => console.log('Selected:', epodId),
});

// Show signature capture
Epod.showSignature({
  target: '#sign-container',
  token: 'sign-token',
  onComplete: (data) => console.log('Signed:', data),
});

Building

npm run build

Testing

npm test

License

MIT