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 🙏

© 2024 – Pkg Stats / Ryan Hefner

electrolytic

v0.1.1

Published

Analytics, remote config and push notifications for Electron apps

Downloads

6

Readme

Electrolytic

Electrolytic on NPM

A suite of features to make your desktop apps even more powerful 💪

  • 🔎 Analytics; how many users, what platforms, where're they from?
  • ☁️ Cloud config; JSON object that you can change via our dashboard and your app can access via this package, instantly.
  • ⚡️ Push notifications; send silent (or loud) information from your servers to your app and users.

... and much more for electron apps.

This package is:

  • 🚀 Lightweight (under 10KB gzipped). Yes, we're aware of and fully relate to the memes about the size of node_modules 😂
  • 👌 is not dependent on any other package, only core code. We wrote every bit of it ourselves. No threat of package compromise!
  • 🏎 Performant. It uses the bare-minimum resources to keep your app running faster. Not a memory hog.
  • 🔐 Privacy-respecting. It only collects and sends the data to our servers when you tell it to. Respecting your app's and its users' privacy.

Install it (please 🙏)

Sign up (also please) on electrolytic.app and get your App key and Secret. It's free to get started! ⭐️

Then do the thing, you know, the thing:

npm install --save electrolytic

Use it in your app!

const Electrolytic = require('electrolytic')

const electrolytic = Electrolytic({
  appKey: '<Your-App-Key>',
})

// when app starts
electrolytic.on('token', (token) => {
  // send this token to your server, you'll need it to send a push
  console.log('user token', token);
})

// when you use that <token> to send push via server POST
electrolytic.on('push', (payload) => {
  console.log('got push notification', payload) // hola, here's a push!
})

// when you update the config on our dashboard. It's pushed to all the apps in realtime 🙀
electrolytic.on('config', (updatedConfig) => {
  console.log('look ma, updated config!', updatedConfig)
})

Sending a push (and ❤️) from your server

Simply send a POST request to https://api.electrolytic.app/push/send

with JSON body having following schema:

{
  "appKey": "<You-App-Key>",
  "appSecret": "<Your-App-Secret>",
  "target": ["<token>"], // should be an array. multiple tokens can be used to send the same push to all of them.
  "payload": "hola, here's a push!" // can also be a JSON object
}

❤️ is optional... well, I mean its not required.. Don't send it, seriously.

For more informations (and emojis), visit electrolytic.app

License

SOME RIGHTS RESERVED

See License