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

@wildbuck/core-authentication-frontend

v2.0.0-13

Published

Frontend authentication runtime for Buck login transport and auth request flows.

Readme

@wildbuck/core-authentication-frontend

Buck 登录链路使用的前端认证运行时。

职责边界:

  • 提供登录请求客户端,统一 bearer token、可选 tryRefresh 静默续期、401 终态清理、强制改密切换和错误读取。
  • 提供登录传输保护运行时,负责 /transport/meta 读取、SM2/SM3/SM4 封装和 envelope 解封。
  • 业务 SDK 的静默续期与会话终态分流由 @wildbuck/core-api-frontendtokenRefresh + createBrickSessionErrorHandler() 处理;登录链路本身继续由本包的 createAuthRequestClient() 管理。
  • 邻域边界createAuthRequestClient 在 refresh 失败后走 clearSession(login / MFA / 改密邻域)。业务列表与管理页主路径必须用 configureHttp({ tokenRefresh, responseErrorHandler }),由壳层按 expirationStrategyLOGIN_OUT / SCREEN_LOCK 分流(历史 VERIFY_PASS 归一 soft);不要用本客户端冒充业务会话生命周期。
  • 不承载登录页面、MFA 交互、认证状态 UI 编排或业务模块路由。
  • 上层应用或模块可在自己的 workspace/composable 中组合它,但不应再自建本地 request-client
import { createAuthRequestClient } from '@wildbuck/core-authentication-frontend';

const authClient = createAuthRequestClient({
  state,
  clearSession,
  adoptPasswordChangeRequiredState,
  onStatus,
});