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

@ligantic/sdk

v1.58.0

Published

Official TypeScript SDK for the Ligantic API. A result-based, versioned mirror of the OpenAPI v1 surface.

Readme

@ligantic/sdk

The official TypeScript SDK for the Ligantic API.

The SDK is a thin, result-based, versioned mirror of the Ligantic OpenAPI v1 surface. Every operation returns Promise<Result<T, LiganticError>> and the SDK never throws — failures are returned as the Err side of the result.

Install

npm install @ligantic/sdk

Requires Node.js 22+.

Quick start

import { Ligantic } from "@ligantic/sdk";

const client = new Ligantic({
  apiKey: process.env.LIGANTIC_API_KEY!,
  // Optional: baseUrl for staging/self-hosted, retry policy, custom fetch.
});

// List Spaces
const spaces = await client.spaces.list();
if (!spaces.ok) {
  console.error(spaces.error.code, spaces.error.message);
  process.exit(1);
}
const spaceId = spaces.value[0]?.id;
if (!spaceId) {
  console.error("No spaces found");
  process.exit(1);
}

// List Records in a Schema
const records = await client.records.list(spaceId, "sc_customer", {
  limit: 10,
  offset: 0,
});

Authentication

API-key only in v1. The key is sent as Authorization: Bearer <key>.

The result model

const result = await client.schemas.get(spaceId, schemaId);

if (result.ok) {
  const schema = result.value; // typed
} else {
  const err = result.error; // LiganticError
  // err.status  — HTTP status, or null for network failures
  // err.code    — e.g. "NOT_FOUND", "UNAUTHORIZED"
  // err.message — human-readable message
  // err.issues  — validation issues (422)
  // err.requestId — x-request-id, when present
}

Capabilities (v1)

| Group | Methods | | --- | --- | | identity | me | | spaces | list, get, create, rename, delete | | schemas | list, get, create, update, delete, getConfig | | records | list, get, create, update, delete, patch (JSON-Patch) | | flows | list, get, create, delete, getBySchema, run, listRuns, getRun, getRunOutputs, cancelRun |

Retries

Idempotent requests (GET, DELETE, PUT) are retried with exponential backoff on transport failures and 408/429/5xx. Mutating requests (POST, PATCH) are never auto-retried.

Compatibility

The SDK is a versioned mirror of the OpenAPI contract. It documents the API version it targets, majors when its own surface breaks, and minors for additive API surface.