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

@agent-creator/core

v0.6.1

Published

Composable Agent runtime with skills, memory, planning, execution, and OpenAI-compatible models.

Readme

@agent-creator/core

Composable Agent runtime for skills, memory, planning, execution, guards, traces, and OpenAI-compatible models.

import { createAgent } from '@agent-creator/core';

const agent = createAgent({
  model: {
    baseUrl: 'https://api.openai.com/v1',
    apiKey: process.env.OPENAI_API_KEY!,
    model: 'gpt-4o-mini',
  },
})
  .useSkill(mySkill)
  .useMemory(myMemory)
  .usePlanner(myPlanner)
  .useExecutor(myExecutor)
  .build();

await agent.run({ input: 'Run my task', sessionId: 'session-1' });

baseUrl, apiKey, and model are required. The package does not read environment variables automatically.

Built-In Modules

@agent-creator/core includes lightweight defaults that can be replaced one at a time:

  • InMemoryProvider: process-local session memory with optional message/session limits and TTL.
  • BasicGuard / DefaultGuard: configurable max input length, blocklist, and allowlist checks.
  • DefaultPlanner: explicit skill routing via metadata.skill, single-skill auto routing, and skill.name: prefix routing.
  • ModelSkillPlanner: optional model-driven skill selection that falls back to normal model responses.
  • DefaultExecutor: validates skill I/O, applies optional skill timeoutMs and retry, and emits progress events.
  • ConsoleTraceProvider and InMemoryTraceProvider: built-in tracing for development and tests.
  • HttpWebhookService / NoopWebhookService: optional webhook notifications available from planners and skills.

Skills can declare optional execution metadata:

const skill = {
  name: 'calendar.search',
  description: 'Search calendar events',
  inputSchema,
  outputSchema,
  permission: 'user_private',
  timeoutMs: 5000,
  retry: 1,
  tags: ['calendar'],
  async execute(input, context) {
    return searchCalendar(input, context.userId);
  },
};

metadata.skill and metadata.skillInput are stable default-planner conventions for directly invoking a skill:

await agent.run({
  input: 'Search calendar',
  metadata: {
    skill: 'calendar.search',
    skillInput: { query: 'today' },
  },
});

OpenAI-compatible models also support optional generation parameters:

createAgent({
  model: {
    baseUrl: 'https://api.openai.com/v1',
    apiKey: process.env.OPENAI_API_KEY!,
    model: 'gpt-4o-mini',
    systemPrompt: 'You are a concise assistant.',
    temperature: 0.2,
    maxTokens: 512,
    responseFormat: 'json_object',
  },
});

Webhook Notifications

Webhook is a runtime service for developer-controlled side effects. Configure the URL in code or environment, then call it from a planner or skill through context:

const agent = createAgent({
  model,
  webhook: {
    url: process.env.WEBHOOK_URL ?? '',
  },
})
  .useSkill({
    name: 'build.run',
    description: 'Run a build',
    inputSchema,
    outputSchema,
    async execute(input, context) {
      await context.webhook?.notify({
        event: 'build.completed',
        message: `Build completed for ${input.project}`,
      });
      return { ok: true };
    },
  })
  .build();

Webhook delivery is best-effort by default: missing URLs, HTTP failures, and network errors do not fail the Agent run. The webhook URL is developer configuration and should not come from model output or user input.

For explicit Agent-triggered notifications, register the optional webhook skill:

import { createWebhookSkill } from '@agent-creator/core';

builder.useSkill(createWebhookSkill({
  url: process.env.WEBHOOK_URL ?? '',
}));