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

nexus.io

v0.5.0

Published

Discovery system of devices on local networks

Downloads

24

Readme

nexus.io

nexus.io is a very easy-to-use system based on websockets to register and detect computers and embedded boards on local networks. With nexus.io, all your devices register themself to a server, then any device can request to the server to find the devices available on the same local network.

In order to choose which devices are in the same network, the server uses the public ip address and to have a real time vision of available devices, we use websockets.

Installing

npm install nexus.io --save

Device

Registration and detection

Instantiate a nexus.io device in order to reference your app online and make it discoverable by other devices on the same network.

var device = require('nexus.io').device;

device.register({
    host: 'http://localhost:8080', // default is http://nexus-io.com
    apiKey: 'azXf21', // default is random
    name: 'name', // default is random,
    id: ''
});

device.on('registered', function () {
    // registered
});

device.on('unregistered', function () {
    // unregistered
});

// after a device.detect(), a event "devices" is triggered and
// send all devices currently connected to the local network
device.on('devices', function (devices) {
    //
});

device.on('device-joined', function (newDevice) {
    // real-time event when an other device is detected
});

device.on('device-leaved', function (oldDevice) {
    // real-time event when an other device is detected
});

Server

The server references devices. You may use the default server http://nexus-io.com or start your own server.

To start your own server, you can use a standalone server by using the repository nexus-server.

You also may integrate the server in your app with the module nexus.io.

var io = require('socket.io')();
var server = require('nexus.io').server(io);

server.on('started', function () {
    console.log('listening');
});

server.on('device-registered', function () {
    console.log('device-registered');
});

server.on('device-unregistered', function () {
    console.log('device-unregistered');
});

var http = io.listen(8080);