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

@prism-guard/cli

v1.0.4

Published

Open-source static analysis CLI for React & TypeScript. Detect architecture issues, performance anti-patterns, code quality problems, and generate HTML, JSON & SARIF reports.

Downloads

427

Readme

Prism Guard

Prism Guard is an open-source static analysis tool for React and TypeScript. It detects architecture violations, React anti-patterns, performance bottlenecks, and code quality issues before they reach production.

Analyze architectural quality, React anti-patterns, performance bottlenecks and code health with a single command.


Features

  • 🏗️ Frontend Architecture Analysis
  • ⚛️ React Best Practices
  • ⚡ Performance Anti-pattern Detection
  • 📊 Architecture Quality Score (0–100)
  • 📄 Interactive HTML Dashboard
  • 📦 JSON Reporter
  • 🛡️ SARIF Export
  • 💻 Rich CLI Output
  • 🚀 Zero Configuration

Installation

npm install -D @prism-guard/cli

or

npx @prism-guard/cli analyze

Quick Start

Analyze your project

npx prism-guard analyze

Generate an interactive HTML report

npx prism-guard analyze --html

Generate JSON

npx prism-guard analyze --json

Generate SARIF

npx prism-guard analyze --sarif

Sample Output

═══════════════════════════════════════
              Prism Guard
═══════════════════════════════════════

Score          : 88/100
Files          : 245
Rules          : 21
Errors         : 2
Warnings       : 14
Info           : 7

═══════════════════════════════════════

Top Rules

• no-inline-callback
• expensive-render
• circular-import

Worst Files

78/100  Dashboard.tsx
84/100  UserList.tsx

Recommendations

✔ Memoize expensive renders
✔ Break circular imports
✔ Replace array index keys

Interactive HTML Report

Generate a beautiful interactive dashboard.

npx prism-guard analyze --html

Includes

  • Architecture Score
  • Rule Distribution
  • Worst Files
  • Searchable Issues
  • Pagination
  • Recommendations
  • File Scores
  • Dashboard Cards

Interactive HTML Dashboard

Dashboard

Search, Sort & Pagination

Issues

Rules

React

  • No Inline Callback
  • No Array Index Key
  • Nested Components
  • Excessive useEffect
  • Large Components
  • Anonymous Components
  • Unstable Context

Performance

  • Blocking Imports
  • Dynamic Import Suggestions
  • Lazy Images
  • Bundle Budget
  • Expensive Render Detection

Architecture

  • Circular Imports
  • Feature Boundaries
  • Folder Boundaries
  • Dependency Direction
  • Component Complexity
  • Excessive Props
  • Duplicate Hooks
  • Cognitive Complexity

CLI

prism-guard analyze

Options

--html
--json
--sarif
--config
--output
--cwd
--verbose

Example

npx prism-guard analyze --html

Creates

prism-report.html

Roadmap

  • [x] React Rules
  • [x] Performance Rules
  • [x] Architecture Rules
  • [x] HTML Dashboard
  • [x] JSON Reporter
  • [x] SARIF Reporter
  • [x] Scoring Engine
  • [ ] Auto Fixes
  • [ ] VS Code Extension
  • [ ] GitHub Action
  • [ ] AI-Powered Fix Suggestions
  • [ ] Custom Rule SDK

Why Prism Guard?

Traditional linters answer:

"Is this code syntactically correct?"

Prism Guard answers:

  • Is this component becoming too complex?
  • Are React best practices being followed?
  • Are architectural boundaries respected?
  • Which files are hurting maintainability?
  • Where are performance bottlenecks?
  • What should the team fix first?

License

MIT


Author

Ritumoni Sarma

GitHub

https://github.com/Riturathin


⭐ If Prism Guard helps improve your codebase, consider starring the repository.