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

@playform/ets-hook-dsh-workspace-govern

v0.2.0

Published

The workspace-govern hook: a DeepSeek plugin that IS the governance gate of the workspace family's invisible flow - the step where the operate family's proposals become effects ONLY through the gate. On every tools/pre-execute call (and for every proposal

Readme

@playform/hook-dsh-workspace-govern

v0.1.0 - UNPUBLISHED - plan: Workspace-Family/GOVERN

The role

The workspace-govern hook: the governance gate of the workspace family's invisible flow - operate proposes → the govern gates → the authority licenses → the approve binds. On every gated tools/pre-execute call, and for every proposal handed to the workspaceGovern service, the hook runs the four independent means-checks on the ProposedChange before any AuthorizationDecision downstream.

An intent must not authorize its own means: the gate checks the means; the intent is never the permission.

The plugin ships disabled (the idle-forever posture) and enables only by an explicit ACTIVATE.

The four independent checks

| Obligation | Semantics | Failure behavior (recovery table) | | --------------- | ------------------------------------------------------------------ | --------------------------------- | | contributes | The proposal declares a non-empty contribution to the operation | fail-open | | scope | The target matches the authorized-scope allowlist | fail-closed | | policy | The policy table lookup by proposal kind (allow / deny / escalate) | fail-open (a table read failure) | | preconditions | The proposal's declared preconditions are satisfied | fail-open |

The fail-open recovery table is the honest-recovery contract (Documentation/Plans/WORKSPACE-FAMILY-V4-1.md section 3.9): per-obligation failure behavior, never a silent default. An override list in the config replaces rows.

The gate outcomes

  • pass - the downstream decision is returned unchanged (the checks saw no denial and no policy rule forced otherwise).
  • deny - the waterfall returns { kind: "deny", reason: "govern: ..." }: the proposals become the effects ONLY through the gates.
  • escalate - the waterfall returns { kind: "ask", ... }: the approval is the approve family's step, not this one.

Recursion prevention: every proposal carries the operation identifier, the parent identifier and the event category; an operation identifier gated more than loopBound times is dropped with a ledger line.

The configuration (all volatile)

| Field | Default | Meaning | | ----------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | | enabled | false | the master switch | | log / logFile | true / ~/.dsh/playform/ets-hook-dsh-workspace-govern.log | the durable ledger (one log per module) | | tools | write, edit, bash, applyPatch | the gated tool names | | scope | [] (unrestricted) | the authorized-scope allowlist (globs) | | exclude | node_modules/**, **/Target/**, **/.git/** | never gated, in silence | | policy | [] | the policy table ({kind, decision, operation?}) | | recovery | [] | the recovery-table overrides ({obligation, behavior}) | | loopBound | 4 | the recursion-prevention loop bound | | maxDecisions | 500 | the decision ring bound | | automation | D6 defaults | the per-action allowlist (the shared factory block; keyed automation - policy is the decision rule table) |

The policy block (D6) - the automation key

The config carries the shared per-action allowlist (automation: Policy(), composed from the factory's block), mapped to State.Allow. The key is automation, not policy, because policy is already this hook's decision rule table (a different contract; the plugin-dsh-route precedent):

| action | default | action | default | | --------- | ------- | --------- | --------- | | read | auto | write | approve | | index | auto | commit | approve | | record | auto | spawn | approve | | suggest | auto | message | auto |

This hook's action class is RECORD (it records a gate decision), and that class is automatic. The hook has NO gated action - it never writes a file, commits a batch or spawns an agent - so the block documents the posture and refuses nothing.

The block is one volatile object, so a policy flip is hot-editable without a remount; a resolved pack's policy section overrides the defaults per action (the wiring is the next refinement).

Service

ctx.workspaceGovern (registered from apply):

  • gate(proposal) - run the four checks on one proposal record, get the gate decision.
  • decisions(limit?) - the decision ring, newest first.
  • statistics() - { decisions, sequence }.

The ledger (module-owned, byte-stable)

govern: activated (tools=<n>, policy=<n>)
govern: disabled (enabled=false)
govern: passed <operation> (<kind> <target>)
govern: denied <operation> (<reason>)
govern: escalated <operation> (approval required)
govern: recovery <obligation> (fail-open)
govern: loop <operation> (recursion guard)
govern: observed <operation> (accepted | errored)

The plan

  • Workspace-Family/GOVERN - the govern gate.
  • The plugin ships disabled (the idle-forever posture) and enables only by an explicit ACTIVATE.

License

CC0-1.0.