automation

safe-chain: Protect Code

Prevent malicious code installs with safe-chain, for founders using npm, yarn and more
intermediateโฑ 30 minutes๐Ÿ’ต Free
1,741 stars111 forksJavaScriptGuide quality 9/10Updated 9/2/2026100% free ยท open source
What it is

Prevent malicious code from being installed on your project with safe-chain.

Real use case example

"A founder, Sarah, wants to ensure her open-source project uses safe and trusted packages. She sets up safe-chain in her project's npm scripts and runs it before adding any new dependencies. Safe-chain scans the packages and alerts her to potential security risks, allowing her to make informed decisions about which packages to use."

Best insideSelf-hosted
When to use it
  • โ€ขWhen using npm or yarn to install dependencies for your project
  • โ€ขWhen running scripts with npx or pnpx that may install unknown code
  • โ€ขWhen managing dependencies with pip, uv, or poetry and want to ensure safety
Ready-to-paste prompt
npx @aikidosec/safe-chain verify --package-manager npm --lock-file package-lock.json
Heads up: Make sure you have the necessary permissions and access rights to execute the safe-chain commands, as some features may require elevated privileges or specific environment variables to be set
Saves to your device
Use with Claude
New

Skip the builder โ€” one click puts this in Claude, Cursor, Antigravity and more.

โœ… Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly โ€” no install
Claude Code
mkdir -p ~/.claude/skills/safe-chain && curl -fsSL https://workflowstacks.com/api/skills/safe-chain/claude-skill -o ~/.claude/skills/safe-chain/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go โ€” no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

Quick Actions
Details
Creator
AikidoSec
Language
JavaScript
Category
automation
Published
7/11/2025

Are you the creator of this tool? Claim your listing โ†’ and earn 85% of every sale.