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-protocol

v0.5.0

Published

Shared type vocabulary for the ArchMind ecosystem — IR graph types, validation contracts, runtime correlation types.

Readme

@kidkender/archmind-protocol

Shared type vocabulary for the ArchMind ecosystem.

Every package in the ArchMind system — parsers, enrichers, testers, reporters — speaks the same language by importing from here. No duplicate type definitions, no cross-package drift.


Installation

npm install @kidkender/archmind-protocol

Zero runtime code. Zero dependencies. Types only.


What's inside

IR Graph types

The execution graph model — one graph per HTTP entrypoint.

import type {
  ExecutionNode,
  ExecutionEdge,
  IntermediateExecutionGraph,
} from "@kidkender/archmind-protocol"

| Type | Description | |------|-------------| | ExecutionNode | A single node: auth gate, validation gate, service call, DB query, etc. | | ExecutionEdge | Directed relationship between two nodes | | IntermediateExecutionGraph | Full graph for one HTTP route (nodes + edges + annotations) | | GraphAnnotation | Security/quality finding attached to the graph |

Validation contract types

Field-level validation rules — framework-agnostic. Used by both NestJS (class-validator) and Laravel (FormRequest) parsers to describe DTO/request fields.

import type {
  DTOSchema,
  FieldSchema,
  FieldType,
  ValidationRule,
  RuleKind,
} from "@kidkender/archmind-protocol"

| Type | Description | |------|-------------| | DTOSchema | A validated class with its file path and field list | | FieldSchema | One field: name, inferred type, list of validation rules | | ValidationRule | One rule: { kind: "email" } or { kind: "min", value: 18 } | | FieldType | "string" \| "number" \| "boolean" \| "object" \| "array" \| "unknown" | | RuleKind | Full union of supported rule kinds ("required", "email", "min", "isIn", ...) |

IR constants

import { IR_NODE_TYPES, IR_EDGE_RELATIONS } from "@kidkender/archmind-protocol"

IR_NODE_TYPES.AUTH_GATE        // "ir:auth_gate"
IR_NODE_TYPES.VALIDATION_GATE  // "ir:validation_gate"

Runtime correlation types

Types for OpenTelemetry-based runtime intelligence.

import type {
  OtelSpan,
  TraceSession,
  CorrelatedSession,
} from "@kidkender/archmind-protocol"

Supported RuleKinds

| Kind | Source | Description | |------|--------|-------------| | required | @IsNotEmpty, required | Field must be present and non-empty | | optional | @IsOptional, nullable, sometimes | Field may be absent | | email | @IsEmail, email | Must be valid email format | | url | @IsUrl, url | Must be valid URL | | uuid | @IsUUID, uuid | Must be valid UUID | | min / max | @Min, @Max, min:N, max:N (numeric) | Numeric bounds | | minLength / maxLength | @MinLength, @MaxLength, min:N/max:N (string) | String length bounds | | integer | @IsInt, integer | Must be integer | | positive / negative | @IsPositive, @IsNegative | Sign constraint | | boolean | @IsBoolean, boolean | Must be boolean | | array | @IsArray, array | Must be array | | arrayMinSize / arrayMaxSize | @ArrayMinSize, @ArrayMaxSize | Array length bounds | | enum | @IsEnum(MyEnum) | Must match enum values | | isIn | @IsIn([...]), in:a,b,c | Must be one of allowed values | | regex | @Matches(/pattern/), regex:/pattern/ | Must match regex | | date | @IsDate, @IsDateString, date | Must be a date | | phone | @IsPhoneNumber | Must be a valid phone number | | ethereumAddress | @IsEthereumAddress | Must be a valid Ethereum address | | alphanumeric | @IsAlphanumeric, alpha_num | Letters and digits only | | numberString | @IsNumberString | Digits-only string |


Used by


License

MIT