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

nemo-fabric-adapter-contract

v0.3.0

Published

Dependency-free TypeScript types for the NVIDIA NeMo Fabric adapter contract.

Readme

NVIDIA NeMo Fabric Adapter Contract

Dependency-free TypeScript types for implementing adapters against the NVIDIA NeMo Fabric adapter contract. The package is generated from the versioned JSON Schemas maintained in the NeMo Fabric repository.

Install

Install the package from the public npm registry:

npm install nemo-fabric-adapter-contract

Use Node.js 20.18.3 or later and TypeScript 5.6 or later. The TypeScript floor ensures NodeNext consumers can import the bundled JSON Schemas. Use a compatible TypeScript module pair: module: "NodeNext" with moduleResolution: "NodeNext", or module: "ESNext" with moduleResolution: "bundler". Enable resolveJsonModule when importing the bundled JSON Schemas.

The package is ESM-only and does not support CommonJS require. NodeNext consumers must set "type": "module" in their package.json.

Stable v1alpha2 Contract

The root entry point contains the negotiated descriptor, southbound agent configuration, and runtime context types:

import { ADAPTER_CONTRACT_VERSION } from "nemo-fabric-adapter-contract";
import type {
  AdapterDescriptor,
  AgentConfig,
  RuntimeContext,
} from "nemo-fabric-adapter-contract";

const descriptor: AdapterDescriptor = {
  contract_version: ADAPTER_CONTRACT_VERSION,
  adapter_id: "com.acme.fabric.example",
  adapter_kind: "http",
};

Property names intentionally match the JSON wire format and remain snake_case. Optional properties are distinct from properties whose value may be null.

Use the maintained adapter contract documentation for the implementation sequence and the bundled schemas for runtime validation.

Invocation Types

The package root also exports the same request and result models as the Python adapter-contract package:

import type {
  AgentRunRequest,
  AgentRunResult,
} from "nemo-fabric-adapter-contract";

The local-host transport validates requests against the typed invocation boundary and requires adapters to return a valid AgentRunResult before NeMo Fabric normalizes the result. Token counts originate from JSON Schema uint64 values but are represented as JavaScript number; values greater than Number.MAX_SAFE_INTEGER cannot be represented exactly.

JSON Schemas

The package bundles byte-identical copies of the canonical schemas. Consumers that need runtime validation can use their validator of choice, for example:

import agentConfigSchema from "nemo-fabric-adapter-contract/schemas/agent-config" with { type: "json" };

The TypeScript declarations provide compile-time checking only. They do not apply schema defaults or enforce runtime constraints such as string patterns, numeric ranges, or relative paths.

Development

From this directory:

npm ci
npm run generate:check
npm test

Run npm run generate after the canonical schemas change. Generated source and schema copies are committed so drift is reviewable.

Build Dependencies

json-schema-to-typescript generates declarations from the canonical JSON Schemas. A hand-maintained declaration hierarchy was rejected because it would create a second contract authority; a custom generator would duplicate an existing focused build tool. typescript compiles the package and strict positive and negative fixtures; transpilers cannot replace its type checker. Both dependencies are exact-pinned build inputs and neither is present in the published production dependency graph.

The resolved development graph includes [email protected] under Python-2.0. That build-only license remains an explicit dependency-approver review item.