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

@longears-mobile/rcs-sdk

v0.1.1

Published

Provider-agnostic SDK for RCS (Rich Communication Services) messaging

Readme

@longears-mobile/rcs-sdk

A flexible, provider-agnostic SDK for RCS (Rich Communication Services) messaging, designed with a modular architecture that currently supports Longears RCS provider with the ability to extend to other providers in the future.

Overview

The @longears-mobile/rcs-sdk provides a unified interface for sending RCS messages, handling authentication, and managing capabilities detection. It's designed to be extensible, type-safe, and easy to integrate.

Features

  • 🔌 Provider-Agnostic Design: Built with a modular architecture to support multiple providers
  • 🚀 Longears Provider: Ships with full support for the Longears RCS API
  • 🔐 Secure Authentication: HMAC-based authentication for Longears provider
  • 📱 Rich Messaging: Send text, media, rich cards, and interactive elements
  • 🔄 Automatic Retries: Built-in retry logic with exponential backoff
  • 📊 Capability Detection: Check device and carrier RCS support
  • 🛠️ TypeScript Support: Fully typed interfaces for better developer experience

Architecture

The SDK follows an adapter pattern with the following key components:

  1. RCSClient: Main entry point for SDK usage
  2. Providers: Adapter implementations for RCS services (currently Longears)
  3. Authentication: Authentication provider for Longears
  4. Interfaces: Unified message and capability interfaces

Quick Start

import { RCSClient } from '@longears-mobile/rcs-sdk';

// Initialize with Longears provider
const client = new RCSClient({
  provider: 'longears',
  auth: {
    type: 'longears',
    credentials: {
      apiKey: process.env.LONGEARS_API_KEY,
      apiSecret: process.env.LONGEARS_API_SECRET
    }
  }
});

await client.initialize();

// Send a message
const response = await client.sendMessage({
  to: '+1234567890',
  content: {
    text: 'Hello from Longears RCS!'
  },
  suggestions: [
    { type: 'reply', text: 'Yes' },
    { type: 'reply', text: 'No' }
  ]
});

Supported Providers

  • Longears: Full support for Longears RCS API

The SDK is designed to be provider-agnostic with Longears as the starting point. The modular architecture makes it easy to add support for other providers in the future.

Installation

npm install @longears-mobile/rcs-sdk

Module Formats

The SDK is available in multiple formats:

  • ES Modules - import { RCSClient } from '@longears-mobile/rcs-sdk'; (primary format)
  • CommonJS - const { RCSClient } = require('@longears-mobile/rcs-sdk'); (compatibility)
  • UMD - Available via CDN or direct script tag: <script src="https://unpkg.com/@longears-mobile/rcs-sdk"></script>

Requirements

  • Node.js: v24.0.0 or higher

Development

See the docs/ directory for:

Extending with New Providers

The SDK is designed to be easily extended with new RCS providers:

  1. Create a new provider class that implements the RCSProvider interface
  2. Create a corresponding authentication provider that implements the AuthProvider interface
  3. Update the provider and authentication factories to include your new implementations
  4. Update configuration interfaces as needed

Contributing

Contributions are welcome! Feel free to submit issues or pull requests.

License

MIT