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

openxiangda-nest

v2.3.2

Published

OpenXiangda 2.0 的受信 NestJS 业务后端集成。

Readme

openxiangda-nest

OpenXiangda 2.0 的可选业务后端 SDK。普通 CRUD、标准审批与通知优先使用平台能力;确有自定义服务端业务时,通过根包 openxiangda/nest 使用本 SDK。完整中文指南运行 pnpm openxiangda docs backend

全局 Guard 验证平台网关证明,@CurrentUser() 提供已验证的用户、角色并集和能力并集。@OpenXiangdaOperation() 绑定声明的业务动作并在入口授权。动作内的 OpenXiangdaBusinessDataApiService 使用应用服务端执行权限,不再次按调用者普通 CRUD 权限过滤;业务范围必须由动作本身校验,审计保留发起用户及动作。

使用 bootstrapOpenXiangdaApplication 启动后端,它负责原始请求字节、代理信任、关闭钩子及监听协议;应用不另建启动器。SDK 自动传递平台请求 ID,不手写身份或权限镜像。

OpenXiangdaStandardOperations 封装会议冲突、课程容量与重复选课、访客重复预约等事务。访客 duplicateMatch 是非空的真实值对象,和 data 来自同一不可变请求;不是字段名数组。重试使用相同事务及 idempotencyKey,平台返回既有结果以避免重复数据和事件。

业务动作内的 OpenXiangdaBusinessNotificationService.send() 使用平台管理的应用身份。签名事件与日期触发处理器使用 sendFromEvent(),由平台从不可变事件 data 解析收件人与文案。OpenXiangdaNotificationService 是具有 app:notification2:send 的管理调用路径,高级钉钉卡片为显式启用的通道;应用不管理机器人凭据。