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

@rine-kit/pubg-domain

v0.1.8

Published

PUBG domain: query schema, time selectors, team context, SQLite/Postgres-neutral repository port, review and share logic. Host-independent; extracted from Lab.

Readme

PUBG Domain

PUBG 的平台无关 Domain:官方 PUBG API client、SQLite match/Telemetry store、确定性查询/比较、时间边界、review facts、证据引用和一次性迁移所需的数据结构。OpenClaw plugin 只调用这里的显式 service;本包不依赖 OpenClaw、LangBot、Mastra、Telegram、n8n 或任何 HTTP gateway。

config/default-team.json 是完全虚构、不具备真实查询能力的 fixture,不再包含真实 PUBG Account ID。生产插件要求显式的 PUBG_TEAM_CONFIG_FILE,从仓库外加载队伍配置;未配置将 fail closed。

初始化自己的小队(根据官方昵称解析官方 PUBG Account ID,默认仅写入 Git 忽略的 .local/):

node scripts/init-pubg-team.mjs --players PlayerOne,PlayerTwo --platform steam --api-key-file .local/pubg-api-key
node --test scripts/test-init-pubg-team.mjs

详见 Community PUBG Setup。API key、WhatsApp pairing 数据、真实队伍 ID 和其他凭据不得进入 Git。旧 Python V2 和 Runtime 只在 Git 历史中保留,不继续维护第二套实现。

Tenant scope and repository ports

Query execution requires an explicit TeamContext containing the tenant ID, team ID, and validated roster. The caller must resolve that scope before entering the Domain; missing or mismatched scope fails closed. Public authorization remains the application's responsibility.

PubgDomainService depends on the asynchronous PubgRepositoryPort. The private OpenClaw adapter wraps its existing SQLite repository in SqlitePubgRepositoryAdapter, pinned to the configured private scope. Public PostgreSQL persistence is a separate adapter in apps/pubg-saas; it uses the public database and application authorization, independently of private SQLite. Both adapters must preserve the same ToolEnvelope, evidence, coverage, partial/unknown and temporal contracts.

tests/fixtures/shared-edge-cases.json locks nine independent synthetic stat expectations: KD/zero denominator, revives, squad rank, relative 06:00 periods, day grouping, no matches, partial/unknown coverage and comparison ratios. Private Domain tests run these without PostgreSQL or the public app. The public suite then reads the same fixture through both adapters and compares whole deterministic results. It also compares team damage/kick/punch/melee, derived evidence and parser/feature cache versions, partial unavailable telemetry, successful zero, and cache-only reads after reopening each independent store. These are offline fixtures, not live independent deployment or restore acceptance.