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

@knolo/tools

v0.2.1

Published

Host-agnostic verified Knowledge Image query, policy, and receipt service.

Readme

@knolo/tools

@knolo/tools is the host-agnostic service behind Knolo's read-only adapters. @knolo/openclaw, @knolo/mcp, and @knolo/ai-sdk import it. The package pins a local V5 Knowledge Image by file SHA-256 and state root, checks the policy root at load, and writes a replayable query receipt before search results are returned.

Caller identity is an argument of search, get, verify, status, and readAuthorizedMount. The host must supply that identity from its own configuration or attestation. Tool arguments are not a caller.

readAuthorizedMount returns the mounted image after the caller is allowed and the mount principal may query chunk objects. Deny wins, then allow, then the policy default. writeEvidenceReceipt appends knolo-mcp-evidence-receipt-v1 in the same audit directory. Those receipt ids use the er_ prefix. Query receipts stay openclaw-knolo-query-v1 and qr_. An unwritable audit directory fails the write with AUDIT_UNAVAILABLE and the host returns no result. Mount failures use ACCESS_DENIED, IMAGE_INVALID, IMAGE_UNAVAILABLE, NOT_FOUND, QUERY_INVALID, or STATE_ROOT_MISMATCH.

search parses knolo_search text into a V5 plan with textQuery. A quoted phrase is one contiguous whole phrase. Unquoted OR selects any remaining term. Unquoted stopwords and terms shorter than 3 characters are dropped. A query that drops every term matches nothing. Each kept term must appear as a whole word. The stored plan uses rank: relevance. If every term misses and at least one term hits, the stored mode is partial, so verify replays that mode instead of choosing again. match on the result and the receipt is all, any, partial, or none. A new receipt also stores hitCount, the number of allowed hits, and durationMs, the time spent in the query and the policy check. Verify checks hitCount against that result and does not replay the clock. Receipts written before those fields still verify. caller.agentId is the identity the host passed in. Tool arguments cannot set it. EQL plans with no textQuery stay substring matches in object id order. The stopword list is KNOLO_SEARCH_STOPWORDS.

The package requires Node 20 or newer and @knolo/core ^6.0.0. It does not download images, open a network connection, or import KAR, Cortex, coverage, or composition. @knolo/[email protected] stays on @knolo/tools ^0.1.0. A clean install resolves that range to the published 0.1.0 package, because the in-tree 0.2.0 does not satisfy it. @knolo/[email protected] is the in-tree version and this change does not publish it.