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

matimo

v0.1.3

Published

A framework-agnostic SDK with pre-built providers, a skills knowledge layer, MCP out of the box, and agents that autonomously build new capabilities — governed by a policy engine you control.

Readme

Matimo — Enable AI Agents To Build Themselves

The TypeScript AI SDK with Meta-Tools, Policy Engine, Governance and Human-in-the-Loop Control

Give your agents 137+ production-ready tools to start. Then activate 10 meta-tools that let them create, validate, and approve new capabilities at runtime — governed by your policy engine with human approval workflows for critical actions.

Why this matters:

  • 🔧 Meta-Tools: Agents write new tool definitions in YAML, validate schemas, approve for production, and hot-reload — all mid-conversation. No restart. No redeployment.

  • 🛡️ Policy Engine: Classify every action by risk level (low/medium/high/critical). Block dangerous operations. Quarantine draft tools. Enforce your rules automatically.

  • 🤝 Human-in-the-Loop (HITL): Critical tools require human approval before execution. Configurable timeouts, approval manifests, audit trails. You stay in control.

  • 🌐 Universal Integration: One YAML definition works across TypeScript, LangChain, Claude MCP, OpenAI. Write once, run everywhere.

Python SDK? Install matimo on PyPI — full feature parity with TypeScript.


See It In Action

// Agent encounters a new API mid-task
const result = await matimo.execute('matimo_create_tool', {
  name: 'stripe_create_payment',
  definition: yamlContent, // Agent generates this
});

// Policy engine classifies risk → requires approval
// HITL callback triggers → human reviews and approves

await matimo.execute('matimo_reload_tools');

// Tool is now live and production-ready
const payment = await matimo.execute('stripe_create_payment', {
  amount: 5000,
  currency: 'usd',
});

Other SDKs give agents a toolbox. Matimo gives them a workshop — with safety guardrails.

🎯 v0.1.0 Stable (May 1, 2026) — 2,996 tests · 95%+ coverage · Production-ready

📖 Documentation · 🚀 Quick Start · 📚 API Reference · 🛠️ Add Tools


Quick Start

Installation

# Install the SDK + auto-discover provider tools
npm install matimo
npm install matimo @matimo/slack @matimo/gmail

Minimal Example

import { MatimoInstance } from '@matimo/core';

const matimo = await MatimoInstance.init({
  autoDiscover: true,
});

const result = await matimo.execute('slack_send_channel_message', {
  channel: '#general',
  text: 'Hello from Matimo!',
});

What's Included

  • Core Tools: File I/O, Web fetch, Command execution, Code search
  • MCP Server: Expose all tools via stdio or Streamable HTTP to Claude Desktop, Cursor, Windsurf, and any MCP client (npx matimo mcp)
  • Slack Integration: Send messages, manage channels, reactions, threads, DMs
  • Gmail Integration: Send/read email, manage threads, drafts
  • GitHub Integration: Issues, pull requests, releases, code search
  • Notion Integration: Pages, databases, blocks, search
  • HubSpot Tools: Contacts, companies, deals, tickets
  • Postgres Tools: Query/modify data with safety checks
  • Twilio Tools: Send SMS/MMS, manage messages
  • Mailchimp Tools: Audiences, subscribers, email campaigns
  • Auto-Discovery: Automatic detection of @matimo/* providers from npm
  • Matimo CLI: Tool discovery, setup wizard, MCP config generation
  • OAuth2 Support: Provider-agnostic authorization for Slack, Gmail, GitHub, etc.
  • Framework Support: Factory pattern, Decorator pattern, LangChain
  • Agent Skills System: SKILL.md knowledge files with semantic search, content chunking, and progressive disclosure
  • Policy Engine: 9 security rules, HITL quarantine, hot-reload, SHA-256 integrity tracking, HMAC approvals, audit events

Four Integration Patterns

1️⃣ Factory Pattern (Simplest)

const matimo = await MatimoInstance.init({ autoDiscover: true });
const result = await matimo.execute('calculator', { operation: 'add', a: 5, b: 3 });

2️⃣ Decorator Pattern (Class-Based)

@tool('slack_send_channel_message')
async sendMessage(channel: string, text: string) { /* Auto-executed */ }

3️⃣ LangChain Integration

import { convertToolsToLangChain } from 'matimo';
const tools = convertToolsToLangChain(matimo.listTools(), matimo);

4️⃣ MCP Server (Claude Desktop, Cursor, Windsurf, any MCP client)

# Expose all installed @matimo/* tools via MCP in one command
npx matimo mcp

# Run the setup wizard to get a ready-to-paste client config
npx matimo mcp setup

# HTTP mode for remote access / Docker
npx matimo mcp --transport http --port 3000 --self-signed

See MCP Docs for the full reference.


Installation

npm install matimo

# Install tool providers
npm install @matimo/slack @matimo/gmail

Then use with auto-discovery:

const matimo = await MatimoInstance.init({ autoDiscover: true });

Matimo CLI (Tool Management)

npm install -g @matimo/cli

matimo list          # Show installed packages
matimo search email  # Find tools
matimo install slack # Install a provider

From Source (Contributors)

git clone https://github.com/tallclub/matimo
cd matimo && pnpm install && pnpm build
pnpm test

Skills System

Matimo supports the Agent Skills specification — structured knowledge files (SKILL.md) that teach agents domain expertise at runtime.

// Discover available skills (Level 1 — metadata only)
const skills = matimo.listSkills();

// Load a specific skill (Level 2 — full content)
const skill = matimo.getSkill('slack');

// Load only the sections you need (smart context management)
const content = matimo.getSkillContent('postgres', {
  sections: ['Error Handling', 'Parameterized Queries'],
  maxTokens: 500,
});

// Semantic search across all skills
const results = await matimo.semanticSearchSkills('How do I handle rate limiting?');

Each provider ships one skill with domain knowledge for all its tools. Agents load skills on demand — no context bloat.

See Skills Documentation for the full guide.


Policy Engine & HITL

Matimo includes a defense-in-depth policy engine for agent tool usage:

const matimo = await MatimoInstance.init({
  toolPaths: ['./tools', './agent-tools'],
  policyFile: './policy.yaml', // 9 security rules, domain allowlists
  untrustedPaths: ['./agent-tools'], // Agent-created tools validated here
  onHITL: async (request) => {
    // Human-in-the-loop quarantine
    console.log(`Approve ${request.toolName}? Risk: ${request.riskLevel}`);
    return promptUser();
  },
  onEvent: (event) => auditLog.push(event),
});

// Hot-reload policy at runtime (no restart needed)
await matimo.reloadPolicy('./policy-prod.yaml');

Key features:

  • 9 deterministic security rules (SSRF detection, namespace protection, credential allowlists)
  • HITL quarantine — medium-risk tools pause for human approval instead of auto-rejecting
  • Policy hot-reload — swap policies at runtime with automatic tool re-validation
  • SHA-256 integrity tracking + HMAC approval manifest
  • Full audit trail via structured events

See Policy & Lifecycle Docs for the complete reference.


Adding Tools to Matimo

Create tool providers as independent npm packages. If you build @matimo/<provider> following this pattern, we'll list it in the official docs and README with you as maintainer.

mkdir packages/github
cd packages/github && cat > package.json << 'EOF'
{ "name": "@matimo/github", "type": "module", ... }
EOF

mkdir tools/github-create-issue
cat > tools/github-create-issue/definition.yaml << 'EOF'
name: github-create-issue
parameters:
  owner: { type: string, required: true }
  repo: { type: string, required: true }
  title: { type: string, required: true }
execution:
  type: http
  method: POST
  url: https://api.github.com/repos/{owner}/{repo}/issues
  headers:
    Authorization: "Bearer {GITHUB_TOKEN}"
EOF

Then publish to npm as @matimo/github. Users install and auto-discover:

npm install @matimo/github
# New tools automatically available!
const matimo = await MatimoInstance.init({ autoDiscover: true });

See Adding Tools to Matimo for the complete guide.


Documentation


License

MIT © 2026 Matimo Contributors


Support the Project

  • ⭐ Star the repo
  • 🐛 Open issues for bugs or features
  • 🔀 Submit PRs (see Contributing)
  • 📢 Share on Twitter, Reddit, Discord

Contributors


Star History

Star History Chart