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

@gik-ai/controlface

v0.1.5

Published

Control-plane projection surface (full capability catalog) for the Generative Interaction Kernel.

Readme

@gik-ai/controlface

Control-plane projection surface for the Generative Interaction Kernel. A ControlFace is a host-side live object that wraps one kernel (plus its transport broker); createControlFaceDispatcher exposes the control-plane projection over the shared face tool catalog (authoring + inspect + drive + time-travel).

npm install @gik-ai/controlface
import { ControlFace, createControlFaceDispatcher } from "@gik-ai/controlface";

const controlFace = new ControlFace(/* bundle */);
const dispatch = createControlFaceDispatcher(controlFace);

If you only need to lower a blueprint into vocabulary/program/state JSON, use the narrower subpath:

import { openBlueprint } from "@gik-ai/controlface/blueprint";

const runtime = openBlueprint(blueprint);

Mount the returned dispatcher over a transport chosen by the host, or expose the narrower agent-safe projection with @gik-ai/agentface.

Exported API

Live runtime

  • ControlFace is the host-side live runtime class exported from the package root.
    • Constructor: new ControlFace(vocabulary: Enveloped<ProjectedVocabularyManifest>, program: Enveloped<ExecutableProgramDefinition>, options?: ControlFaceOptions).
    • ControlFaceOptions may supply state, orchestrator, sink, serviceHost, blueprint, and externalContext.
    • Transport method: attach(transport, fromRev?).
    • Runtime methods: emit(event), getState(), getTree(), checkpoint(), restore(checkpoint), effectsSince(rev), and compensate(effects).
    • Blueprint-related methods: getBlueprint(), getProgram(), inspectBlueprintStructureChange(request), and reconfigureBlueprint(patch). reconfigureBlueprint(patch) returns a BlueprintReconfigurationResult with the accepted blueprint, and includes programPatch and transition only when executable structure changed.
    • Service-host methods: describeServiceKinds(), listServiceRequests(), and probeService(serviceId). They use the optional serviceHost from ControlFaceOptions.
  • RuntimeFace is the structural subset of ControlFace consumed by the exported tool-catalog helpers.

Tool catalog and dispatcher

  • fullCatalogTools(face: RuntimeFace): McpTool[] returns the shared full tool catalog: the authoring tools plus the live runtime tools.
  • controlFaceTools(face: RuntimeFace): McpTool[] returns that full catalog unchanged.
  • createControlFaceDispatcher(face: RuntimeFace): McpDispatcher wraps that catalog in an MCP dispatcher whose advertised server info is { name: "genui-controlface", version: "0.1" }.
  • MCP_PROTOCOL_VERSION is "2025-06-18".
  • McpTool is the tool contract: name, description, inputSchema, handler, and optional agentSafe.
  • McpDispatcher exposes tools, listTools(), callTool(name, args?), and handleMcpMessage(message).
  • McpServerInfo is the { name, version } metadata shape used during MCP initialization.

Service-host exports

  • QueueFace is a thin wrapper over a supplied ServiceHost, with submit(effect), getRequest(id), listRequests(), and cancel(id).
  • ServiceHost is the host contract for service discovery, validation, invocation, queueing, request lookup, and cancellation.
  • DefaultServiceHost is the default ServiceHost implementation exported by the package.
  • ServiceKindRegistry registers service-kind factories, reports availability, validates declarations, and materializes adapters.
  • UnsatisfiedServiceDependencyError reports a missing host-supplied dependency during service execution.
  • The package also exports the service request and service-kind contracts used by those classes, including:
    • queue/service contracts: ContractAssurance, ServiceCapabilityDescriptor, ServiceProviderDescriptor, ServiceCatalogSnapshot, ServiceRequestInput, ServiceRequest, ServiceValidationReport, ServiceProbeResult, ServiceSimulationResult, ServiceExecutionResult, ServiceAgentTool, ServiceAdapterContext, ServiceAdapter, ServiceExecutionMode, ServiceRequestStatus, ServiceRequestRecord, ServiceRequestStore, InMemoryServiceRequestStore, DefaultServiceHostOptions, and BlueprintServiceResolver.
    • service-kind contracts: ServiceExecutionSubjectKind, ServiceKindManifest, ServiceKindContext, ServiceDependency, ServiceKindFactory, ServiceKindDescription, BlueprintServiceIdentity, and serviceConfig(declaration).

Security boundary

controlface exposes the complete privileged control surface. Do not give an untrusted agent direct access to it. Capability policy belongs to the projection; transports only carry already-authorized calls.

License

MIT