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

pingdart-node

v1.1.3

Published

Official JavaScript SDK for PingDart platform

Readme

PingDart JavaScript SDK

The official JavaScript SDK for the PingDart platform. Compatible with Node.js, React, Next.js, Vite, and other JavaScript frameworks.

Installation

npm install pingdart-node

Quick Start

import PingDart from "pingdart-node";

const sdk = new PingDart({
  apiKey: "YOUR_API_KEY",
  databaseId: "YOUR_DATABASE_ID", // Required for Real-time Database services
  agentKey: "YOUR_AGENT_KEY" // Optional: Specific key for AI Agents
});

// List Call Applications
const apps = await sdk.calls.listApps();

// Real-time Database: Read data
const users = await sdk.database.read('public', 'users', { status: 'active' });

// Send a WhatsApp Message
await sdk.whatsapp.sendMessage({
  clientId: "my-session",
  to: "919999999999",
  message: "Hello from PingDart SDK!"
});

// Send an Email with custom SMTP (Optional)
await sdk.email.sendEmail({
  email: "[email protected]",
  subject: "Welcome to PingDart",
  text: "Thank you for joining our platform!",
  smtpConfigOptions: {
    host: "smtp.example.com",
    port: 587,
    secure: false,
    user: "your-smtp-user",
    pass: "your-smtp-password"
  }
});

// Send an SMS
await sdk.sms.sendSMS({
  to: "+919999999999",
  text: "Your OTP is 123456"
});

Features

  • Cross-Platform: Works seamlessly in both server-side (Node.js) and client-side (Frontend) environments.
  • Universal Database: Multi-database support (MySQL, PostgreSQL, MongoDB) with real-time updates and long-polling capabilities.
  • WhatsApp Service: Manage sessions, send text/media, and monitor status in real-time.
  • AI Chat (ChinuAI): Integrate with PingDart's AI models with built-in streaming support.
  • Email & SMS Delivery: High-reliability communication channels with automatic fallback mechanisms.
  • Call Apps: Manage Web and Mobile call identities and signaling for real-time communication.

API Reference

Database Service (sdk.database)

Manage structured data across different database engines.

  • create(tableSchema, tableName, data, conditions, login)
  • read(tableSchema, tableName, conditions, orderBy, search, pagination, margedata, range)
  • update(tableSchema, tableName, data, condition, login)
  • delete(tableSchema, tableName, condition)
  • count(tableSchema, tableName, conditions)
  • listenForUpdates(tableSchema, tableName, callback)

Email Service (sdk.email)

Reliable email delivery with built-in fallback logic and SMTP support.

  • sendEmail({ email, subject, text, smtpConfigOptions })
  • bulkSend({ emailList, subject, text, smtpConfigOptions })

SMS Service (sdk.sms)

Global SMS delivery via PingDart's high-speed routes.

  • sendSMS({ to, templateId, text, route, unicode })

AI Service (sdk.ai)

Power your apps with ChinuAI.

  • callAiApi(message, onProgress, options) (Supports streaming responses)

Call Apps Service (sdk.calls)

  • listApps()
  • createApp(name, type)
  • deleteApp(id)

Storage Service (sdk.storage)

  • getStats()
  • listBuckets()
  • createBucket(name)
  • deleteBucket(bucketId)
  • uploadFile(formData)
  • deleteFile(filePath)

WhatsApp Service (sdk.whatsapp)

  • initialize(clientId, phoneNumber)
  • sendMessage({ clientId, to, message, type, mediaData, ... })
  • checkStatus(clientId)
  • getChats(clientId)

License

MIT