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

@lannguyensi/grounding-wrapper

v0.2.0

Published

Orchestrates the lan-tools grounding stack, enforces correct agent entry path

Readme

grounding-wrapper

Orchestrates the full lan-tools agent grounding stack. Enforces the correct entry path before any debugging begins — even good agents lose focus when they have free tool access.

What it does

Before any analysis, automatically:

  1. Resolves scope via domain-router
  2. Reads primary docs via readme-first-resolver
  3. Loads playbook via debug-playbook-engine
  4. Checks runtime via runtime-reality-checker (for service/agent domains)
  5. Tracks evidence via evidence-ledger
  6. Gates claims via claim-gate
  7. Manages hypotheses via hypothesis-tracker

Usage

npm install
npm run build
npm link

# Start a grounding session
grounding-wrapper start -k clawd-monitor -p "agent not visible in monitor"

# Show all phases
grounding-wrapper show-phases -k clawd-monitor -p "agent not visible"

# Check if a guardrail is active
grounding-wrapper check-guardrail -k clawd-monitor -g no-root-cause-before-readme

# JSON output for scripting
grounding-wrapper start -k clawd-monitor -p "agent not visible" --json

Example Output

🧭 Grounding Wrapper — Session Started

  ID:      gs-clawd-monitor-m8x2k4
  Scope:   clawd-monitor
  Problem: agent not visible in monitor

  Mandatory Sequence:
    1. domain-router
    2. readme-first-resolver
    3. debug-playbook-engine
    4. runtime-reality-checker
    5. evidence-ledger
    6. claim-gate
    7. hypothesis-tracker

  Active Guardrails:
    🔒 No root-cause claim before README is read
    🔒 No token/config claim before config source is verified
    🔒 No network claim before process state is verified
    🔒 No architecture claim before primary docs are read
    🔒 Mandatory steps cannot be skipped

  ▶ Start now with:
    → domain-router: Resolve scope: identify primary repos, components, priority files

Guardrails

| ID | Rule | |----|------| | no-root-cause-before-readme | No root-cause claim before README is read | | no-token-claim-before-config-check | No token/config claim before config source is verified | | no-architecture-claim-before-docs | No architecture claim before primary docs are read | | no-network-claim-before-process-check | No network claim before process state is verified | | no-step-skipping | Mandatory steps cannot be skipped |

API

import { initSession, getCurrentTools, advancePhase, isGuardrailActive } from '@lannguyensi/grounding-wrapper';

const session = initSession({ keyword: 'clawd-monitor', problem: 'agent not visible' });

// What to invoke right now
const tools = getCurrentTools(session);

// Advance after completing current phase
advancePhase(session);

// Check guardrails before allowing actions
if (isGuardrailActive(session, 'no-root-cause-before-readme')) {
  // block the claim
}

// Handle scope change mid-session
import { handleScopeChange } from '@lannguyensi/grounding-wrapper';
const updated = handleScopeChange(session, 'new-keyword');

The full grounding stack

| # | Tool | Role | |---|------|------| | 1 | domain-router | Scope resolution | | 2 | readme-first-resolver | Doc reading | | 3 | debug-playbook-engine | Playbook sequencing | | 4 | evidence-ledger | Fact tracking | | 5 | claim-gate | Claim gating | | 6 | runtime-reality-checker 🌋 | Runtime verification | | 7 | hypothesis-tracker 🌋 | Hypothesis management | | 8 | agent-entrypoint | Repo entry manifest | | | grounding-wrapper | Orchestrates all of the above |