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

drop-agent

v1.0.2

Published

Modular AI reasoning agent with extended thinking capabilities using Anthropic's Claude

Downloads

11

Readme

drop-agent

A modular AI reasoning agent with extended thinking capabilities using Anthropic's Claude. Drop this agent into any Node.js project for instant AI reasoning with real-time streaming and tool calling.

Quick Start

npm install drop-agent
import express from 'express';
import { ReasoningAgent, addCommonTools, setupSSERoutes } from 'drop-agent';

const app = express();
const agent = new ReasoningAgent({
  apiKey: process.env.ANTHROPIC_API_KEY
});

// Add built-in tools (calculator, weather)
addCommonTools(agent);

// Setup streaming endpoints
setupSSERoutes(app, agent);

app.listen(3001, () => {
  console.log('🚀 Reasoning agent ready on port 3001');
});

Features

  • 🧠 Extended Thinking - Real-time visibility into AI reasoning process
  • 🔧 Tool Calling - Built-in calculator, weather, and extensible tool system
  • ⚡ SSE Streaming - Real-time responses via Server-Sent Events
  • 🎯 Drop-in Ready - 3 lines of code to add to any Express app
  • 🔌 Extensible - Easy to add custom tools and functionality

API Reference

ReasoningAgent

const agent = new ReasoningAgent({
  apiKey: 'your-anthropic-api-key',
  systemPrompt: 'Custom prompt...' // optional
});

Built-in Tools

import { addCommonTools } from 'drop-agent';
addCommonTools(agent); // Adds calculator + weather

Custom Tools

agent.addTool(
  'search_docs',
  'Search internal documentation',
  {
    query: { type: 'string', description: 'Search query' }
  },
  async ({ query }) => {
    // Your implementation
    return `Found results for: ${query}`;
  }
);

SSE Server Setup

import { setupSSERoutes } from 'drop-agent';
setupSSERoutes(app, agent); // Adds /api/chat/stream endpoint

Streaming Responses

for await (const event of agent.streamResponse(message, options)) {
  console.log(event.type, event.content);
  // Events: thinking_delta, text_delta, tool_result, etc.
}

Tool Registry

import { ToolRegistry } from 'drop-agent';

const tools = new ToolRegistry();
tools.addToAgent(agent, 'calculator');
tools.addToAgent(agent, 'weather');

Configuration Options

const options = {
  model: 'claude-opus-4-20250514',
  maxTokens: 16000,
  thinkingBudget: 10000
};

agent.streamResponse(message, options);

UI Components

For React chat interface, install the companion package:

npm install drop-agent-ui
import { ChatInterface } from 'drop-agent-ui';
<ChatInterface serverUrl="http://localhost:3001" />

Requirements

  • Node.js 18+
  • Anthropic API key
  • Express.js (peer dependency)

Full Documentation

  • GitHub: https://github.com/rockymedure/drop-agent
  • Integration Guide: Complete examples and advanced usage
  • Live Demo: Working chat interface included

License

MIT