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

archmind

v1.0.3

Published

Catches conflicting AI-generated auth logic before it ships.

Readme

ArchMind

Catches conflicting AI-generated auth logic before it ships.

AI coding tools (Cursor, Copilot, Claude Code) create conflicting implementations across sessions because they have no persistent memory. ArchMind detects when two AI sessions write competing auth logic that both exist in your codebase.

Install & Run

npx archmind scan

Or install globally:

npm i -g archmind

Setup

If you didn't install globally, you can run setup directly via npx:

npx archmind setup

Enter your OpenRouter API key once. Config saves to ~/.archmind.

Usage

In any git repo with staged or unstaged changes:

archmind scan

What it detects

  • JWT validation logic that differs between files
  • Competing auth middleware with different rules
  • Conflicting token formats (e.g. both JWT and OAuth claiming Bearer header)
  • Functions named verifyToken, validateToken, checkAuth with different behavior
  • Stateless vs stateful auth approaches that contradict each other
  • Permission models returning different results for the same user

Example output

Analyzing auth changes...
  Reading changed files...
  Checking auth logic...

⚠ Possible auth inconsistency found — 3 conflicts

  1. JWT and OAuth both use Authorization: Bearer header, causing token ambiguity.
     - auth/jwt_auth.py
     - auth/oauth_auth.py

  2. Permission models (RBAC, ABAC) return different results for same user.
     - auth/permission_manager.py

🤝 Share Your Findings

Did ArchMind catch a conflict? Paste the CLI output directly into a GitHub issue, Slack thread, or Cursor/Claude forum. The output is intentionally designed to be clean, self-contained, and perfectly formatted for engineering discussions.

Flags

archmind scan              Default scan
archmind scan --verbose    Show debug info (files found, model used, raw response)

How it works

  1. Reads git diff to find changed files
  2. Filters for auth-related files (paths containing auth, middleware, token, jwt, session, guard)
  3. Sends file contents to an LLM via OpenRouter
  4. Returns conflicts with confidence levels (critical, high, medium)

Only surfaces high-confidence findings. Silence > Noise.

Requirements

  • Node.js 18+
  • Git repository
  • OpenRouter API key (free tier available)

License

MIT