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

egg-born-module-test-wechat

v5.2.10

Published

test module for egg-born-module-a-wechat

Readme

egg-born-module-test-wechat

CabloyJS的微信测试模块

Cabloy-微信是什么

Cabloy-微信是基于CabloyJS全栈业务开发框架开发的微信接口模块,当前整合了微信公众号微信小程序的接口,达到开箱即用的使用效果。在Cabloy-微信的基础上,可以很方便的开发各类微信业务系统

核心目标

微信开发最复杂的就是账号体系对接,比如:

  1. 消息推送系统中,对新用户进行注册
  2. 通过网页登录,对新用户进行注册
  3. 通过微信小程序登录,对新用户进行注册
  4. 如果启用微信开放平台,如何通过unionid关联同一用户
  5. 如果系统已经运行一段时间,再启用unionid机制,如果关联旧账号

一旦完成了这些场景下的账号体系对接,真正的业务开发就很简单了

因此,Cabloy-微信模块的核心目标,就是自动完成这些场景下的账号体系对接,我们所需要做的就是提供一些配置参数,然后就可以愉快的开启业务逻辑的开发了

特性

基于CabloyJS全栈框架提供的便利性和灵活性,Cabloy-微信主要有如下特性:

1. 一站式整合

当前整合了微信公众号微信小程序的接口,具体如下:

|场景|名称|说明| |--|--|--| |微信公众号|消息推送系统|自动完成接口对接,并自动进行用户注册| |微信公众号|网页登录|自动跳转微信登录,并自动进行用户注册| |微信公众号|网页JSSDK|自动注入JSSDK,并自动完成配置| |微信小程序|客服系统|自动完成接口对接| |微信小程序|后台登录接口|自动完成接口对接,并自动进行用户注册| |微信小程序|前端SDK|提供SDK,便于微信小程序前端直接访问CabloyJS后端API| |微信开放平台|unionid|自动匹配账户,自动聚敛|

2. 开箱即用

只需配置好微信账号参数,所有接口自动完成对接

3. 自动聚敛

我们知道,通过微信开放平台提供的unionid机制,可以为微信公众号微信小程序提供同一身份。但是在实际场景中,往往先开发并部署了微信公众号微信小程序。这时候,二者的用户账户是独立的。那么当我们配置好了微信开放平台unionid机制后,以前独立的用户账户会自动进行合并。这种机制,我们称之为自动聚敛

4. 多小程序支持

微信公众号可以关联多个微信小程序,因此,模块也提供了多小程序支持。如果启用了unionid机制,这些小程序同样也可以实现统一身份的打通

5. 多站点支持

通过CabloyJS提供的多实例特性,可以实现多站点支持,比如为不同的企业提供微信服务。请参见:EggBornJS:多实例

快速开始

快速开始,请参见: https://cabloy.com/zh-cn/articles/wechat-quick-start.html