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

@organon-methodology/tools

v0.5.2

Published

CLI tools and MCP server for the Organon Methodology - auto-generation, verification, and discovery

Downloads

697

Readme


type: navigation scope: domain name: tools version: "1.0" summary: CLI and MCP server for the Organon methodology — validate frontmatter, run verification gates, query organon files token_estimate: 1700 provides: [architecture, cli-commands, mcp-server, configuration, programmatic-api] parent: packages audience: [llm, human]

Organon Tools

CLI tools and MCP server for the Organon Methodology — enforce documentation constraints, validate frontmatter, and give agents immediate methodology context.

Organon (Start Here)

This project uses the Organon methodology to govern its own development:

  • ETHOS.md — Constraints for developing organon-tools (what rules must never be violated)
  • PHILOSOPHY.md — Design decisions and trade-offs (why TypeScript, why CLI, why fail-fast)
  • dev/ — Design docs, RFCs, and future tool ideas

For contributors: Read ETHOS.md first to understand invariants and principles. Read PHILOSOPHY.md to understand why the tool is built this way.

Architecture

packages/tools/src/
├── core/               ← Pure logic (no I/O, no console, no process.exit)
│   ├── types.ts        ← FileSystem interface, result types, config
│   ├── config.ts       ← Convention-based config discovery
│   ├── frontmatter-parser.ts
│   ├── node-fs.ts      ← NodeFileSystem implementation
│   ├── validate-frontmatter.ts   ← 4-stage validation
│   ├── generate-frontmatter.ts   ← Auto-generate from content
│   ├── query.ts        ← Filter by scope/type/priority/budget
│   ├── health.ts       ← Coverage, validation, tokens, freshness
│   ├── find.ts         ← Cross-domain discovery
│   ├── verify-triplets.ts  ← Protocol↔workflow↔tool bindings
│   ├── suggest-tools.ts    ← Automation tier suggestions
│   └── verify.ts       ← Gate registry orchestrator
├── cli/                ← Thin yargs adapter
│   └── commands/       ← validate, generate, query, health, find, verify, export, mcp
├── mcp/                ← Thin MCP adapter
│   ├── server.ts       ← stdio transport
│   ├── tools.ts        ← 9 MCP tools
│   ├── resources.ts    ← 4 MCP resources
│   └── prompts.ts      ← 4 MCP prompts
└── index.ts            ← Public API

CLI Commands

# Validate frontmatter (schema, references, truthfulness, consistency)
organon validate
organon validate book-llms/ETHOS.md
organon validate --stages 1 3

# Generate frontmatter from file content
organon generate book-llms/ETHOS.md
organon generate book-llms/ETHOS.md --update

# Query organon files by metadata
organon query --scope=meta
organon query --budget=20000
organon query --task=genesis_tool_impl

# Health dashboard
organon health
organon health --detailed --fix-suggestions

# Cross-domain discovery
organon find --file=src/domain/genesis/Store.ts
organon find --scope=domain
organon find --name=frontmatter

# Run verification gates
organon verify
organon verify --gate frontmatter triplets

# Export knowledge graph as JSON
organon export
organon export --no-pretty

# Start MCP server
organon mcp

MCP Server

Start with organon mcp. Exposes:

9 Tools: organon_validate_frontmatter, organon_generate_frontmatter, organon_query, organon_health, organon_find, organon_verify_triplets, organon_suggest_tools, organon_export, organon_verify

4 Resources: organon://index, organon://file/{path}, organon://scope/{scope}, organon://health

4 Prompts: implement-feature, review-changes, create-organon, evolve-organon

Claude Code Integration

{
  "mcpServers": {
    "organon": {
      "command": "npx",
      "args": ["tsx", "packages/tools/src/cli/index.ts", "mcp", "--project-root", "."]
    }
  }
}

Configuration

Place organon.config.json at your project root:

{
  "organonPaths": ["book-llms", "organon", "."],
  "organonGlobs": ["**/ETHOS.md", "**/PHILOSOPHY.md", "**/PROTOCOL.md", "**/README.md"],
  "ignorePatterns": ["node_modules/**", "dist/**"],
  "workflowPaths": {
    "claudeCode": ".claude/skills",
    "cursor": ".cursor/rules"
  },
  "freshnessThresholdHours": 720
}

Without a config file, conventions are used: scans for organon/ and book-llms/ directories automatically.

Programmatic API

import { validateFrontmatter, resolveConfig, NodeFileSystem } from '@organon-methodology/tools';

const fs = new NodeFileSystem();
const config = await resolveConfig('.', fs);
const result = await validateFrontmatter({ projectRoot: '.', config, fs });

Development

npm install
npm run build
npm run dev          # watch mode
npm test             # vitest
npm run organon      # run CLI locally

License

MIT