safe-chain: Protect Code
Prevent malicious code from being installed on your project with safe-chain.
Automations to ensure that your open-source dependencies are safe, such as verifying npm packages before adding them to your project.
Using safe-chain helps you avoid potential security risks and maintain a clean project environment by automatically checking packages for malicious code.
"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."
Beginners can start using safe-chain as a way to learn about project security and best practices.
Senior developers and founders use safe-chain for its robust package security checks and to maintain a clean and secure project environment.
You might think safe-chain is only for projects with sensitive data, but it can be used to maintain project security for any open-source project.
Safe-chain prevents malicious code installs by verifying the integrity of packages installed via npm, yarn, pnpm, npx, pnpx, pip, uv, and poetry
npx @aikidosec/safe-chain init- โข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
- 1Run 'npx @aikidosec/safe-chain init' to initialize safe-chain in your project
- 2Configure your package manager to use safe-chain by adding the '--safe-chain' flag to your install commands
- 3Verify the integrity of your installed packages with 'npx @aikidosec/safe-chain verify'
- 4Integrate safe-chain into your CI/CD pipeline to automate security checks
- 5Refer to the GitHub repository for advanced configuration options and troubleshooting guides
npx @aikidosec/safe-chain verify --package-manager npm --lock-file package-lock.json
Safe-chain: Protect Code is a large JavaScript project (~20k lines across 179 code files, plus 28 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit this month, Other license, has a test suite.
- 1README.mdStart here โ what it does and how to install it
- 2package.jsonDependencies and the commands it exposes
Are you the creator of this tool? Claim your listing โ and earn 85% of every sale.
Related skills
More automation tools founders pair with this one.