Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mercurius

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mercurius

Generic push server

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
53K
decreased by-31%
Maintainers
1
Weekly downloads
 
Created
Source

mercurius

Cross-platform web push center. Site allows to proxy a POST request to a full featured push notification. Especially useful for services without web presence, originally came out as an IRSSI notification system.

Secure, as no data is stored except of generated token, machine id with an endpoint and connected client names.

We're currently running a publicly available development server under Heroku.

Check the post on Mozilla's hacks page to see a real live usecase.

Build Status dependencies devdependencies

API

POST /notify

Send a notification to a user.

The body of the request is a JSON object containing:

  • token;
  • client - the client sending the notification (e.g. 'Irssi');
  • payload;
  • (optional) TTL (Time-To-Live of the notification).

The payload is a JSON object containing the parameters of the nofication to be shown to the user:

  • title: the title of the notification;
  • body: the body of the notification.

Example:

{
    "token": "aToken",
    "client": "someClient",
    "payload": {
        "title": "IRSSI",
        "body": "a message"
    }
}

INSTALL

Install Redis database and set REDISCLOUD_URL environment variable to its host (redis://localhost:6379)

Keywords

FAQs

Package last updated on 29 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc