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

@quipuscore/capacitor-sms

v0.0.1

Published

Capacitor plugin for reading and syncing SMS messages on Android devices.

Readme

Capacitor SMS Plugin

A Capacitor plugin to read and sync SMS messages on Android devices.

Note: This plugin is Android-only. SMS reading is not supported on iOS.

Installation

npm install @quipuscore/capacitor-sms
npx cap sync

Requirements

  • Capacitor 7+
  • Android API level 22+ (Android 5.1+)

Configuration

Android

Add the following permissions to your AndroidManifest.xml:

<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.INTERNET" />

Usage

Initialize the plugin

import { SmsPlugin } from '@quipuscore/capacitor-sms';

// Initialize with your API token
await SmsPlugin.initialize({ token: 'YOUR_API_TOKEN' });

Read and sync SMS messages

// Read SMS messages and sync with your backend in a single operation
try {
  const result = await SmsPlugin.collectAndSync({
    userId: 'user123',
    deviceId: 'device456'
  });
  console.log(`Successfully processed ${result.messages.length} messages`);
} catch (error) {
  console.error('Error reading or syncing SMS:', error);
}

API

Public interface for the SMS plugin - exposing initialize, collectAndSync, and linkUserIdWithDevice methods

initialize(...)

initialize(options: InitializeOptions) => Promise<InitializeResult>

Initialize the SMS plugin with a token

| Param | Type | Description | | ------------- | --------------------------------------------------------------- | ------------------------------------------- | | options | InitializeOptions | Options containing the authentication token |

Returns: Promise<InitializeResult>


collectAndSync(...)

collectAndSync(options: CollectAndSyncOptions) => Promise<SyncSmsResult>

Collect SMS messages and sync them to the server in one operation

| Param | Type | Description | | ------------- | ----------------------------------------------------------------------- | -------------------------------------- | | options | CollectAndSyncOptions | Options containing userId and deviceId |

Returns: Promise<SyncSmsResult>


linkUserIdWithDevice(...)

linkUserIdWithDevice(options: LinkUserIdWithDeviceOptions) => Promise<LinkUserIdWithDeviceResult>

Link a user ID with a device ID

| Param | Type | Description | | ------------- | ----------------------------------------------------------------------------------- | -------------------------------------- | | options | LinkUserIdWithDeviceOptions | Options containing userId and deviceId |

Returns: Promise<LinkUserIdWithDeviceResult>


Interfaces

InitializeResult

| Prop | Type | | ------------- | -------------------- | | success | boolean | | message | string |

InitializeOptions

| Prop | Type | Description | | -------------- | ------------------- | ---------------------------------------------------------------------------------------- | | clientId | string | Client ID for identification | | token | string | API token for authentication - this also determines the environment (sandbox/production) |

SyncSmsResult

| Prop | Type | | ------------- | -------------------- | | success | boolean | | message | string |

CollectAndSyncOptions

| Prop | Type | Description | | -------------------- | ------------------- | ------------------------ | | deviceId | string | | | userId | string | Optional user ID | | identityNumber | string | Optional identity number | | identityType | string | Optional identity type |

LinkUserIdWithDeviceResult

| Prop | Type | | ------------- | -------------------- | | success | boolean | | message | string |

LinkUserIdWithDeviceOptions

| Prop | Type | Description | | -------------- | ------------------- | ------------------------------- | | userId | string | User ID to link with the device | | deviceId | string | Device ID to link with the user |

License

MIT