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

@gotong/hub-steward

v0.1.0

Published

Gotong hub steward (管家) — an LlmAgent that turns a member's plain-language instruction into a STRUCTURED PROPOSAL over their own managed agents + workflows. The steward never executes writes itself: the host re-classifies each action (safe / dangerous / c

Readme

@gotong/hub-steward — the hub steward (管家)

An LlmAgent that lets a member manage their own hub resources by talking to it in plain language — the OpenClaw / Hermes "tell it and it configures things" experience, made safe by Gotong's North Star.

member 大白话指令
   │  「给我建一个总结邮件的助手」 / 「把工单工作流改得更礼貌些」 / 「删掉那个助手」
   ▼
HubStewardAgent (LLM)  ──►  StewardProposal { reply, actions: StewardAction[] }   ← 只提议,不执行
   ▼
host classify (server-authoritative)
   ├─ safe       → 内联执行(复用 HostMeAgentService / MeWorkflowEditService)
   ├─ dangerous  → 收件箱二次确认(delete_agent)          ┐ 用户硬约束:
   ├─ cross_hub  → 收件箱二次确认(跨 hub 工作流)          ┘ 危险 + 跨 hub 都再次确认
   └─ forbidden  → 拒绝执行,指路设置(凭证 / peer / 安全 / RBAC)

What's in the box

  • types.ts — the action vocabulary (StewardAction, StewardActionTier, StewardProposal, ClassifiedProposal). Pure data, no runtime deps.
  • classify.tsclassifyStewardAction(action, ctx): the server-authoritative, conservative risk tiering where the two hard constraints live. Reuses authorizeAgentAction (@gotong/identity) as a forward-looking backstop for the highest-blast-radius verbs.
  • prompt.ts — the system prompt + parseStewardProposal: the LLM-reply → StewardProposal pipeline. A security boundary — only well-formed actions survive validation; malformed ones are dropped (never executed).
  • agent.tsHubStewardAgent extends LlmAgent: turns {instruction, snapshot} into a StewardProposal. Single-shot structured output (no tool loop), so it's deterministically testable with a mock provider.

North Star

The steward proposes; a human reviews + executes. It never silently self-modifies the hub (unlike OpenClaw's "Developer Mode"). Dangerous and cross-hub actions always route through a person via the Phase 16 inbox — the framework runs no autonomous decision, and the person is a Participant. The steward also cannot exceed what the member could do by hand: execution reuses the member services, which carry the resource_grants RBAC + member limits.

Host wiring (the plan / apply orchestration + the approval broker) lives in @gotong/host; this package is just the agent + the shared vocabulary.