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

@kidkender/archmind

v0.2.1

Published

Execution topology intelligence for Laravel — trace routes, detect regressions, find security gaps. No LLM required.

Downloads

446

Readme

@kidkender/archmind

CLI for ArchMind — catch breaking changes in your Laravel execution flow before they ship.

npm install -g @kidkender/archmind
archmind verify --project .

No AI model. No API key. Works offline. CI-ready.


The problem

Your tests pass. Your code review looks fine. But somewhere in the diff:

  • Someone removed DB::transaction() from an order creation flow
  • A middleware was accidentally dropped from an admin route
  • A tenant where clause got removed from a model query

These don't cause test failures. They cause production incidents.


What it does

Parses your Laravel app into a semantic execution graph, saves a baseline, and fails your CI if the execution topology changes unexpectedly.

POST /orders  [before]                    POST /orders  [after]
├─ auth:sanctum                           ├─ auth:sanctum
├─ ResolveTenant                          └─ OrderController::store
└─ OrderController::store
   └─ DB::transaction          ←  GONE
      ├─ Order::create
      └─ OrderCreated (event)
✘ TOPOLOGY REGRESSION: POST /orders
  lost: [transaction_boundary]

If intentional, run: archmind verify --project . --update

Commands

# Trace the execution graph of a route
archmind trace --project /path/to/app "POST /orders"

# Find security gaps across all routes
archmind findings --project /path/to/app

# Save baseline then verify on every PR
archmind verify --project /path/to/app --update   # save baseline
archmind verify --project /path/to/app            # check (exit 1 on regression)

# What routes are affected if I change this service?
archmind deps --project /path/to/app OrderService

Example: findings output

POST /api/vaults
  ! HIGH    missing_authorization
            Route is authenticated but has no policy or gate
            Any logged-in user can create vaults

GET /api/products/{product}
  ! MEDIUM  exposed_read_endpoint
            GET route with business logic and no authentication

PUT /api/orders/{order}
  ! MEDIUM  fat_controller
            OrderController depends on 7 distinct services

Example: trace output

POST /api/orders
└─ auth:sanctum  [authentication_gate]
   └─ ResolveTenant::handle  [middleware]
      └─ OrderController::store  [controller]
         ├─ StoreOrderRequest  [form_request]
         └─ OrderService::createOrder  [service_call]
            └─ DB::transaction  [transaction_boundary]
               ├─ Order::create  [transactional_write]
               └─ OrderCreated → NotifyUser  [transaction_escape ⚠]

Detectors

| Finding | Severity | Description | |---------|----------|-------------| | missing_authorization | HIGH | Authenticated route with no policy or gate check | | missing_policy | HIGH | Controller calls authorize() but Policy class missing | | resource_unprotected | CRITICAL | Route-model-binding with no ownership check | | resource_mismatch | HIGH | Auth guards a different resource than the one accessed | | fat_controller | LOW | Controller depends on 5+ distinct service classes | | exposed_read_endpoint | MEDIUM | GET route with business logic and no authentication | | over_authorized_route | INFO | 3+ separate authorization layers on one route | | dead_middleware | MEDIUM | Middleware registered but not connected to pipeline | | circular_dependency | HIGH | Service class dependency cycle (A → B → A) | | event_before_commit | HIGH | Event dispatched inside transaction before commit | | missing_tenant_scope | HIGH | Model query without tenant constraint |


CI integration

# .github/workflows/topology-guard.yml
- name: Install archmind
  run: npm install -g @kidkender/archmind

- name: Verify topology
  run: archmind verify --project .

First-time setup (run once, commit the result):

archmind verify --project . --update
git add .archmind/baselines/
git commit -m "chore: add topology baseline"

MCP server

For AI assistant integration (Claude Code), use the companion package:

npm install -g @kidkender/archmind-mcp

See @kidkender/archmind-mcp.


Requirements

  • Node.js ≥ 18
  • Laravel project (≥ 8, tested on 10/11/12)

License

MIT