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

@milkeyskills/sdk

v0.1.4

Published

Milkey skills infrastructure SDK for connecting multi-skill AI workflows into OpenAI, Anthropic, Gemini, and other AI stacks.

Readme

@milkeyskills/sdk

Milkey Skills SDK helps teams connect Milkey skills infrastructure into existing AI products and agent workflows.

Use it when you want to:

  • plug Milkey skills into existing OpenAI-compatible clients
  • add reusable skill execution to Anthropic, Gemini, or other AI stacks
  • keep your model provider client while adding Milkey-managed skills as tools

Install

npm install @milkeyskills/sdk

If your app already uses the OpenAI SDK:

npm install @milkeyskills/sdk openai

Quick Start

import OpenAI from "openai";
import { milkey } from "@milkeyskills/sdk";

const openai = new OpenAI({
  apiKey: process.env.OPENAI_API_KEY,
});

const milkeyClient = milkey.createClient({
  baseUrl: process.env.MILKEY_BASE_URL!,
  apiKey: process.env.MILKEY_API_KEY!,
});

const tools = milkey.openai.chat.tools({
  client: milkeyClient,
});

const messages = [
  {
    role: "user",
    content: "Find the best Milkey skill for PostgreSQL query optimization.",
  },
];

const first = await openai.chat.completions.create({
  model: "gpt-5",
  messages,
  tools,
});

const assistant = first.choices[0]?.message;
if (!assistant) {
  throw new Error("No assistant message returned.");
}

messages.push({
  role: "assistant",
  content: assistant.content ?? "",
  tool_calls: assistant.tool_calls?.map((toolCall) => ({
    id: toolCall.id,
    type: "function",
    function: {
      name: toolCall.function.name,
      arguments: toolCall.function.arguments,
    },
  })),
});

if (assistant.tool_calls?.length) {
  const toolMessages = await milkey.openai.chat.messages(assistant, milkeyClient);
  for (const toolMessage of toolMessages) {
    messages.push(toolMessage);
  }

  const second = await openai.chat.completions.create({
    model: "gpt-5",
    messages,
    tools,
  });

  console.log(second.choices[0]?.message?.content ?? "");
} else {
  console.log(assistant.content ?? "");
}

For production use, keep iterating until the model stops returning tool_calls and enforce a max turn count or request timeout. See the OpenAI chat completion examples for a bounded loop.

Supported Integrations

  • OpenAI-compatible chat completions
  • OpenAI responses and realtime-style hosted tool delivery
  • Anthropic inline and hosted MCP integrations
  • Gemini function-calling integrations, Gemini Interactions hosted MCP helpers, and helpers for the official Google Gen AI SDK
  • AI SDK native inline tool helpers

Hosted remote MCP delivery is currently best supported through OpenAI Responses, Anthropic, and Gemini Interactions. OpenAI Chat, Gemini generateContent, and AI SDK default to inline tools for portability and predictability.

Provider Matrix

| Provider | API Variant | mode: "auto" | Supported Modes | Recommended Helper | | --- | --- | --- | --- | --- | | OpenAI | Chat Completions | inline | inline, hosted | milkey.openai.chat.tools(...) | | OpenAI | Responses API | hosted | inline, hosted | milkey.openai.responses.tools(...) | | OpenAI | Realtime | hosted | hosted | milkey.openai.realtime.tools(...) | | Anthropic | Messages API | hosted | inline, hosted | milkey.anthropic.config(...) | | Gemini | generateContent | inline | inline | milkey.gemini.config(...) | | Gemini | Interactions API | hosted | hosted | milkey.gemini.interactions.config(...) | | AI SDK | Inline tools | inline | inline | milkey.aiSdk.tools(...) |

Migration Notes

  • Existing delivery options continue to work.
  • New mode options are additive and support inline, hosted, and auto where meaningful.
  • mode: "auto" now resolves to the best-path adapter mode for that exact provider/API variant.
  • OpenAI inline tool schemas now normalize optional properties for strict: true compatibility.
  • Anthropic hosted users can prefer milkey.anthropic.config(...) to get the required MCP beta automatically.
  • Gemini users now have two documented paths:
    • milkey.gemini.config(...) for generateContent inline function calling
    • milkey.gemini.interactions.config(...) for hosted MCP on the Interactions API
  • AI SDK users now have two paths:
    • milkey.aiSdk.tools(...) for inline tools

Versioning

This package follows Semantic Versioning.

  • 0.1.0 = first public release
  • 0.1.1 = bug fixes
  • 0.2.0 = backward-compatible feature updates
  • 1.0.0 = stable major release

Update to the latest version with:

npm update @milkeyskills/sdk

Pin a specific version with:

npm install @milkeyskills/[email protected]

Verify Availability

Check that the package is live on npm:

npm view @milkeyskills/sdk --registry=https://registry.npmjs.org

Install it into a project:

npm install @milkeyskills/sdk

Verify the package resolves locally:

import { milkey } from "@milkeyskills/sdk";

console.log(typeof milkey.createClient);

If that prints "function", the SDK is installed correctly.