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 🙏

© 2025 – Pkg Stats / Ryan Hefner

zzz-data

v0.0.1

Published

zzz data

Readme

zzz-data

Typed data toolkit for Zenless Zone Zero. This package bundles curated JSON, enums, and interfaces so applications can consume the game encyclopedia without scraping or cleansing spreadsheets themselves.

What You Get

  • Structured datasets – JSON exports for agents, Bangboos, W-Engines, Drive Discs, anomalies, and Deadly Assaults under ./data.
  • TypeScript surfacedist/index.d.ts exposes discriminated unions, shared enums, and helper constants such as ATTRIBUTES, SPECIALTIES, and ATTACK_TYPES.
  • Stable identifiers – Consistent keys generated from the workbook (data.xlsx) and Hakush scraping pipeline (data-hakush).

Installation

pnpm add zzz-data

The package is workspace-linked here, but once published it can be installed like any other npm dependency. Node.js 20+ is recommended.

Usage

import type { Agent } from "zzz-data"
import { agents, ATTRIBUTES } from "zzz-data"

type ElectricAgent = Agent & { attribute: typeof ATTRIBUTES.ELECTRIC }

const electricAgents: ElectricAgent[] = agents.filter(
  (agent): agent is ElectricAgent => agent.attribute === ATTRIBUTES.ELECTRIC,
)

Each resource (agents, bangboos, etc.) is exported as a strongly typed array. Constants live under zzz-data/src/constants, and the individual JSON files can be imported directly via the ./data/* export map if you prefer raw objects.

Scripts

| Command | Purpose | | ------------------- | ------------------------------------------------------------------------------------------------ | | pnpm run scrape | Launch Puppeteer, crawl https://zzz3.hakush.in, and store fresh raw assets in data-hakush. | | pnpm run generate | Parse data.xlsx plus the scraped assets and regenerate the normalized JSON files under data. | | pnpm run build | Compile the TypeScript sources with tsdown into dist (JS + declaration files). | | pnpm run release | Publish the package (expects the correct registry auth to be configured). |

Data Pipeline

  1. Source updates – Refresh raw Hakush payloads with pnpm run scrape or edit data.xlsx manually for quick fixes.
  2. Normalize – Run pnpm run generate to map localized strings to canonical keys, attach icons, and emit denormalized arrays.
  3. Ship – Execute pnpm run build so consumers (including the server workspace package) see the updated exports in dist.

Intermediate artifacts generated by the scraper live in data-hakush; the distributable JSON lives in data. Check both directories into source control to keep provenance clear.

Directory Layout

src/
  constants/      # ATTRIBUTES, SPECIALTIES, ATTACK_TYPES, FACTIONS
  types/          # Agent, Bangboo, W-Engine, Drive Disc, etc. definitions
  index.ts        # Aggregated exports for constants, types, and JSON data
scripts/
  scraper/        # Puppeteer + cheerio crawler for Hakush
  generate.ts     # ExcelJS workflow that regenerates JSON payloads

Updating Content

  • Prefer adding new columns or sheets to data.xlsx rather than hand-editing JSON.
  • If the Hakush DOM changes, adjust the selectors in scripts/scraper and re-run pnpm run scrape.
  • Keep PRs focused—include regenerated JSON alongside the source changes so reviewers can verify the pipeline output.