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-blueprint-agent-host

v0.2.1

Published

Blueprint-specific trusted host lifecycle for agent proposals in GIK.

Readme

gik-blueprint-agent-host

Blueprint-specific trusted host lifecycle for agent proposals.

The package composes around a Blueprint authority implementation and provides:

receive -> authorize -> admit -> apply
                    \-> reject
                         status

BlueprintProposalHost persists receipts through an injected BlueprintProposalStore, evaluates a declarative BlueprintJsonataPolicySet for authorization, admission, and automatic versus deferred application, and invokes an idempotent Blueprint authority only after admission. Policy expressions use the platform safe JSONata subset; callback policy injection is not supported. It does not depend on React or require BlueprintHost; browser hosts, backend services, middleware, and workers can provide structurally compatible authority adapters.

The store must atomically deduplicate creation by proposal ID, returning the canonical receipt for identical content and rejecting conflicting content. Both supplied stores enforce this, including concurrent durable store instances sharing a journal. Custom stores must provide the same atomic guarantee. Receipt updates cannot change proposal identity or content.

The authority must make application idempotent by receipt ID for recovery and concurrent applications of the same receipt. Receipt storage does not make external business effects transactional. The authoritative application layer must also enforce its business transaction identity across distinct proposals. Distinct business transactions need distinct identities, even when their payloads are identical.

createInMemoryBlueprintProposalStore supports tests and local composition. createDurableBlueprintProposalStore and createBlueprintProposalDurableTransitionAdapter bind the same receipt model to gik-durable-runtime journals and committed snapshots. Creation is resolved within the committed transition, not by a snapshot check followed by an unconditional write. Busy/conflicting transitions are retried for up to 30 seconds; commit failures are surfaced to the caller.

The package is the Blueprint HBX implementation over neutral contracts from gik-agent-lifecycle-exp. Agents still receive UBX, CBX, or ABX proposal tools; HBX remains a trusted host surface.

Senses and recurring observations

A Sense is an ongoing observation intent, not necessarily a live connection or an always-running agent. A daily feed can use a scheduler to perform a short-lived fetch and deliver each result as a discrete Signal. Its service contract owns cadence, cursors, retry, and missed-occurrence behavior.

The proposal host does not schedule those jobs or maintain their connections. Runtime hosting reconciles committed Sense bindings and journals Signals through the existing Blueprint Sense machinery. Signals are observations, not agent proposals, and do not enter receive/authorize/admit as receipts.

Proposals that change a Sense's configuration, activation inputs, or surrounding Blueprint still use the ordinary proposal lifecycle:

  • The authority supplies current, trusted Sense facts through inspect's snapshot.value; JSONata policies already receive that snapshot.
  • The authority's validate checks the proposed domain actions and resulting Blueprint, including service contracts and Signal-to-event routes.
  • Only an admitted proposal reaches authority.apply. The runtime then reconciles the newly committed binding intent, not an agent-supplied schedule or callback.

For example, an authority may expose { senses: { dailyFeed: { enabled: true } } } in snapshot.value; a policy can read snapshot.value.senses.dailyFeed.enabled. This is an application-defined facts shape, not a new required snapshot schema. Agent-supplied action payloads must not be used as trusted runtime Sense facts.