Dockerized REST API for Signal, with four execution modes to balance speed and memory

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Developers who need to automate Signal messaging can now call it over HTTP instead of spawning slow Java processes, choosing among four speed-versus-memory modes.

Read this as

Signal is a private messaging app that normally only works through its official phone app, with no easy way for other software to send messages automatically. A new open-source project wraps the Signal command-line tool inside Docker (a way of packaging software into a ready-to-run container) and exposes it as a REST API, a standard web interface other programs can call. It handles registering a phone number, sending messages with attachments, and linking devices. It is useful for hobbyists and developers building notification bots or small automations on Signal.

This Docker image gives teams a practical, self-hosted way to integrate Signal messaging without building a custom client. Its notable design choice is four execution modes with honest tradeoffs: the default Java mode is slowest, GraalVM-compiled 'native' mode is faster but experimental, and the json-rpc daemon is fastest but uses more memory. Cost is minimal, open source and runs on modest hardware like a Raspberry Pi. The only risk is native mode's documented instability.

The project wraps signal-cli in a Docker container exposing REST on port 8080, supporting registration, sending messages with attachments, group management, and device linking. A mounted local directory persists registration across container rebuilds. Four execution modes trade speed against memory: normal (JVM spawned per request), native (GraalVM binary, faster but experimental and falls back to normal on armv7), json-rpc (persistent JVM daemon, fastest, higher memory), and json-rpc-native (native daemon, fast with normal memory). Setup uses the MODE environment variable, e.g. MODE=native.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Signal signal-cli Docker GraalVM bbernhard/signal-cli-rest-api

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading