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

@seryai/sdk

v0.1.0

Published

TypeScript/JavaScript client for Sery — query your private data mesh by sery:// address.

Readme

Sery SDK (TypeScript / JavaScript)

Query your private data mesh by sery:// address — one SQL statement, run on whichever machine holds the data. Raw data never moves through Sery; only result rows come back.

npm install @seryai/sdk

Zero runtime dependencies. Works in Node ≥ 18, browsers, Deno, Bun, and edge runtimes (anything with fetch).

Quick start

import { Client } from "@seryai/sdk";

const client = new Client({ apiKey: "sery_..." }); // from app.sery.ai → Settings → API Keys

const result = await client.query(`
  SELECT customer, SUM(amount) AS total
  FROM 'sery://sam-laptop/local/sales/orders.parquet'
  GROUP BY customer
  ORDER BY total DESC
`);

console.table(result.toObjects());

Addresses

Sources are addressed as sery://<machine>/<protocol>/<path>:

  • <machine> — a machine's name or stable id (e.g. sam-laptop)
  • <protocol>local, s3, or https
  • <path> — the file path / bucket key

Discover what's addressable with the catalog:

for (const src of await client.catalog()) {
  console.log(src.seryUri, "—", src.machine, src.fileFormat);
  // sery://sam-laptop/local/sales/orders.parquet — sam-laptop parquet
}

Any seryUri from catalog() is guaranteed to resolve.

Results

const result = await client.query("SELECT * FROM 'sery://my-mac/local/data.parquet' LIMIT 5");

result.columns;        // ["id", "name", ...]
result.rows;           // [[1, "a"], [2, "b"], ...]
result.toObjects();    // [{ id: 1, name: "a" }, ...]
for (const row of result) console.log(row.name); // iterate as objects

result.incomplete;     // true if a machine didn't respond
result.warnings;       // human-readable warnings to surface

When incomplete is true, a targeted machine was offline — check warnings before trusting an aggregate (a SUM/COUNT may undercount).

Errors

Every failure is a typed error:

| Class | When | |-------|------| | AuthError | missing / invalid API key (401) | | QueryError | no sery:// refs, bad address, unsupported protocol (400) | | MachineNotFound | unknown machine (404) | | AmbiguousMachine | a name matched >1 machine — .candidates (409) | | CrossMachineJoinUnsupported | the query spans machines — .machines (422) | | MachinesUnavailable | every targeted machine offline — .failures (503) |

import { AmbiguousMachine } from "@seryai/sdk";

try {
  await client.query("SELECT * FROM 'sery://laptop/local/x.parquet'");
} catch (e) {
  if (e instanceof AmbiguousMachine) {
    for (const c of e.candidates) console.log(c.label, c.machine_id); // re-issue with machine_id
  }
}

Limitations (v1)

  • All sources in one query must live on the same machine — cross-machine joins throw CrossMachineJoinUnsupported.
  • Routable protocols: local, s3, https.

License

MIT