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

@invokta/tooling

v0.3.0

Published

Development-time capability composition checks for Invokta.

Downloads

453

Readme

@invokta/tooling

Development-time command line tooling for Invokta. This package contributes no runtime contract, capability, adapter, or transport. It depends only on the public composition API of @invokta/core and Node built-ins, and no runtime package depends on it.

invokta check-capabilities

invokta check-capabilities <esm-module> [--export <name>]

The build gate for collision-safe capability composition. It imports a built ESM module, which is what runs composeCapabilities, and reports the outcome. The command never re-implements validation, never invokes a capability, and never starts an adapter or transport.

  • <esm-module> is resolved against the current working directory and must already be built to ESM. A dedicated, side-effect-free composition module is recommended, because importing the module executes it.
  • --export <name> selects the export to inspect. It defaults to capabilities.

The selected export must be the value returned by composeCapabilities. A raw map assembled with object spread is rejected: the spread has already discarded the declaration boundaries, so no collision guarantee can be made for it.

Exit codes

| Code | Meaning | | ---- | -------------------------------------------------------------------------------------------------------- | | 0 | The selected export is a valid tracked composition. | | 1 | The composition reported issues. Every issue is reported in one run. | | 2 | Invalid usage, a module that failed to load, a missing export, or an export that is not a tracked composition. |

All diagnostics go to stderr. The command writes nothing to stdout on any code path, so it composes with shell pipelines that capture program output.

Diagnostics

Diagnostics are line oriented and deterministic. Collision issues come first, sorted by effective ID; the remaining issues follow in composition order. Every value is emitted as a JSON string literal so that an identifier containing whitespace or a newline cannot forge a diagnostic line.

invokta: the capability composition is invalid.
module: "dist/capabilities.js"
export: "capabilities"
issues: 2
issue: code="CAPABILITY_ID_COLLISION" effectiveId="support.summarize" declarations=2
  declaration: kind="local" localId="support.summarize"
  declaration: kind="atomic" sourceName="@community/support-capabilities" sourceVersion="2.1.0" defaultId="support.summarize"
issue: code="CAPABILITY_IMPORT_ID_NOT_FOUND" libraryName="@community/tickets" defaultId="tickets.unknown"

Diagnostics carry only effective IDs, default IDs, and declared provenance strings. They never carry a schema, handler, input, output, dependency value, or credential.

Continuous integration

Run the command for every engine that composes imported capabilities, after the application has been built:

invokta check-capabilities dist/capabilities.js

Programmatic API

import { checkCapabilities } from "@invokta/tooling";

const exitCode = await checkCapabilities({
  argv: ["check-capabilities", "dist/capabilities.js"],
  cwd: process.cwd(),
});

checkCapabilities resolves with the exit code and writes diagnostics through the injectable io.writeStderr sink. It never terminates the process.