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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ethermeris

v0.0.7

Published

An Experimental Real-time State Management Networking Framework for Node.js

Readme

Ethermeris

An Experimental Real-time State Management Networking Framework for Node.js

Features

Ethermeris is a real-time networking framework that simplifies state management between the server and clients. It consists of:

  • A Node.js module for the server
  • A JavaScript client library for the browser

⚠ WARNING ⚠ This package is very experimental and is not at all meant to be used in production. Many security features are missing and many bugs are yet to be found. You have been warned.

Main Features

Ethermeris is very similar to other networking frameworks but: Ethermeris's main advantage is speed.

UDP Networking through WebRTC Ethermeris uses WebRTC to communicate between the server and clients to accomplish fast packet speeds. If WebRTC isn't supported on the browser, WebSockets is automatically used as a fallback.

Event Compression through MessagePack Ethermeris automatically compresses and decompress event data using MessagePack end-to-end. By compressing JSON objects into binary blobs, Ethermeris can achieve high speeds.

Built-in State Management The Ethermeris Server also provides a singular state that gets automatically synced with all clients intelligently. Currently, it is very restricting. There are some things to know about this state:

  • MessagePack converts undefined to null during encoding, so do not use undefined in the state.
  • Currently, to denote that a key should be deleted from the state, the value has to be set to null.
  • Because of the two points above, instead of using null to show emptiness of a value, use something else that's more fitting such as an empty string or false.
  • Arrays are not meant to be used within the state. Instead of holding collections of objects using arrays, use a normal object instead, and use the IDs of the objects as keys.

Custom Object Compression Not implemented yet.

Installation

// with npm
npm install ethermeris

// with yarn
yarn add ethermeris

Example Code

This example shows only the server code required.

This server code opens a server on port 3000 that's ready for clients and a counter that changes the state every second.

// server.js
const http = require('http');
const Ethermeris = require('ethermeris');
const httpServer = http.Server(app);

const manager = new Ethermeris.Manager({
	httpServer
});
const server = manager.createServer({
	serverID: "main",
	stateSchema: {
		counter: 0
	}
});

server.on('connection', (client, metadata) => {
	console.log("A user has joined!");
});
server.on('disconnection', client => {
	console.log("A user has disconnected.");
});

setInterval(() => {
	server.setState(state => ({
		counter: state.counter + 1
	}));
}, 1000);

httpServer.listen(3000);

A more in-depth example is available in the examples/setup folder. Currently there is only one example.

Documentation

Documentation is available here: https://kdeary.github.io/Ethermeris

License

MIT