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 🙏

© 2025 – Pkg Stats / Ryan Hefner

openai-agent-starterkit

v1.0.3

Published

A starter kit for building single and multi-agent systems using OpenAI Agent JavaScript SDK

Readme

OpenAI Agent Starter Kit

A production-ready starter kit for building single and multi-agent systems using the OpenAI Agent JavaScript SDK. This kit provides scaffolding and templates for all agent design patterns from Anthropic's guide to building effective agents.

Features

  • 🚀 Production Ready: Built with TypeScript, comprehensive testing, and CI/CD
  • 🎯 Pattern-Based: Implements proven agent patterns from Anthropic's research
  • 🛠️ Tool-Rich: Includes web search, file system, calculator, and memory tools
  • 🔒 Secure: Built-in guardrails for input/output validation
  • 📚 Well-Documented: Comprehensive documentation and examples
  • 🧪 Thoroughly Tested: Unit tests, integration tests, and end-to-end testing

Quick Start

# Generate a new agent project
npx openai-agent-starterkit --pattern augmented-llm --name my-agent

# Or use interactive mode
npx openai-agent-starterkit --interactive

# Navigate to your project
cd my-agent

# Install dependencies
npm install

# Set up your OpenAI API key in the .env file
# Edit the .env file and add your actual API key
OPENAI_API_KEY=your-actual-openai-api-key-here

# Run your agent
npm run dev

Available Patterns

Augmented LLM

The foundational pattern that enhances a base LLM with:

  • Tool Access: Web search, file operations, calculations
  • Memory Management: Context retention across conversations
  • Guardrails: Input/output validation and safety
  • Structured Interactions: Clear tool usage patterns
npx openai-agent-starterkit --pattern augmented-llm

Agent Patterns (Coming Soon)

This starter kit will support all major agent patterns:

  • Sequential Agents: Linear handoff between specialized agents
  • Hierarchical Agents: Manager-worker delegation patterns
  • Tool-calling Agents: Specialized tool usage patterns
  • Collaborative Agents: Shared context and parallel execution

CLI Usage

# Basic usage
npx openai-agent-starterkit --pattern <pattern> --name <project-name>

# Options
--pattern, -p     Agent pattern to generate (default: augmented-llm)
--name, -n        Project name
--output, -o      Output directory (default: ./my-agent-project)
--interactive, -i Interactive mode with prompts

Generated Project Structure

my-agent-project/
├── src/
│   ├── index.ts              # Main entry point
│   ├── agents/               # Agent implementations
│   │   └── research-assistant.ts  # Main research agent
│   ├── tools/                # Tool implementations
│   │   ├── web-search.ts     # Web search capability
│   │   ├── file-system.ts    # File operations
│   │   ├── calculator.ts     # Mathematical operations
│   │   └── memory.ts         # Context management
│   ├── mcp-servers/          # MCP server implementations
│   ├── guardrails/           # Input/output validation
│   │   ├── input.ts          # Input validation
│   │   └── output.ts         # Output validation
│   ├── context/              # Context type definitions
│   │   └── types.ts          # Shared context interfaces
│   └── tests/                # Test files
├── package.json              # Node.js configuration
├── tsconfig.json             # TypeScript configuration
├── README.md                 # Project documentation
└── .env.example              # Environment variables template

Development

Building the Starter Kit

# Install dependencies
npm install

# Build the CLI
npm run build

# Run tests
npm test

# Lint code
npm run lint

# Type check
npm run typecheck

Testing Project Generation

# Test project generation
npm run test:generate

# Test generated project
npm run test:integration

Architecture

The starter kit follows a modular architecture:

  • CLI: Command-line interface for project generation
  • Patterns: Template definitions for different agent patterns
  • Generator: File generation and templating engine
  • Types: TypeScript type definitions

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new functionality
  5. Submit a pull request

Testing Before Publishing

Before publishing to npm, test the package locally:

# Build the package
npm run build

# Test globally
npm link
openai-agent-starterkit --pattern augmented-llm --name test-project

# Test package creation
npm pack

Publishing

This project uses GitHub Actions for automated publishing:

  1. Create a release on GitHub
  2. GitHub Actions will automatically publish to npm
  3. Version bumping is handled automatically

License

MIT License - see LICENSE file for details.

Support

Acknowledgments

  • Anthropic for the agent patterns research
  • OpenAI for the Agent SDK
  • The open-source community for inspiration and tools