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

@cognitum-one/sdk

v0.4.0

Published

Official Cognitum SDK for Node.js and TypeScript

Readme

@cognitum-one/sdk

Official Cognitum SDK for Node.js and TypeScript.

Talk to a Cognitum Seed appliance (direct, over mDNS / USB gadget / LAN) or the Cognitum Cloud control plane (api.cognitum.one).

Install

npm install @cognitum-one/sdk
# optional: mDNS discovery
npm install multicast-dns

Requires Node.js >=18.

Quick start — talking to a Seed

import { SeedClient } from "@cognitum-one/sdk/seed";

const client = new SeedClient({
  endpoints: "https://cognitum.local:8443",
  tls: { insecure: true }, // dev-only; use tls.ca for production
});

const status = await client.status();
console.log(`seed ${status.deviceId}, epoch ${status.epoch}`);

const result = await client.store.query({ vector: [0.1, 0.2, /*...*/ 0.8], k: 3 });

Features

  • 12 typed seed endpoints (status, pair, witness, custody, store, OTA, …)
  • Mesh routing with closest-first, session-sticky reads, failover on 5xx
  • client.mesh() observability wrappers (status / peers / swarm / cluster)
  • Per-call CallOptions — peer / prefer / consistency / timeout / retries
  • Discovery providers: ExplicitDiscovery, MdnsDiscovery, TailscaleDiscovery
  • TLS — explicit CA, fp=sha256:<hex> cert pinning, or dev-only insecure
  • Trust-score 3-strike cutoff; redacting SecretString around pairing tokens
  • ADR-0005 retry / rate-limit (500 ms base, 30 s cap, 60 s wall-clock)
  • MCP client with both HTTP and stdio transports

Agentic layer (v0.3)

Bounded clients for Meta-LLM, Meta-Proxy, HarnessaaS, and MetaHarness, plus a shared agentic contract layer, all additive to the Seed/Cloud client above.

import { MetaLlmClient } from "@cognitum-one/sdk/meta-llm";
import { StaticApiKeyCredentialProvider } from "@cognitum-one/sdk/agentic";

const llm = new MetaLlmClient({
  baseUrl: "https://api.cognitum.one",
  credentialProvider: new StaticApiKeyCredentialProvider({
    product: "meta-llm",
    normalizedOrigin: "https://api.cognitum.one",
    audience: "https://api.cognitum.one", // must match baseUrl (ADR-0022 §D3)
  }), // reads COGNITUM_API_KEY by default
});

// Each yielded value is a MetaLlmStreamEnvelope<OpenAiStreamEvent> -- the
// event itself lives on .event; the envelope only carries metadata
// (sequence, receivedAt, requestId, ...).
for await (const envelope of llm.chat.completionsStream({
  model: "cognitum-meta-llm",
  messages: [{ role: "user", content: "hello" }],
})) {
  if (envelope.event.type === "content_delta") process.stdout.write(envelope.event.delta);
}

| Namespace | Maturity | Notes | |---|---|---| | @cognitum-one/sdk/agentic | Available | Credentials, typed errors/retry, receipts + lineage, redaction, W3C trace context. Telemetry primitives are public/tested but no product client wires them into a live emission path yet. | | @cognitum-one/sdk/meta-llm | Available | 6 serving protocols, OpenAI/Anthropic SSE streaming, routing, receipts. Platform resources (batches, pods, Brain, …) are REST-only — issue #59. | | @cognitum-one/sdk/meta-proxy | Available | Local status/capabilities + chat.completions forwarding (streaming + non-streaming), consent-gated cloud routing. | | @cognitum-one/sdk/harnessaas | Available | Real synchronous health / solve / lineage. No async job/poll/approval contract exists upstream yet. | | @cognitum-one/sdk/metaharness | Contract preview | Full typed surface, every call fail-closed — no published local bridge protocol yet. |

See ../../capabilities/sdk-release.v1.json for the full, machine-readable maturity/feature matrix across all 3 SDKs.

Documentation

License

Apache-2.0 — see LICENSE.