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

@hiapi/hiapi-cloud-admin-lib

v0.0.14

Published

hiapi 各管理后台共用的组件库(`TablePage` / `TableLayout` / `useApi` / 验证码 / 类型)。

Readme

@hiapi/hiapi-cloud-admin-lib

hiapi 各管理后台共用的组件库(TablePage / TableLayout / useApi / 验证码 / 类型)。

发布

npm config set registry https://registry.npmjs.org/   # 装依赖时可切回 npmmirror
npm version patch
npm publish --access public                            # 需要 OTP

下游(admin-ts 及各子应用后台)依赖写的是 ^0.0.x,对 0.0.x 是精确匹配: 发完新 patch 必须回下游把 package.json 里的版本号字符串手动改掉再 pnpm install, 只跑 install 不会升。

i18n

组件库自带一份文案(src/i18n/index.ts),不使用宿主的 vue-i18n —— 这个包被多个后台依赖,若靠宿主的 t(),就等于要求每个使用方都在自己的语言包里 预留 lib.* 那一段,少补一个键就是界面上直接露出 key。

宿主只需要同步「当前语言」这一个信号:

import {setLibLocale} from '@hiapi/hiapi-cloud-admin-lib'

watch(() => i18n.global.locale.value, (locale) => setLibLocale(locale as string))

不接这行也不会坏:libLocale 初始值读的是 localStorage.getItem('locale') (与 vue-i18n 存的是同一个键),刷新后语言就是对的,只是同一次会话里切语言不会即时生效。

加文案:在 src/i18n/index.tsmessageszh-cn 和 en 同时加一条, 类型 LibMessageKey 会自动跟上,漏一边编译期就报错。