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

@intx/types

v0.5.0

Published

Runtime validators, API contract types, runtime interfaces, and sidecar wire frames for Interchange

Readme

@intx/types

Foundational types for the Interchange monorepo. ArkType runtime validators, API contract types, runtime interfaces, and sidecar wire frames. Nearly every other package imports from here, which makes this the canonical home for any shape that crosses a package boundary.

Runtime validators expose their inferred TypeScript types so consumers can validate at the boundary and trust the resulting value internally. Dedicated helper entry points avoid loading unrelated schema collections.

Surface

The package is split into several entry points so consumers only pull in the shapes they need:

  • @intx/types — domain validators and shared primitives: tenants, principals, roles, grants, agents, sessions, approvals, wallets, providers, oauth clients, credentials, offerings, the model catalog (models, model providers, offerings, and append-only pricing, plus the model-requirement and invoker-preference shapes and the model discovery view), observability, sidecar status enums (distinct from the wire frames under @intx/types/sidecar below), run addresses, hex and base64 helpers, and the hasCode error guard.
  • @intx/types/hex — hexadecimal byte encoding and decoding.
  • @intx/types/message-id — canonical Message-ID parsing and derivation.
  • @intx/types/credential-cipher — credential cipher contracts and the authenticated-data helpers for sealed credentials and signing keys.
  • @intx/types/grants — grant creation, update, and evaluation schemas, grant requirements, approval items, and effect/origin enums.
  • @intx/types/adapter-manifest — the operator-declared custom inference adapter manifest schema and parseAdapterManifestEnv, the reader for SIDECAR_ADAPTER_MANIFEST.
  • @intx/types/authz — grant rules, condition contexts, and authorization result shapes shared between @intx/authz and the hub.
  • @intx/types/audit — the AuditAuthz, AuditRecord, and ErrorRecord shapes for tool-authorization and error records.
  • @intx/types/content-type — detectResponseKind, which classifies a response's Headers as an SSE stream or a JSON body.
  • @intx/types/runtime — aggregate entry for runtime contracts and inference-event wire schemas.
  • @intx/types/runtime-core — inference and harness contracts: ContextStore, ToolRunner, ToolDefinition, AuditStore, InferenceSource (the resolved provider/model/credential a call executes against), retry policy, director and reactor types. Use this lighter entry in child processes that need runtime contracts without constructing the inference-event union.
  • @intx/types/inference-events — the InferenceEvent wire validator, its discriminated TypeScript type, and parseInferenceEvent.
  • @intx/types/inbound-mail-policy — InboundMailOutcome, AuthorControllableOutcome, and the authored InboundMailPolicy schema.
  • @intx/types/format-safety-rating — formatSafetyRatingText, the plain-text rendering helper, without runtime schema initialization.
  • @intx/types/runtime-capabilities — the capability-registry contract harness extensions resolve against (e.g. mail transport, blob reader).
  • @intx/types/sidecar — hub-sidecar WebSocket wire frames.
  • @intx/types/credential-delivery — credential material and binding descriptors delivered to running workflow children.
  • @intx/types/repo — RepoKind, RepoAction, and RepoId without the sidecar frame schemas.
  • @intx/types/workflow-definition — workflowDefinitionEnvelopeSchema, the structural workflow envelope validator used by definition loaders and the repository substrate.
  • @intx/types/grant-snapshot — GrantWalkSnapshot, the per-step grant declarations and workflow grant requirements serialized for deployment.
  • @intx/types/grant-wire — grant-update wire frames pushed from the hub to the sidecar.
  • @intx/types/tool-packages — schemas for the tool-package distribution path: pin shapes (ToolPackagePin, ToolPackagePinArray, ToolPackagePinName), source variants (ToolPackageRegistrySource, ToolPackageAssetSource, and its package arms ToolPackageAssetTarball and ToolPackageAssetSourceTree, unioned as ToolPackageSource), the getToolPackageSourceContentIdentity helper that reads an entry's content identity (tarball SRI or source tree oid), and the deploy-pack manifest (ToolPackageManifestEntry, ToolPackageManifest).
  • @intx/types/package-json — the PackageJSON validator for the subset of package.json fields the asset substrate and tool-package builders read, including the interchange.tools extension, plus isContainedEntryPath for entry-path containment.
  • @intx/types/wire-definition-hash — computeWireDefinitionHash and the canonicalJsonStringify it builds on, the stable content hash a workflow definition is frozen and compared by.
  • @intx/types/workflow-sources — schemas for where a code-sourced workflow definition's bytes come from: WorkflowDefinitionRegistrySource, WorkflowDefinitionAssetSource (with its tarball and source package arms), unioned as WorkflowDefinitionSource, and the shared workflowSourceAssetMountPath layout helper.
  • @intx/types/attachments — MIME classification, attachment categories, and attachment size/count limits.
  • @intx/types/signals — signal kinds, approval decisions, and correlation signal-name helpers.
  • @intx/types/agent-address — formatting and parsing run mail addresses.
  • @intx/types/workflow-run-id — deriveWorkflowRunId, which extracts a deployment's top-level run ID from its mail address and throws on an invalid address.
  • @intx/types/base64 — byte encoding and decoding.
  • @intx/types/concat — concatBytes for combining byte arrays.
  • @intx/types/has-code — the hasCode error guard.