cc-hook-registry 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -6
- package/index.mjs +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,22 +28,25 @@ npx cc-hook-registry stats # Registry statistics
|
|
|
28
28
|
|
|
29
29
|
| Category | Hooks | What They Do |
|
|
30
30
|
|----------|-------|-------------|
|
|
31
|
-
| safety |
|
|
31
|
+
| safety | 14 | Block destructive commands, protect files, secrets |
|
|
32
32
|
| quality | 4 | Syntax checks, commit quality, edit validation |
|
|
33
33
|
| utility | 3 | Cleanup, debugging, session handoff |
|
|
34
34
|
| monitoring | 2 | Context window, cost tracking |
|
|
35
|
+
| ux | 2 | Desktop notifications, sound alerts |
|
|
36
|
+
| framework | 2 | Python + TypeScript/Bun frameworks |
|
|
35
37
|
| approve | 1 | Auto-approve safe compound commands |
|
|
36
|
-
| ux | 1 | Desktop notifications |
|
|
37
|
-
| framework | 1 | Python hook framework |
|
|
38
38
|
| security | 1 | Prompt injection defense |
|
|
39
39
|
|
|
40
|
-
##
|
|
40
|
+
## 29 Hooks
|
|
41
41
|
|
|
42
42
|
The registry includes hooks from:
|
|
43
|
-
- **cc-safe-setup** (
|
|
43
|
+
- **cc-safe-setup** (22 hooks) — `npx cc-safe-setup`
|
|
44
44
|
- **claude-code-safety-net** (1,185★) — TypeScript safety hooks
|
|
45
|
-
- **claude-code-hooks
|
|
45
|
+
- **karanb192/claude-code-hooks** (298★) — JavaScript safety
|
|
46
|
+
- **johnlindquist/claude-hooks** (329★) — TypeScript/Bun
|
|
47
|
+
- **claude-code-hooks-mastery** (3,386★) — Python framework
|
|
46
48
|
- **claude-hooks** by lasso-security — Prompt injection defense
|
|
49
|
+
- **awesome-claude-code** by pascalporedda — Sound notifications
|
|
47
50
|
|
|
48
51
|
## How It Works
|
|
49
52
|
|
package/index.mjs
CHANGED
|
@@ -64,6 +64,19 @@ const REGISTRY = [
|
|
|
64
64
|
{ id: 'safety-net', name: 'Safety Net (Full Suite)', category: 'safety', source: 'kenryu42/claude-code-safety-net', trigger: 'PreToolUse', desc: 'TypeScript safety hooks with configurable severity levels', tags: ['typescript', 'safety', 'configurable'], install: 'npx @anthropic-ai/claude-code-safety-net', stars: 1185 },
|
|
65
65
|
{ id: 'hooks-mastery', name: 'Hooks Mastery (Python)', category: 'framework', source: 'disler/claude-code-hooks-mastery', trigger: 'All', desc: 'Python hooks covering all hook events + LLM integration', tags: ['python', 'mastery', 'all-events', 'llm'], install: 'git clone + copy', stars: 3386 },
|
|
66
66
|
{ id: 'prompt-injection-defender', name: 'Prompt Injection Defender', category: 'security', source: 'lasso-security/claude-hooks', trigger: 'PreToolUse', desc: 'YAML-based prompt injection pattern matching', tags: ['prompt-injection', 'security', 'yaml'], install: 'git clone + install.sh', stars: 161 },
|
|
67
|
+
|
|
68
|
+
// karanb192/claude-code-hooks
|
|
69
|
+
{ id: 'karanb192-block-dangerous', name: 'Block Dangerous (JS)', category: 'safety', source: 'karanb192/claude-code-hooks', trigger: 'PreToolUse', desc: 'JavaScript safety hooks with configurable safety levels (critical/high/strict)', tags: ['javascript', 'safety', 'configurable', 'levels'], install: 'copy hook-scripts/', stars: 298 },
|
|
70
|
+
{ id: 'karanb192-protect-secrets', name: 'Protect Secrets (JS)', category: 'safety', source: 'karanb192/claude-code-hooks', trigger: 'PreToolUse', desc: 'JavaScript hook blocking Read/Edit/Write of sensitive files', tags: ['javascript', 'secrets', 'files', 'read'], install: 'copy hook-scripts/', stars: 298 },
|
|
71
|
+
|
|
72
|
+
// johnlindquist/claude-hooks
|
|
73
|
+
{ id: 'johnlindquist-hooks', name: 'Claude Hooks (Bun/TS)', category: 'framework', source: 'johnlindquist/claude-hooks', trigger: 'All', desc: 'TypeScript hooks with Bun runtime, notification and session tracking', tags: ['typescript', 'bun', 'notification', 'session'], install: 'bun install', stars: 329 },
|
|
74
|
+
|
|
75
|
+
// pascalporedda/awesome-claude-code
|
|
76
|
+
{ id: 'sound-notification', name: 'Sound Notification', category: 'ux', source: 'pascalporedda/awesome-claude-code', trigger: 'Notification', desc: 'Play audio alerts when Claude needs attention or completes a task', tags: ['sound', 'audio', 'notification', 'alert'], install: 'git clone + copy', stars: 73 },
|
|
77
|
+
|
|
78
|
+
// cc-safe-setup additional examples
|
|
79
|
+
{ id: 'env-source-guard', name: 'Env Source Guard', category: 'safety', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Block sourcing .env files into shell environment', tags: ['env', 'source', 'bash', 'environment'], install: 'npx cc-safe-setup --install-example env-source-guard', issue: '#401' },
|
|
67
80
|
];
|
|
68
81
|
|
|
69
82
|
const args = process.argv.slice(2);
|