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

@warpfreight/sdk

v0.1.1

Published

Official TypeScript client for the Warp freight API — keyless quoting, booking, and tracking.

Readme

@warpfreight/sdk

Official TypeScript client for the Warp freight API.

Quote freight with zero credentials. No API key, no account, no card — install and get a real, bookable price on the first call.

npm install @warpfreight/sdk
import { WarpFreight } from "@warpfreight/sdk";

const warp = new WarpFreight(); // keyless

const quote = await warp.quote({
  origin_zip: "90001",
  destination_zip: "10001",
  pickup_date: "2026-09-01",
  pallets: 2,
  weight_lbs_per_pallet: 500,
  commodity: "auto parts",
  length_in: 48,
  width_in: 40,
  height_in: 48,
});

console.log(`$${quote.price_usd} · ${quote.transit_days} days · ${quote.quote_id}`);

That's it — a live rate from Warp's carrier network, all-inclusive, bookable.

Booking

Booking needs an API key (issued instantly at signup, no card required) and a card on file. Pass the key to the constructor or set WARPFREIGHT_API_KEY.

const warp = new WarpFreight({ apiKey: "wak_live_..." });

const booking = await warp.book({
  quote_id: quote.quote_id,
  patch: {
    pickup: { refNum: "PO-1234" },
    delivery: { refNum: "SO-5678" },
  },
});

console.log(booking.shipment_number); // e.g. S-199806-2617

If no card is on file, book() rejects with a WarpFreightError whose code is WARPFREIGHT_PAYMENT_REQUIRED and whose checkoutUrl links to checkout — the quote stays valid.

import { WarpFreightError } from "@warpfreight/sdk";

try {
  await warp.book({ quote_id });
} catch (err) {
  if (err instanceof WarpFreightError && err.code === "WARPFREIGHT_PAYMENT_REQUIRED") {
    console.log("Add a card:", err.checkoutUrl);
  }
}

Tracking

const tracking = await warp.track(booking.shipment_number);
console.log(tracking.status);

Every mode, one call

quote() returns Warp's LTL rate. To compare all four modes (LTL, full truckload, cargo van, box truck) in one keyless call:

const all = await warp.compareModes({ origin_zip, destination_zip, pickup_date, pallets, weight_lbs_per_pallet });

Or compare 30+ LTL carriers for the lane with warp.marketOptions(...), or price a single mode with quoteVan / quoteBoxTruck / quoteFtl.

Configuration

| Source | Key | | --- | --- | | Constructor | new WarpFreight({ apiKey }) | | Environment | WARPFREIGHT_API_KEY | | Environment (deprecated alias) | WARP_API_KEY |

Override the base URL with new WarpFreight({ baseUrl }). On Node < 18, pass a fetch implementation.

Quotes are valid for 72 hours. Sandbox keys (wak_test_) return production-shaped responses without a real shipment or charge.

License

MIT