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

@cotal-ai/connector-claude-code

v0.79.0

Published

Cotal connector for Claude Code: an installed plugin that joins a session to the mesh.

Readme

@cotal-ai/connector-claude-code

The Claude Code adapter: a bundled, installed plugin plus claude/channel push that turns a real claude session into a Cotal mesh peer. A thin client over @cotal-ai/connector-core.

Tier: extensions/. Peer-depends @cotal-ai/core; self-registers on import.

See docs/connect-claude.md for the integration guide, and the root AGENTS.md for the tier rules.

Claude Code hook reference

The full set of Claude Code hook events, grouped by lifecycle — this is Claude product surface, kept here with the adapter rather than in the protocol docs. Source: code.claude.com/docs/en/hooks (Claude Code 2.1.16x, 31 events; the StopFailure matchers re-read off 2.1.237's own hook schema, which carries two the earlier list was missing). The connector consumes the subset mapped in docs/connect-claude.md (presence mapping + message delivery); the rest are listed for completeness.

Once per session

| Event | Fires when | Matchers | |---|---|---| | SessionStart | a session begins or resumes | startup, resume, clear, compact | | Setup | started with --init-only, or --init/--maintenance in -p | init, maintenance | | SessionEnd | a session terminates | clear, resume, logout, prompt_input_exit, bypass_permissions_disabled, other |

Once per turn

| Event | Fires when | Matchers | |---|---|---| | UserPromptSubmit | user submits a prompt, before Claude processes it | (none) | | UserPromptExpansion | a typed command expands into a prompt | command name | | Stop | Claude finishes responding | (none) | | StopFailure | turn ends due to an API error | rate_limit, overloaded, authentication_failed, oauth_org_not_allowed, account_on_hold, billing_error, invalid_request, model_not_found, server_error, max_output_tokens, unknown |

Per tool call (agentic loop)

| Event | Fires when | Matchers | |---|---|---| | PreToolUse | before a tool call executes (can block) | tool name | | PermissionRequest | a permission dialog appears | tool name | | PermissionDenied | a tool call denied by auto-mode classifier | tool name | | PostToolUse | after a tool call succeeds | tool name | | PostToolUseFailure | after a tool call fails | tool name | | PostToolBatch | after a parallel tool batch resolves, before next model call | (none) | | SubagentStart | a subagent is spawned | agent type | | SubagentStop | a subagent finishes | agent type | | TaskCreated | a task is created via TaskCreate | (none) | | TaskCompleted | a task is marked completed | (none) | | TeammateIdle | an agent-team teammate is about to go idle | (none) |

Compaction

| Event | Fires when | Matchers | |---|---|---| | PreCompact | before context compaction | manual, auto | | PostCompact | after compaction completes | manual, auto |

Async / background

| Event | Fires when | Matchers | |---|---|---| | CwdChanged | working directory changes | (none) | | FileChanged | a watched file changes on disk | literal filenames | | ConfigChange | a config file changes mid-session | user_settings, project_settings, local_settings, policy_settings, skills | | InstructionsLoaded | CLAUDE.md / .claude/rules/*.md loaded into context | session_start, nested_traversal, path_glob_match, include, compact | | Notification | Claude Code emits a notification | permission_prompt, idle_prompt, auth_success, elicitation_dialog, elicitation_complete, elicitation_response | | MessageDisplay | while assistant message text is displayed (display-only) | (none) |

Worktree

| Event | Fires when | Matchers | |---|---|---| | WorktreeCreate | a worktree is created (--worktree / isolation: "worktree") | (none) | | WorktreeRemove | a worktree is removed | (none) |

MCP elicitation

| Event | Fires when | Matchers | |---|---|---| | Elicitation | an MCP server requests user input during a tool call | MCP server name | | ElicitationResult | after the user responds, before it is sent to the server | MCP server name |