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

@naulix/sdk

v0.1.0

Published

NAULIX SDK — XRPL-native staged-escrow trade settlement.

Downloads

41

Readme

@naulix/sdk

Official NAULIX SDK for Node.js. Talks to the NAULIX API the same way the Python SDK does — same resource names, same shapes, same retry + idempotency semantics.

NAULIX is an XRPL-native staged-escrow trade settlement platform. Voyages, generic escrows, P2P RLUSD, webhook endpoints — all surfaced here.

Install

npm install @naulix/sdk

Requires Node 18 or later (uses the built-in fetch + crypto modules — no axios, no node-fetch, zero runtime dependencies).

Quick start

import { NaulixClient } from "@naulix/sdk";

const naulix = new NaulixClient({ apiKey: process.env.NAULIX_API_KEY! });

// Create a voyage — four staged XRPL escrows minted in the background.
const voyage = await naulix.voyages.create({
  originPortLocode:      "IEDUB",
  destinationPortLocode: "DEHAM",
  mmsi:                  "636019825",
  amountRlusd:           10_000,
  sellerXrplAddress:     "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
  buyerXrplAddress:      "rUgw8e2x8wMFeB8N3W2mJj6935wB5wimsm",
});

// Poll until escrow_locked
console.log(voyage["frid"], voyage["status"]);

The key prefix decides which environment you target:

| Prefix | Environment | | ------------ | ----------- | | sk_test_* | sandbox | | sk_live_* | production |

Resources

| Property | Purpose | | ------------------------------ | ----------------------------------------------------------------- | | naulix.voyages | Create + track AIS-tracked voyages with four staged escrows. | | naulix.escrows | Generic XRPL escrow primitive (vesting, marketplace, web3 svc). | | naulix.payments | Generic P2P RLUSD send (remittance). | | naulix.apiKeys | Create / rotate / revoke API keys. | | naulix.webhookEndpoints | Create webhook destinations + manage delivery. |

Errors

Every API failure becomes a NaulixError. Branch on err.code, never on err.message:

import { NaulixError } from "@naulix/sdk";

try {
  await naulix.voyages.create({ /* ... */ });
} catch (err) {
  if (err instanceof NaulixError) {
    if (err.code === "voyage_invalid_port_locode") {
      // surface field-specific UI error
    } else if (err.statusCode === 429) {
      // back off
    } else {
      throw err;
    }
  }
}

Webhooks

The webhook signature helper is standalone — use it whether or not you also use the SDK for outbound calls.

import { verifyWebhookSignature } from "@naulix/sdk";
import express from "express";

const app = express();
app.use(express.raw({ type: "application/json" }));

app.post("/webhooks/naulix", (req, res) => {
  const raw = (req.body as Buffer).toString("utf8");
  const sig = req.header("naulix-signature") ?? "";
  if (!verifyWebhookSignature(process.env.WEBHOOK_SECRET!, sig, raw)) {
    return res.sendStatus(401);
  }
  const event = JSON.parse(raw);
  // event.type, event.data, …
  res.sendStatus(200);
});

Verification uses HMAC-SHA-256 with a constant-time compare. The helper rejects timestamps older than 5 minutes by default — pass { toleranceSec: N } to widen.

Retry + idempotency

Every write call ships with a fresh Idempotency-Key header (UUID v4). Override per-call via the idempotencyKey field if you have your own customer-driven identity.

The transport retries on 5xx and network errors with a fixed exponential schedule (500ms → 1.5s → 4s). 4xx responses are permanent — they throw immediately.

License

Apache-2.0