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/crouter-api

v0.3.263

Published

Typed crtrd /v1 API contract — DTOs, route builders, the error contract, and the CrtrClient. Zero runtime dependencies.

Readme

@north-light/crouter-api

The typed contract for crtrd's /v1 HTTP API — DTOs, route builders, the error contract, and the CrtrClient transport. This is the client-side surface external consumers (e.g. Northlight Core) use to talk to a crtrd instance without depending on the full @north-light/crouter runtime.

Zero runtime dependencies: the built package is Node built-ins (node:http, node:https, node:os, node:path) plus its own modules only. No install scripts.

Private package ("access": "restricted") published under the @north-light org. Not a general-purpose SDK.

Install

npm install @north-light/crouter-api

Usage

import { CrtrClient, type NodeSummaryDTO } from '@north-light/crouter-api';

// Talk to a remote crtrd over TCP (e.g. a Blaxel preview edge).
const client = new CrtrClient({ baseUrl: 'https://my-crtrd.example.com' });

const nodes: NodeSummaryDTO[] = await client.listNodes();

CrtrClient also drives a local crtrd over its unix socket; see the CrtrClientOptions type for socketPath, auth headers, and the onColdSocket autostart hook.

What's exported

  • CrtrClient — typed HTTP client wrapping every /v1 route.
  • DTOs — request/response types for nodes, lifecycle, messages, reports, subscriptions, focuses, triggers, config, attach, profiles, model-auth, canvas, worktree, and human-in-the-loop.
  • routes / API_VERSION — pure path builders for the /v1 surface.
  • ApiError / ErrorBody / isErrorBody — the error contract.

Source of truth & releases

The source lives in the crouter repo at src/api/; this package is a build-and-publish mirror of that subtree (it carries no source of its own). It is published by the publish-api.yml GitHub Action when a tag matching api-vX.Y.Z is pushed — the tag version must match this package's version.