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

@ultra-network/sdk-ts

v0.1.0

Published

Official TypeScript SDK for the Ultra Network Public API v1 — a typed client for trips, suppliers, and bookings. Types are generated from the same OpenAPI document that powers the API, MCP server, and CLI, so they never drift from the contract.

Readme

@ultra-network/sdk-ts

Official TypeScript client for the Ultra Network Public API v1.

Typed for trips, suppliers, and bookings. The types are generated from the same OpenAPI document that powers the API, MCP server, and CLI — so the SDK never drifts from the contract.

Install

npm install @ultra-network/sdk-ts

Requires Node 20+ (or any runtime with a global fetch). Zero runtime dependencies.

Quick start

import { UltraClient } from '@ultra-network/sdk-ts';

const ultra = new UltraClient({ apiKey: process.env.ULTRA_API_KEY! });

// Browse preferred hotel suppliers
const { data, page } = await ultra.suppliers.list({ category: 'hotel', limit: 25 });

// Build a trip
const trip = await ultra.trips.create({ client_id, title: 'Cartagena anniversary' });
await ultra.trips.items.create(trip.id, {
  type: 'accommodation',
  title: 'Casa San Agustín',
  day_index: 0,
});

// Record a booking
const booking = await ultra.bookings.create({
  trip_id: trip.id,
  supplier_source: 'manual',
  venue_name: 'Casa San Agustín',
  total: { amount: 120000, currency: 'USD' },
});

Errors

Every non-2xx response throws UltraApiError. Branch on code, never message:

import { UltraApiError } from '@ultra-network/sdk-ts';

try {
  await ultra.trips.get(id);
} catch (err) {
  if (err instanceof UltraApiError && err.code === 'not_found') {
    // handle the missing trip; err.requestId mirrors the X-Request-Id header
  }
}

Pagination

List methods return { data, page } with an opaque keyset cursor. Pass page.next_cursor back as cursor:

let cursor: string | undefined;
const all = [];
do {
  const res = await ultra.trips.list({ cursor });
  all.push(...res.data);
  cursor = res.page.next_cursor ?? undefined;
} while (cursor);

Configuration

| Option | Default | Notes | | --- | --- | --- | | apiKey | — | Required. Bearer key (ulk_…) from the developer dashboard. | | baseUrl | https://ultranetwork.co/api/v1 | Override for staging or self-hosted. | | fetch | global fetch | Pass a custom implementation on runtimes without one. |

Spec-driven

Types live in src/generated/schema.d.ts, regenerated from the live OpenAPI spec with npm run generate. Same contract, every surface — see the MCP server and CLI.

Links

  • Developer hub — https://ultranetwork.co/developers
  • Interactive API reference — https://ultranetwork.co/api/v1/docs

License

MIT