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

@bsv/overlay-topics

v1.0.1

Published

Canonical BSV overlay topic managers and lookup services

Downloads

267

Readme

@bsv/overlay-topics

npm version npm downloads

Canonical topic managers and lookup services for the BSV overlay network. Bundles the reference implementations that overlay nodes mount to host first-class on-chain protocols — identity certificates, key/value storage, DIDs, message boxes, app catalogs, and more — without having to write a TopicManager / LookupService for each one from scratch.

Install

npm install @bsv/overlay-topics

Peer dependencies: @bsv/sdk, @bsv/overlay.

Quick start

Register a managed topic on an overlay engine:

import {
  IdentityTopicManager,
  createIdentityLookupService,
} from '@bsv/overlay-topics'

engine.registerTopicManager('tm_identity', new IdentityTopicManager())
engine.registerLookupService('ls_identity', createIdentityLookupService(db))

Each topic ships a matching *TopicManager (admission rules for incoming transactions) and create*LookupService(db) factory (query surface for clients).

Included topics

| Topic | Manager | Lookup | |-------|---------|--------| | tm_any / ls_any | AnyTopicManager | createAnyLookupService | | tm_apps / ls_apps | AppsTopicManager | createAppsLookupService | | tm_basketmap / ls_basketmap | BasketMapTopicManager | createBasketMapLookupService | | tm_btms / ls_btms | BTMSTopicManager | createBTMSLookupService | | tm_certmap / ls_certmap | CertMapTopicManager | createCertMapLookupService | | tm_desktopintegrity / ls_desktopintegrity | DesktopIntegrityTopicManager | createDesktopIntegrityLookupService | | tm_did / ls_did | DIDTopicManager | createDIDLookupService | | tm_fractionalize / ls_fractionalize | FractionalizeTopicManager | createFractionalizeLookupService | | tm_hello / ls_hello | HelloWorldTopicManager | createHelloWorldLookupService | | tm_identity / ls_identity | IdentityTopicManager | createIdentityLookupService | | tm_kvstore / ls_kvstore | KVStoreTopicManager | createKVStoreLookupService | | tm_messagebox / ls_messagebox | MessageBoxTopicManager | createMessageBoxLookupService | | tm_monsterbattle / ls_monsterbattle | MonsterBattleTopicManager | createMonsterBattleLookupService | | tm_protomap / ls_protomap | ProtoMapTopicManager | createProtoMapLookupService | | tm_slackthreads / ls_slackthreads | SlackThreadsTopicManager | createSlackThreadsLookupService | | tm_supplychain / ls_supplychain | SupplyChainTopicManager | createSupplyChainLookupService | | tm_uhrp / ls_uhrp | UHRPTopicManager | createUHRPLookupService | | tm_ump / ls_ump | UMPTopicManager | createUMPLookupService | | tm_utility / ls_utility | UtilityTokenTopicManager | createUtilityTokenLookupService | | tm_walletconfig / ls_walletconfig | WalletConfigTopicManager | createWalletConfigLookupService |

Per-topic query types (*Query, *Record) are exported alongside.

Use cases

Stand up a full-stack overlay node

Mount every canonical topic at once so your node accepts and serves the standard BSV overlay protocols:

import * as topics from '@bsv/overlay-topics'

for (const [name, mgr, svc] of [
  ['identity',  new topics.IdentityTopicManager(),  topics.createIdentityLookupService(db)],
  ['kvstore',   new topics.KVStoreTopicManager(),   topics.createKVStoreLookupService(db)],
  ['certmap',   new topics.CertMapTopicManager(),   topics.createCertMapLookupService(db)],
  ['did',       new topics.DIDTopicManager(),       topics.createDIDLookupService(db)],
  // ...
] as const) {
  engine.registerTopicManager(`tm_${name}`, mgr)
  engine.registerLookupService(`ls_${name}`, svc)
}

Run a single focused overlay

Pick just one topic (e.g. only tm_kvstore) and register it on your node.

Build a client against a managed topic

Use the exported query types to call a LookupResolver:

import type { KVStoreQuery } from '@bsv/overlay-topics'
import { LookupResolver } from '@bsv/sdk'

const resolver = new LookupResolver({ networkPreset: 'mainnet' })
const answer = await resolver.query({
  service: 'ls_kvstore',
  query: { protectedKey: '...' } satisfies KVStoreQuery,
})

License

Open BSV License — see LICENSE.txt.