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

@atom.io/template-react-realtime-text-editor

v0.0.10

Published

A realtime text editor built with atom.io, React, and Lasertag.

Readme

React Realtime Text Editor

Mosaic is a React + atom.io multiplayer Markdown editor with a small Node and Socket.IO collaboration server. It ships simulated identities so the complete shared-editing experience can be explored locally without provisioning auth.

Run It

Run npm run dev, then open the displayed Vite URL. Open a second tab and use the avatar menu to switch identities. The Vite app runs on port 5173 and the collaboration service runs on port 3000. The browser always connects to its current origin; Vite proxies /socket.io and /health to the collaboration service in both development and preview modes.

What It Shows

  • optimistic shared text that converges after simultaneous and offline edits;
  • live identity, connection, caret, and line-level presence;
  • selection anchors that survive edits around them;
  • per-identity undo and redo that preserve other authors' work;
  • durable-stream snapshots, idempotent operation replay, and server validation;
  • a safe, dependency-free Markdown preview rendered as React nodes; and
  • structural component styling checked by Lasertag.

Run npm test for the multi-client collaboration scenarios. Run npm run lint to enforce ESLint, type-aware Oxlint, React hook call-order correctness, TypeScript, and the Lasertag render-story/CSS relationship with zero warnings. Run npm run fmt:check in CI and npm run fmt to apply the pinned dprint configuration locally.

Start Reading

  • src/collaboration/mosaic.ts is the browser collaboration contract: one mutable atom, graph-derived selectors, selective history, and model-relative presence.
  • node/mosaic-atom.ts registers the mutable atom with Zod runtime schemas, presence validation, and checkpoint cadence without entering the browser bundle.
  • atom.io's Mosaic client owns optimistic edits, reconnect rebasing, causal retries, and structured recovery.
  • atom.io's Mosaic server authenticates authorship, durably orders revisions, checkpoints streams, and publishes ephemeral presence.
  • src/MarkdownWorkspace.tsx is the React editing experience.
  • INNOVATIONS.md records the reconciliation decisions that became Mosaic and the remaining production boundaries.

The template selects Mosaic's in-memory storage adapter for a zero-setup demo. Production deployments should provide a linearizable storage adapter, document ACLs, rate limits, and metrics as described in INNOVATIONS.md. Keep the same-origin contract in your deployment by forwarding /socket.io to the collaboration service at the edge.