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

@toolkit-p2p/headless

v0.3.0

Published

Headless peer runtime for Lighthouse persistence layer

Readme

@toolkit-p2p/headless

Headless peer runtime for Lighthouse persistence layer

Version: 0.3.0

Overview

The headless package provides a daemon runtime for running Toolkit-P2P as an always-on peer without UI. This enables Lighthouse - a persistence layer that keeps P2P networks alive when all human participants go offline.

Features

  • Daemon lifecycle management (start, stop, status)
  • DID identity generation and persistence
  • Trust ticket import/export
  • Integration with all v0.2.0 packages (identity, sync, transport, mesh-cache)
  • Store-and-forward messaging (mailbox)
  • Shared state preservation (bulletin CRDT)
  • TTL and relay depth enforcement

Installation

pnpm add @toolkit-p2p/headless

Usage

import { HeadlessNode } from '@toolkit-p2p/headless';

const lighthouse = new HeadlessNode({
  storagePath: '~/.lighthouse',
  port: 3000,
});

await lighthouse.start();

// Lighthouse is now running...

await lighthouse.stop();

Philosophy

Lighthouse is not a server. It's just another peer that never sleeps. It enforces the same trust tickets, hop limits (≤3), and TTL (≤48h) as all peers.

Deployment

Raspberry Pi Lighthouse

Deploy an always-on Lighthouse node on a Raspberry Pi for production P2P network continuity:

Quick start:

npm install -g @toolkit-p2p/headless level
mkdir -p ~/.lighthouse
# Copy example files and configure
node ~/.lighthouse/lighthouse.js

See the examples/raspberry-pi directory for systemd service templates and configuration examples.

Package Status

Version: 0.3.0 (in development) Status: Foundation phase (Week 1)

Dependencies

  • @toolkit-p2p/identity - Ed25519 identity, DID, trust tickets
  • @toolkit-p2p/sync - CRDTs, Vector Clocks, Merkle trees
  • @toolkit-p2p/transport - WebRTC mesh networking
  • @toolkit-p2p/mesh-cache - Content-addressed storage

License

MIT © 2025 Aaron Rosenthal