TypeScript wrapper around signal-cli-rest-api (v0.2.5) enabling programmatic control of Signal Messenger via REST. Provides typed classes for sending/receiving messages, managing accounts and groups. Current stable release is 0.2.5 with low release cadence. Supports both Node.js and browser (ESM, CJS, and DOM bundle). Alternative to signal-cli-rest-api's raw HTTP endpoints, adding TypeScript safety and streamlined API. Requires external signal-cli-rest-api instance running in JSON-RPC mode for receive functionality. Ships TypeScript types.
npm install signal-rest-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: initialize SignalClient, fetch accounts, send a text message to a recipient.
Start signal-cli-rest-api with the --json-rpc flag.
Iterate over all accounts and call startReceiving for each one.
Call signal.receive().stopAllReceiving() on process exit (e.g., SIGINT handler).
Add appropriate CORS headers to the nginx/Apache config proxying to signal-cli-rest-api.
Use import syntax: import { SignalClient } from 'signal-rest-ts'. Ensure package is installed: npm install signal-rest-tsImport ReceiveService: import { ReceiveService } from 'signal-rest-ts'. Then call signal.receive() after instantiating SignalClient.Restart signal-cli-rest-api with the --json-rpc flag: e.g., signal-cli-rest-api --json-rpc