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

zyph

v0.0.7

Published

A dependency scanner that detects suspicious code.

Readme

Zyph - Secure Your Dependencies

License: MIT

Zyph is an open-source dependency scanner designed to help developers secure their projects by analyzing the contents of the node_modules folder for suspicious or malicious code patterns. Using advanced static analysis heuristics, Zyph flags potential security risks—ranging from dangerous dynamic code execution (e.g., eval() or Function() usage) to signs of code obfuscation.

Features

  • Real-time Scanning: Recursively scan the node_modules folder to analyze every JavaScript file.
  • Advanced Heuristics: Uses a comprehensive set of heuristics to detect dangerous patterns, including context-aware analysis.
  • Customizable Rules: The heuristics are maintained in a separate file (heuristics.js) to allow easy updates and customizations.
  • CLI Integration: Run scans directly from your terminal using a simple command.
  • Clear Reporting: Get detailed, file-by-file reports highlighting potential issues with severity levels.

Installation

Prerequisites

Installing Locally

Clone the repository and install the dependencies:

git clone https://github.com/SouthernCode/zyph-npm.git
cd zyph-npm
npm install

Testing Locally Without Publishing

To test your changes locally without pushing to npm:

1. Using npm link

npm link
# In another project directory, link the package:
npm link zyph
# Now you can run:
zyph scan

2. Direct Execution

Run the CLI script directly from the repository:

node bin/cli.js

3. Local npm Install

npm install --save ../path/to/zyph-npm

Usage

Once installed or linked, you can run a scan by executing the following command in your project directory (which contains a node_modules folder):

zyph scan

You should see output similar to:

🚀 Running Zyph Security Scan...

🔍 Scanning node_modules/ for suspicious code...
🚨 Issues found in node_modules/some-package/file.js:
  [HIGH] EVAL_USAGE: Direct use of eval() can execute arbitrary code. Unsanitized input can lead to remote code execution.
  [MEDIUM] DYNAMIC_TIMEOUT_INTERVAL: Using setTimeout with string arguments may execute dynamically generated code.
...

✅ Scan complete.

Project Structure

  • bin/cli.js
    Main entry point for the command-line interface. This file handles scanning logic, AST traversal, and reporting.

  • heuristics.js
    Contains an array of advanced heuristics for detecting malicious or suspicious code patterns. Each heuristic includes an ID, description, severity level, and custom detection logic.

  • package.json
    Defines the project metadata, dependencies, scripts, and executable commands.

Contributing

We welcome contributions to help improve Zyph. If you'd like to contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Submit a pull request with a detailed description of your changes.

Please review our CONTRIBUTING.md guidelines before submitting your pull request.

License

Zyph is licensed under the MIT License. See the LICENSE file for details.

Support

If you encounter any issues or have suggestions for improvements, please open an issue on our GitHub repository.


Stay secure and happy coding with Zyph!