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

danube

v0.2.0

Published

Official TypeScript SDK for Danube AI - Tool discovery, execution, and integration for AI agents

Downloads

228

Readme

danube

Official TypeScript SDK for Danube AI — tool discovery, execution, and integration for AI agents.

Installation

npm install danube

Quick Start

import { DanubeClient } from 'danube';

const client = new DanubeClient({ apiKey: 'dk_...' });

// Search and execute tools
const tools = await client.tools.search('send email');
const result = await client.tools.execute({
  toolName: 'Gmail - Send Email',
  parameters: { to: '[email protected]', subject: 'Hello' },
});

// Clean up
client.close();

Configuration

const client = new DanubeClient({
  apiKey: 'dk_...',       // or set DANUBE_API_KEY env var
  baseUrl: 'https://...',  // or set DANUBE_API_URL env var (default: https://api.danubeai.com)
  timeout: 30,             // seconds (default: 30)
  maxRetries: 3,           // retry count for transient errors (default: 3)
});

Resources

Tools

// Search tools
const tools = await client.tools.search('weather forecast');

// Search within a service
const tools = await client.tools.search('send', { serviceId: 'service-uuid' });

// Get tool by ID
const tool = await client.tools.get('tool-uuid');

// Execute by ID
const result = await client.tools.execute({
  toolId: 'tool-uuid',
  parameters: { city: 'London' },
});

// Execute by name (searches automatically)
const result = await client.tools.execute({
  toolName: 'Weather - Get Forecast',
  parameters: { city: 'London' },
});

Services

const services = await client.services.list({ query: 'email' });
const service = await client.services.get('service-uuid');
const { tools, needsConfiguration } = await client.services.getTools('service-uuid');

Workflows

const workflows = await client.workflows.list({ query: 'data pipeline' });
const detail = await client.workflows.get('workflow-uuid');

const execution = await client.workflows.execute('workflow-uuid', {
  query: 'analyze this data',
});

const status = await client.workflows.getExecution(execution.id);

Agent Web (Sites)

const sites = await client.sites.search({ query: 'stripe' });
const site = await client.sites.get('site-uuid');
const stripe = await client.sites.getByDomain('stripe.com');

Skills

const skills = await client.skills.search('data analysis');
const skill = await client.skills.get({ skillName: 'My Skill' });

Identity

const identity = await client.identity.get();
console.log(identity.profile, identity.contacts);

Credentials

await client.credentials.store({
  serviceId: 'service-uuid',
  credentialType: 'api_key',
  credentialValue: 'sk-...',
});

Wallet

const balance = await client.wallet.getBalance();
console.log(`$${balance.balanceDollars}`);

const transactions = await client.wallet.getTransactions({ limit: 10 });

Agents

// Register an autonomous agent (no auth required)
const registration = await client.agents.register({
  name: 'My Agent',
  operatorEmail: '[email protected]',
});
console.log(registration.apiKey); // one-time display

// Get agent info (requires API key)
const info = await client.agents.getInfo();

// Fund agent wallet
const fund = await client.agents.fundWallet({
  method: 'card_checkout',
  amountCents: 1000,
});

Error Handling

import {
  DanubeClient,
  AuthenticationError,
  NotFoundError,
  RateLimitError,
} from 'danube';

try {
  const result = await client.tools.execute({ toolName: 'My Tool' });
} catch (error) {
  if (error instanceof AuthenticationError) {
    console.error('Invalid API key');
  } else if (error instanceof NotFoundError) {
    console.error(`Not found: ${error.resource}`);
  } else if (error instanceof RateLimitError) {
    console.error(`Rate limited, retry after ${error.retryAfter}s`);
  }
}

Requirements

  • Node.js 18+ (uses native fetch)
  • Zero runtime dependencies

License

MIT