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

@dubdubdublabs/agent-sdk

v0.0.15

Published

An SDK for quickly prototyping traditional (while loop w/ tools) agents.

Readme

@dubdubdublabs/agent-sdk

An SDK for quickly prototyping traditional (while loop w/ tools) agents.

import { Agent, Tool } from "@dubdubdublabs/agent-sdk";
import { z } from "zod";

// define your tools
const tool1 = new Tool({
    // unique tool identifier
    type: "simple_tool",

    // name of the tool, passed to the model
    name: "START",

    // schema for the tool config options that let you override specific tool behaviors (like description, how it executes, etc...)
    toolConfigOptionsSchema: z.object({
        startRange: z.number(),
        endRange: z.number(),
    }),

    // default config options for the tool
    toolConfigOptions: {
        startRange: 10,
        endRange: 100,
    },

    // description of the tool, passed to the model
    description: ({ startRange, endRange }) => `Provide a random number between ${startRange} and ${endRange}`,

    // schema for the tool parameters, passed to the model
    toolParameters: z.object({
        randomNumber: z.number(),
    }),

    // schema for the tool execute function return value
    resultSchema: z.object({
        toolOutput: z.string(),
    }),

    // the tool execute function
    execute: async ({ toolParameters, toolConfigOptions, spawnAgent }) => {
        return { toolOutput: `Hello, ${toolParameters.randomNumber}!` };
    },
});

// create your agent
const agent = Agent.create({
    name: "simple",
    models: ["gpt-4o"], // models available to the agent (can be narrowed at execution)
    defaultModel: "gpt-4o", // default model to use
    availableTools: [tool1.configure({ toolConfigOptions: { startRange: 100, endRange: 1000 } })], // available tools for the agent (can be narrowed at execution)
    /**
    instructions: [{
        tool: "simple_tool", // OPTIONAL: if you want to specify instructions tied to tools 
        models: ["gpt-4o"], // OPTIONAL: if you want to specify instructions tied to models
        content: "Call the start tool", // instruction content 
    }],
     */
    instructions: "Call the start tool",
    // instructions for the agent (can be a string or a more complex object based on what tools are chosed)
});

// you can execute the full agent loop
await agent.executeLoop({
    input: "Call the start tool",
});

// or you can execute a single step and control the loop yourself
await agent.execute({
    input: "Call the start tool",
    model: "gpt-4o", // optionally override model choice
    tools: ["simple_tool"], // optionally override available tools
    messages: [], // optionally override messages
});