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

@aster-cloud/ui-messages

v1.0.6

Published

统一语言包的界面文案 manifest(ADR 0018)。aster-lang-locales 各 locale 的 ui-messages 聚合产物,供 aster-api 启动加载与 aster-cloud 构建期拉取缓存副本。

Readme

@aster-cloud/ui-messages

统一语言包的界面文案 manifest(ADR 0018,统一语言包 Phase 1)。

这是 aster-lang-locales 各 locale 模块 src/main/resources/ui-messages/<locale-id>.json聚合产物,走独立的 npm 发布通道——不进 JVM jar,避免触发全生态版本级联。

内容

./gradlew exportUiMessages 产出(build/ui-messages/,prepack 时拷入本目录):

  • <locale-id>.json — 每个 locale 的完整界面文案(38 namespace),如 en-US.jsonzh-CN.jsonde-DE.json

  • ui-messages-manifest.json — envelope:

    {
      "schema": "aster-ui-messages-manifest/v1",
      "version": "1.0.2",
      "locales": [
        { "id": "en-US", "file": "en-US.json", "sha256": "…", "bytes": 129457 }
      ]
    }

    sha256 既是完整性校验,也是 aster-api → Workers KV 的版本化缓存 key 来源messages:<locale>:v<sha 前 8 位>):文案一变 sha 变 → KV key 自然换 → 边缘自然刷新。

真相源(system of record)

文案的唯一真相源是 locales/<lang>/src/main/resources/ui-messages/<id>.json改文案 = 改这里 → PR → 发版。本目录的 *.json 是生成产物,已 gitignore。

  • aster-api:启动时加载本 manifest 到内存,/api/v1/messages?locale=xx 直接吐内存。
  • aster-cloud:构建期拉取本包作 ① 运行时 fetch 失败的 fallback ② 本地 dev 离线可用。

hi-IN 的 ui-messages 在独立的 aster-lang-hi 仓,其 manifest 由该仓自行导出。

校验

verifyUiMessagesParity(root build,接入各模块 check → CI PR-blocking): 每个 locale 的顶层 namespace 键集必须与 en-US backbone 一致,防结构层漂移。 (叶子键缺失由 cloud deepMergeMessages fallback 到 en 兜底。)