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

@soleri/forge

v5.14.10

Published

Scaffold AI agents that learn, remember, and grow with you.

Readme

@soleri/forge

Create production-ready MCP agents in seconds.

Soleri Forge is an MCP server that scaffolds complete Model Context Protocol agents — each with its own knowledge vault, intelligence layer, LLM client, memory system, planning engine, and activation persona. You describe what the agent should do, and Forge generates everything: source code, tests, config, and setup scripts.

Forge is knowledge-agnostic. It builds the infrastructure — you fill in the expertise.

Part of the Soleri framework — building AI assistants that learn, remember, and grow with you.

Quick Start

1. Register with Claude Code

claude mcp add --scope user soleri -- node /path/to/soleri/packages/forge/dist/index.js

2. Create an agent

In any Claude Code session, tell Claude what agent you want:

I need an agent called Gaudi that advises on backend architecture.
Domains: api-design, database, architecture, security, testing, performance.
Principles: "Security is not optional", "Simple beats clever", "Test everything that can break".

Claude will use the forge tool to scaffold it. Under the hood:

forge op:preview params:{ id: "gaudi", name: "Gaudi", ... }   # See what will be created
forge op:create  params:{ id: "gaudi", name: "Gaudi", ... }   # Scaffold the agent

You can also run forge op:guide to get a step-by-step creation flow.

3. Build and activate

cd gaudi
./scripts/setup.sh                # Install, build, register with Claude Code

Then in a new Claude Code session:

Hello, Gaudi!

Your agent is live.

What Gets Generated

Every agent ships with a complete, tested architecture — and zero pre-loaded knowledge:

my-agent/
  src/
    facades/           # MCP tool dispatch (one per domain + core)
    vault/             # SQLite + FTS5 full-text search
    brain/             # TF-IDF intelligence layer
    llm/               # Unified OpenAI/Anthropic client (optional)
    intelligence/      # Domain knowledge (empty JSON bundles)
    identity/          # Agent persona and principles
    activation/        # CLAUDE.md injection + activation flow
    planning/          # Multi-step plan state machine
    __tests__/         # Generated test suites
  scripts/
    setup.sh           # One-command install, build, register
    copy-assets.js     # Build script for intelligence data

Core Capabilities

| Capability | What It Does | | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | | Knowledge Vault | SQLite-backed storage with FTS5 full-text search and BM25 ranking | | Intelligence Layer (Brain) | TF-IDF hybrid scoring across 5 dimensions, auto-tagging, duplicate detection, adaptive weight tuning | | LLM Client | Unified OpenAI/Anthropic caller with multi-key rotation, per-key circuit breakers, model routing (optional — works without API keys) | | Domain Facades | Each knowledge domain becomes its own MCP tool with search, capture, and pattern ops | | Memory System | Persists session summaries, lessons learned, and preferences across sessions | | Planning Engine | State machine for multi-step tasks: draft, approve, execute, complete | | Activation | Persona-based activation with Hello! / Goodbye! — injects CLAUDE.md automatically |

Generated Operations

Each agent exposes two types of MCP tools:

Domain tools ({agent}_{domain}) — one per knowledge domain:

  • get_patterns search get_entry capture remove

Core tool ({agent}_core) — shared infrastructure:

  • search vault_stats list_all health identity
  • activate inject_claude_md setup register
  • memory_search memory_capture memory_list
  • session_capture export
  • create_plan get_plan approve_plan update_task complete_plan
  • record_feedback rebuild_vocabulary brain_stats
  • llm_status

Total: 200+ operations per agent (13 semantic facades + 5 per domain).

Forge Operations

Soleri Forge exposes one MCP tool (forge) with 6 ops:

| Op | Purpose | | ------------------- | ----------------------------------------------- | | guide | Step-by-step creation flow for the AI to follow | | preview | See what files and facades will be created | | create | Scaffold the complete agent project | | list_agents | Scan a directory for existing agents | | install_knowledge | Install knowledge packs into an existing agent | | add_domain | Add a new knowledge domain to an existing agent |

Installing Knowledge Packs

Agents start empty — but you don't have to populate them one entry at a time. Knowledge packs are pre-built JSON bundles containing patterns, anti-patterns, and rules for specific domains.

forge op:install_knowledge params:{
  agentPath: "/path/to/gaudi",
  bundlePath: "/path/to/knowledge-packs/bundles"
}

Bundle Format

{
  "domain": "accessibility",
  "version": "1.0.0",
  "entries": [
    {
      "id": "a11y-color-contrast",
      "type": "pattern",
      "domain": "accessibility",
      "title": "Color Contrast Ratios",
      "severity": "critical",
      "description": "Ensure text meets WCAG AA contrast ratio...",
      "tags": ["wcag", "contrast", "color"]
    }
  ]
}

Configuration

{
  "id": "gaudi",
  "name": "Gaudi",
  "role": "Backend Architecture Advisor",
  "description": "Gaudi provides guidance on API design, database patterns, and system architecture.",
  "domains": ["api-design", "database", "architecture", "security", "testing", "performance"],
  "principles": [
    "Security is not optional",
    "Simple beats clever",
    "Test everything that can break"
  ],
  "greeting": "Gaudi here. Let's build something solid.",
  "outputDir": "/Users/you/projects"
}

Development

# From monorepo root
npm install
npm run build --workspace=@soleri/forge
npm run test --workspace=@soleri/forge

# Or from packages/forge
npm run dev           # Run with tsx (no build needed)
npm test              # Run tests

Programmatic API

Import forge functions directly without starting the MCP server:

import { scaffold, addDomain, installKnowledge, listAgents } from '@soleri/forge/lib';

This is how @soleri/cli wraps forge under the hood.

Architecture

Soleri Forge is itself an MCP server built on the same patterns it generates:

  • src/index.ts — MCP server entry point, registers the forge tool
  • src/facades/forge.facade.ts — Op dispatch for all forge operations
  • src/scaffolder.ts — Core scaffolding logic (preview, create, list)
  • src/knowledge-installer.ts — Knowledge pack installer
  • src/domain-manager.ts — Domain addition logic (add to existing agents)
  • src/patching.ts — Shared source file patching utilities
  • src/lib.ts — Public API re-exports for programmatic access
  • src/types.ts — Config schema and result types (Zod-validated)
  • src/templates/ — 19 template generators

Requirements

  • Node.js 18+
  • macOS or Linux (Windows via WSL2)
  • Claude Code (for MCP registration and activation)

License

Apache-2.0