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

@orbitmem/relay

v0.1.0

Published

HTTP relay server for OrbitMem — authenticated vault access, data discovery, and snapshot archival

Readme

@orbitmem/relay

HTTP relay server for OrbitMem — authenticated vault access, data discovery, and snapshot archival.

Install

npm install @orbitmem/relay

Quick Start

# Development (hot reload)
PORT=3000 RELAY_MODE=mock bun run --hot src/index.ts

# Production
bun run dist/index.js

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | PORT | 3000 | Server port | | RELAY_MODE | mock | mock (in-memory) or live (OrbitDB/IPFS) |

API Endpoints

All routes are prefixed with /v1.

Health

| Method | Path | Auth | Description | |--------|------|------|-------------| | GET | /health | No | Health check |

Auth

| Method | Path | Auth | Description | |--------|------|------|-------------| | POST | /auth/challenge | No | Generate nonce + message for wallet signing | | POST | /auth/session | ERC-8128 | Issue session token |

Vault

| Method | Path | Auth | Description | |--------|------|------|-------------| | GET | /vault/public/:address/keys | No | List public keys | | GET | /vault/public/:address/:key | No | Read public value | | POST | /vault/read | ERC-8128 | Read encrypted value | | POST | /vault/write | ERC-8128 | Write vault entry | | POST | /vault/delete | ERC-8128 | Delete vault entry | | POST | /vault/keys | ERC-8128 | List vault keys | | POST | /vault/sync | ERC-8128 | Trigger vault sync |

Discovery

| Method | Path | Auth | Description | |--------|------|------|-------------| | GET | /data/stats | No | Global data statistics | | GET | /data/user/stats | ERC-8128 | Per-user statistics | | GET | /data/search | No | Search data registrations | | GET | /data/:dataId/score | No | Get data quality score |

Snapshots

| Method | Path | Auth | Description | |--------|------|------|-------------| | GET | /snapshots | ERC-8128 | List snapshots | | POST | /snapshots/archive | ERC-8128 | Archive snapshot | | GET | /snapshots/usage | ERC-8128 | Storage usage and limit |

Authentication

The relay supports three authentication methods, checked in order:

  1. Bearer Session Token — Stateless HMAC-SHA256 token (fastest)

    Authorization: Bearer <token>
  2. RFC 9421 Signature — Standard HTTP message signatures with ERC-8128 verification

  3. Legacy X-OrbitMem Headers — Backward-compatible signed requests

    X-OrbitMem-Signer: 0x...
    X-OrbitMem-Timestamp: 1234567890
    X-OrbitMem-Nonce: unique-id
    X-OrbitMem-Signature: 0x...

Programmatic Usage

import { createApp } from "@orbitmem/relay/app";
import { createMockServices } from "@orbitmem/relay/services";

const services = createMockServices();
const app = createApp(services);

// Use with any Hono-compatible runtime
export default app;

License

MIT