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

dropperjs

v0.1.3

Published

Real-time data pusher

Downloads

58

Readme

Dropper

A simple WebSocket based event/data pusher that runs in your NodeJS/ExpressJS app.

Send and recive notifications, messages, updates and any data, all in real-time with custom events and methods served on your own web, Dropper is Open Source, self-served and FREE forever!

Hits License: MIT npm npm GitHub last commit

The counterpart says:

"Easily build scalable realtime graphs, geotracking, multiplayer games, and more in your web and mobile apps with our hosted pub/sub messaging API."

We say:

"Easily build scalable realtime aplications with our Open Source self-hosted pub/sub messaging API."

With Dropper you can do what you want without any paid third-party service.

What can I do with Dropper?

Since Dropper is a WebSocket solution for delivering messages between servers and clients in real-time, our Side by Side APIs are designed to handle custom events sent by your aplication peers, you can work with our structured event hadlelers that allows to send and receive data in a simpler and contolated way.

Dropper instance:

The Dropper instance is designed to return two different work modalities, which allows you to code projects of different scales and purposes.

  • Socket:

    By default Dropper returns an instance of WebSocket, which is a simplified but traditional way to deliver messaging with a very similar structure WS API for Browsers like, but based on custom events.

    You can listen and send events in real-time to run code as you need it, on the client and server side.

    client.js

    dropper.emit("pizza", "I sent you a pizza!");
    dropper.on("thanks", function(data){
      console.log(data) // => Hey mate thank you!
    });

    server.js

    dropper.on("pizza", function(data){
      console.log(data) // => I sent you a pizza!
      dropper.emit("thanks", "Hey mate thank you!");
    });
  • Channels:

    Dropper Channels are dedicated spaces to listen and send data to specific peers who are subscribed to them, the channels are designed to communicate more easily between peers in a personalized space with the same WebSocket techonology.

    In this way you can push real-time data/messaging to different instances in your application, just to listeners who need it, without any problem of repeated events in the same instance or mixed listeners who should not listen to the event being emitted.

    client.js

    var channel = dropper.subscribe('pizza-store-channel');
    
    channel.bind('pizza', function(myOrder) {
      console.log(myOrder.state) // => Hello customer, your pizza is ready!
    });

    server.js

    dropper.trigger('pizza-store-channel', 'pizza', {
      "state": "Hello customer, your pizza is ready!"
    });

Features

Dropper enables real-time bidirectional event-based communication. It consists of:

  • a Node.js server.

  • a Javascript client library for the browser (or a Node.js client)

  • Protocol

We are constantly developing for improvements and delivering more features to make Dropper a totally reliable tool.

For now it is a WebSocket-based tool with connections secured by a handshake authenticated with an initial http request, but we are currently working on a more advanced protocol that has side-by-side encryption.

  • Simple API

Dropper has a very easy to use API, both the server and the client are practically identical.

  • Channels

In order to developing scalable applications Dropper has dedicated spaces called "channels" which exists to broadcast information separately from the global scope of your dropper instance.

Of course, several instances of Dropper could coexist in a single application, but this means that for each instance / app, is allow dispatch events in separate spaces without affecting the functionality of other events and channels.

Installation

NodeJS
npm install dropperjs
Client / Browser
  • JsDelivr

     <script src="https://cdn.jsdelivr.net/gh/denyncrawford/dropper/client-api/javascript/dropper-client.js"></script>
  • RawGitHack

      <script src="https://raw.githack.com/denyncrawford/dropper/master/client-api/javascript/dropper.js" charset="utf-8"></script>

Documents

Go to the API section to learn how to use Dropper and its methods.

Credits

Lead Developer - Denyn crawford (@samaels_bitch)

License

The MIT License (MIT)

Copyright (c) 2019 Crawford

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.