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

@trysiren/agent-toolkit

v0.2.0

Published

Agent toolkit for Siren notification platform

Readme

Siren Agent Toolkit (TypeScript)

npm version License

The Siren Agent Toolkit enables AI agents to send notifications and manage communications through the Siren platform. It provides seamless integration with popular AI frameworks including:

  • OpenAI's Agent SDK
  • LangChain
  • Vercel's AI SDK
  • Other function-calling compatible frameworks

✨ Features

  • Multi-channel messaging - Send notifications via email, SMS, WhatsApp, Slack, and more
  • Template management - Create and manage reusable message templates
  • User management - Maintain user profiles and contact information
  • Workflow automation - Trigger and schedule notification workflows
  • Webhook configuration - Set up bidirectional communication

🚀 Installation

# Using npm
npm install @trysiren/agent-toolkit

# Using yarn
yarn add @trysiren/agent-toolkit

🧩 Framework Integration

The toolkit is designed to work with any AI framework that supports function calling:

Framework-Specific Examples

Refer to our examples directory for detailed integration guides:

| Framework | Example | Description | |----------|---------|-------------| | OpenAI | View Example | Complete OpenAI Assistant integration | | LangChain | View Example | Agent with LangChain tools | | Vercel AI SDK | View Example | Next.js and Vercel AI SDK integration | | Mastra | View Example | Mastra integration |

📋 Requirements

  • Node.js v16 or higher
  • Siren API key (get one from Siren Dashboard)
  • Compatible AI framework with function calling support

⚙️ Configuration

The toolkit uses a permission-based configuration system to control which Siren tools are available to your AI agents.

Basic Setup

import { SirenToolkit } from '@trysiren/agent-toolkit';

// Initialize with your API key
const toolkit = new SirenToolkit({
  apiKey: 'YOUR_SIREN_API_KEY',
  // Optional configuration
  actions: {
    messaging: { create: true, read: true },
    templates: { read: true }
  }
});

// Get tools for your AI framework
const tools = toolkit.getTools();

Configuration Options

The toolkit uses a TypeScript interface for strongly-typed configuration:

interface Configuration {
  actions?: {
    messaging?: {
      create?: boolean;    // Send messages
      read?: boolean;      // Get message status and replies
    };
    templates?: {
      create?: boolean;    // Create templates
      read?: boolean;      // List templates
      update?: boolean;    // Update templates
      delete?: boolean;    // Delete templates
    };
    users?: {
      create?: boolean;    // Add users
      read?: boolean;      // Get/list users
      update?: boolean;    // Update users
      delete?: boolean;    // Delete users
    };
    workflows?: {
      trigger?: boolean;   // Trigger workflows
      schedule?: boolean;  // Schedule workflows
    };
    webhooks?: {
      create?: boolean;    // Configure webhooks
    };
  };
  context?: {
    env?: 'dev' | 'prod';  // Siren environment
  };
}

🛠️ Available Tools

The Siren Agent Toolkit provides the following function-calling tools for AI agents:

Messaging Tools

| Tool | Description | Example Use Case | |------|-------------|------------------| | send_message | Send messages via email, SMS, Slack, etc. | "Send a welcome email to new users" | | send_awesome_template | Send messages using awesome templates | "Send the monthly newsletter template" | | get_message_status | Check delivery status of sent messages | "Check if the password reset email was delivered" | | get_message_replies | Retrieve replies to sent messages | "Get customer responses to our survey" |

Template Management

| Tool | Description | Example Use Case | |------|-------------|------------------| | list_templates | Get all notification templates | "Show me all available email templates" | | create_template | Create new templates | "Create a new order confirmation template" | | update_template | Modify existing templates | "Update the welcome email with our new logo" | | delete_template | Remove templates | "Delete the outdated newsletter template" | | publish_template | Make template drafts live | "Publish the new promotional template" |

User Management

| Tool | Description | Example Use Case | |------|-------------|------------------| | add_user | Create or update user profiles | "Add a new customer to our system" | | update_user | Modify user information | "Update the user's phone number" | | delete_user | Remove users | "Remove the inactive user account" |

Workflow Automation

| Tool | Description | Example Use Case | |------|-------------|------------------| | trigger_workflow | Execute workflows immediately | "Send the onboarding sequence now" | | trigger_workflow_bulk | Execute workflows for multiple recipients | "Send renewal notices to all expiring accounts" | | schedule_workflow | Schedule workflows for future execution | "Schedule a follow-up message for next week" |

Webhook Configuration

| Tool | Description | Example Use Case | |------|-------------|------------------| | configure_notification_webhooks | Set up status update webhooks | "Send delivery receipts to our analytics API" | | configure_inbound_webhooks | Configure inbound message webhooks | "Forward incoming SMS replies to our support system" |

📖 Documentation

🤝 Contributing

Contributions are welcome! Please see our Contributing Guide for details on how to submit pull requests, report issues, or suggest improvements.

🆘 Support

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


Tip: Start with the examples to see the toolkit in action with your preferred AI framework!