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

@deskcreate/agentcraft

v0.2.0

Published

Production-grade TypeScript agent runtime with provider routing, tools, MCP, skills, workflows, structured output, streaming, budgets, and observability.

Readme

AgentCraft

npm version License: MIT CI Node >= 20

Production-grade TypeScript agent runtime with provider routing, tools, MCP, skills, workflows, structured output, streaming, budgets, and observability.

Install

npm install @deskcreate/agentcraft

60-Second Quickstart

import { Agent, Provider } from "@deskcreate/agentcraft";

const agent = Agent.create({
  model: Provider.openai["gpt-4o-mini"],
  apiKey: process.env.OPENAI_API_KEY!,
});

const result = await agent.run({
  prompt: "Summarize why typed tool calls matter.",
  responseSchema: {
    type: "object",
    required: ["summary", "risks"],
    properties: {
      summary: { type: "string" },
      risks: { type: "array", items: { type: "string" } },
    },
  },
  structuredOutput: { retries: 1 },
  trace: true,
});

console.log(result.structuredResponse);
console.log(result.trace);

Core Ideas

  • Provider-portable calls across OpenAI-compatible, Anthropic, Google, Bedrock, and Cohere protocols.
  • Secure tool lifecycle with approvals, dry-run/read-only modes, guardrails, redaction, timeouts, and audits.
  • MCP runtime for stdio, HTTP JSON-RPC, and SSE transports.
  • Built-in adapters for filesystem, fetch, GitHub, database, browser, SaaS, storage, vector, voice, and image workflows.
  • Built-in skills with structured prompt metadata and dependency validation.
  • Structured output with JSON Schema, Zod-like schemas, native JSON mode, retry repair, and tool fallback.
  • Streaming events for model deltas, tool calls, tool results, and finals.
  • Run budgets, cost estimates, fallback routing, and AgentTeam orchestration.
  • AgentWorkflow for repeatable step graphs with retries, approvals, branches, parallel fan-out, Zod-validated input, and resumable failed runs.
  • AgentWorkspace for shared runtime context wiring cache, adapters, tool policy, budget, events, and artifact stores once for teams and workflows.
  • ArtifactStore for typed durable persistence with MemoryArtifactStore, FileArtifactStore, and SQLiteArtifactStore backends.
  • ArtifactRegistry for 19 built-in creator artifact schemas with custom extension support.

Guides

For the local documentation site:

npm run docs:dev

Examples

See the examples guide for basic chat, structured output, streaming with tools, safe filesystem usage, GitHub review, MCP GitHub, research, AgentTeam, AgentWorkflow, ArtifactStore, cost budgeting, and custom adapter patterns.

Safety Defaults

AgentCraft treats prompt, file, browser, MCP, retrieval, and tool inputs as untrusted by default. Side-effecting tools require approval metadata and should be run with policy controls in production.

Pricing metadata is source-stamped and estimator-grade. Update the model catalog against official provider pricing before using estimates for billing or hard financial commitments.

Testing

Unit tests are mocked and do not require live API keys:

npm test

Live integration tests are opt-in and should be run with cost-bounded provider keys only:

INTEGRATION_TESTS=true npm run test:int:light

Community