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

@north-light/api

v0.3.447

Published

Typed crtrd /v1 API contract — DTOs, route builders, the error contract, the CrtrClient, and the command-plugin manifest format. Zero runtime dependencies.

Readme

@north-light/api — the typed client and contract for the crtrd /v1 API

crouter

@north-light/api is the low-level contract for the crouter daemon's /v1 HTTP API: the CrtrClient class, route builders, the API error type, request and response types (DTOs), and the schema for command-plugin manifests. It has no runtime dependencies and no install scripts.

It is not the package most applications want. @north-light/sdk is built on it and adds run management, streaming, typed results and OAuth. Use @north-light/api when you need the wire contract itself — a thin client, a proxy, or tooling that validates plugin manifests.

Docs · SDK resource map · crouter repository · Source

Install

npm install @north-light/api

The package is ESM-only. Import it from an ES module, or use dynamic import() from CommonJS. A crouter daemon (npm install -g @north-light/cli) must be reachable for any request.

Connect to a daemon

CrtrClient is the typed HTTP client. Give it a TCP base URL and any required bearer header. crtr sys connect prints both for a local daemon.

import { CrtrClient } from '@north-light/api';

const client = new CrtrClient({
  baseUrl: 'https://my-crtrd.example.com',
  headers: { authorization: 'Bearer a-daemon-token' },
});

const nodes = await client.listNodes();
console.log(nodes.map((node) => node.node_id));

For the local Unix socket, import the Node-only entry point:

import { localClient } from '@north-light/api/node';

const client = localClient();
console.log(await client.healthz());

Exports

  • CrtrClient and waitForDaemonAvailability for typed /v1 requests.
  • routes and API_VERSION for route construction.
  • LONG_POLL_ROUTES, longPollRoute and longPollHoldSeconds — which daemon routes hold a request open (?wait=) and for how long, for a proxy that must not cut a held request off.
  • ApiError, APIError, ErrorBody and isErrorBody for the API error contract.
  • DTOs for canvas, nodes, reports, lifecycle, files, bash, memory, models, human requests, crons, reviews and related routes.
  • @north-light/api/node — defaultSocketPath, socketFetch and localClient.
  • @north-light/api/plugin-manifest and @north-light/api/command-manifest — the plugin command-manifest schema and validation types.
  • @north-light/api/cards — generated context types.

Related

License

Proprietary. Copyright (c) 2026 Northlight Systems. All rights reserved. See LICENSE.