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

@nishantbhatte/aether-core

v0.5.0

Published

Delete the backend. Your React state IS the database. CRDT-backed multiplayer, offline-first, and optional end-to-end encryption so even your own server can't read your data.

Downloads

274

Readme

@nishantbhatte/aether-core

Zero-Transit sync engine for the browser. Your frontend variables are the database.

CRDT-backed, offline-first, real-time. No backend code to write — just connect to the Python relay and read/write keys.

npm install @nishantbhatte/aether-core

Vanilla JS — 6 lines

import Aether from '@nishantbhatte/aether-core';

const aether = new Aether('ws://localhost:8211');
await aether.ready();

aether.set('counter', (aether.get('counter') ?? 0) + 1);
aether.on('counter', (n) => console.log('counter is now', n));

Open the same page in two browser tabs. They sync. With zero backend code beyond python -m aether_core.gateway.

React — useAether hook

import { useAether } from '@nishantbhatte/aether-core/react';

function Counter() {
  const [count, setCount] = useAether('count', 0, {
    url: 'ws://localhost:8211',
  });
  return (
    <button onClick={() => setCount((count ?? 0) + 1)}>
      clicked {count} times
    </button>
  );
}

Same shape as useState. Same component, two tabs, real-time sync.

App-wide config

Set the URL once instead of repeating it in every hook:

import { configureAether, useAether } from '@nishantbhatte/aether-core/react';

configureAether({ url: 'ws://localhost:8211', authToken: 'optional-shared-secret' });

function Counter() {
  const [count, setCount] = useAether('count', 0);
  // ...
}

With authentication

Pair the client authToken with AuthConfig(token="...") on the Python gateway. The token rides as a ?auth_token=... query parameter on the WebSocket URL AND as a first-frame {type:"auth", token:"..."} message (whichever lands first). Use wss:// in production so the token never crosses the wire in cleartext.

new Aether('wss://your.host:8211', { authToken: process.env.AETHER_TOKEN });

"Did my write win?" — onSupersede

LWW conflict resolution can override your write if a concurrent writer's HLC stamp is higher. The math doesn't lose data, but you may want to know when your write wasn't the final one:

aether.onSupersede((key, attempted, actual) => {
  console.warn(`My write to ${key} lost the race: tried ${attempted}, got ${actual}`);
});

In React:

import { useAetherSupersede } from '@nishantbhatte/aether-core/react';

function MyComponent() {
  useAetherSupersede((key, attempted, actual) => {
    toast(`Your edit to ${key} was overwritten`);
  }, []);
  // ...
}

What's in the box

  • Aether — the client class. Auto-reconnect, offline cache, BroadcastChannel cross-tab sync, optional auth.
  • useAether — single-key React hook with useState-shaped API.
  • useAetherSnapshot — full-state hook for kanban/board-style UIs.
  • useAetherSupersede — be notified when one of your writes loses an LWW race.
  • configureAether / getAether — app-level defaults and an imperative escape hatch.

License

MIT © Nishant Bhatte. Backend lives at github.com/IronFighter23/aether-core.