🛰️ Professional SMTP Relay Bridge. Decouple SMTP credentials with a secure, stateless HTTP-to-S
10K+
Scalar Relay is an architectural bridge designed to decouple sensitive SMTP credentials from your application logic. By utilizing a stateless HTTP-to-SMTP execution model, Scalar eliminates the need for persistent credential storage in distributed n8n, Docker, and CI/CD environments.

docker run -d \
-p 3000:3000 \
-v $(pwd)/config:/app/config \
--name scalar-relay \
ucchash111/scalar-relay:latest
docker-compose.yaml.SESSION_SECRET to the environment variables..env.example to .env and set your SESSION_SECRET and PORT./health endpoint for automated monitoring.To make Scalar Relay a "Pre-selected" service in Coolify:
coolify.json to the root of your repository (already included).docker-compose.yaml.This project is configured with GitHub Actions to automatically build and push the latest image to Docker Hub on every push to main.
ucchash111/scalar-relay:latest.github/workflows/docker-publish.yaml.You can also distribute Scalar as a global CLI:
package.json to include "bin": { "scalar-relay": "src/index.js" }.npm publish to make it available via npm install -g.scalar-relay directly.Turn this repository into a Template (Settings -> General -> Template Repository) so users can click "Use this template" to start their own instance.
Scalar Relay includes a professional API suite for deep integration:
GET /api/info: Instance metadata and status.GET /api/config: Current configuration (safe fields, requires Master Key).GET /api/logs: View recent relay logs (requires Master Key).POST /api/keys: Programmatically generate new API keys (requires Master Key).POST /api/send
Headers:
x-api-key: your_master_api_key
Content-Type: application/json
Body:
{
"to": "[email protected]",
"subject": "Hello from Scalar",
"text": "Sent via Scalar Relay bridge.",
"html": "<b>Sent via Scalar Relay bridge.</b>"
}
Scalar Relay is designed to be self-hosted. Ensure your instance is not exposed to the public internet without proper firewall rules or an auth proxy. The Master API Key is generated locally during the first-run setup.
Send via a different SMTP server using request-level overrides:
{
"to": "[email protected]",
"subject": "Overridden SMTP",
"smtpOverride": {
"host": "smtp.sendgrid.net",
"port": 465,
"user": "apikey",
"pass": "SG.secret"
}
}
docker-compose up -d
Monitor the instance at GET /health.
Contributions are welcome! Please see CONTRIBUTING.md and LICENSE for details.
Built with ❤️ for the Open Source Community.
Content type
Image
Digest
sha256:ca800bedf…
Size
76.8 MB
Last updated
8 months ago
docker pull ucchash111/scalar-relay