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

@bufinance/gtm-graph

v0.1.0

Published

BUFI GTM graph — force-directed account-map view (POIs, bridges, warm paths) plus the pure path/bridge algorithms that power it. Shared between the desk admin cockpit and open-agents.

Readme

@bufinance/gtm-graph

BUFI's GTM account map: a force-directed graph view (people of interest, bridges, warm paths) plus the pure path/bridge algorithms that power it. Shared between the BUFI desk admin cockpit (workspace dep) and open-agents (published npm dep).

Entry points

| Import | Contents | Safe on server? | | ------------------------------- | ---------------------------------------------------------------------------------------------- | --------------- | | @bufinance/gtm-graph | Data contracts (GtmGraphData, GtmGraphPayload) + everything from /algorithms | Yes | | @bufinance/gtm-graph/algorithms | fewestHops, strongestPath, bridgeScores, neighborhood, edgeWeight, computePoiIds, computeBridgeIds, capGraph | Yes | | @bufinance/gtm-graph/view | GtmGraphView React component (ships "use client") | Client only |

Usage

import { GtmGraphView } from '@bufinance/gtm-graph/view';

<GtmGraphView
  data={{ entities, relationships }}
  decorations={{ poiIds, bridgeScores }} // optional — computed client-side when absent
  now={generatedAt}
  onEntitySelect={id => openDetail(id)}
/>;
import { strongestPath, neighborhood } from '@bufinance/gtm-graph/algorithms';

const warm = strongestPath(graph, repId, targetId, { now: Date.now() });
const context = neighborhood(graph, entityId, 2);

Data shape

GtmGraphData is structurally compatible with the desk repo's KnowledgeGraphData (get_knowledge_graph RPC payload). Edge lastSeenAt/metadata are optional because that RPC omits them — hosts that read entity_relationships directly should include both so recency fading and traversal weights are exact. Missing lastSeenAt is treated as fresh.

Weight formula

w = strength * ln(1 + evidenceCount) * 0.5^(daysStale / 90)

strongestPath runs Dijkstra on 1/w; it can legitimately return MORE hops than fewestHops when a chain of strong fresh edges beats a weak stale direct edge — that divergence is the warm-path payoff.

Versioning discipline

Consumers outside the desk workspace (open-agents) track published versions. Any change to this package needs a version bump + npm publish before those consumers can use it — a workspace-side edit alone is invisible to them. Until the first publish, open-agents consumes the packed tarball via a file: dependency; switch it to ^0.1.0 after publishing.

Development

bun install
bun run build      # tsup → dist (esm + cjs + dts); required before dependents typecheck
bun run test       # bun test (algorithms + view-model + static render)
bun run typecheck
npm pack           # tarball for file: consumers
npm publish --dry-run

Provenance

  • Algorithms moved here from the desk repo's packages/intelligence/src/knowledge/graph-paths.ts (plan 099) — that path is now a re-export shim of @bufinance/gtm-graph/algorithms.
  • Physics copied (not imported) from packages/intelligence-ui/src/bubble-memory/bubble-physics.ts so the package publishes standalone; the bubble-memory original is unchanged.
  • li_connection edge styling is pre-wired for the HeyReach LinkedIn network edges (099 follow-up) — the UI needs zero changes when they land.