PowerWeChat is a free, open source e-commerce platforms project written in Go and released under MIT. It has 1,814 GitHub stars, 256 forks and 9 open issues, and was last pushed 19 days ago. On this registry it ranks #25 of 30 tracked projects in E-commerce Platforms, with 5 head-to-head comparisons available. It gained 1 stars over the last 3 tracked days.

What is PowerWeChat?

What it is

PowerWeChat is Go SDK framework for WeChat ecosystem, based on WeChat SDK for Golang. It supports mini program, WeChat Pay, WeCom, official account, open platform, JSSDK. Project lives in Go ecosystem. GitHub tagline and description state same scope. Language Go. License MIT. Category Business Software / E-commerce Platforms. Homepage https://powerwechat.artisan-cloud.com. Repo age five years. Stars 1813. Forks 256. Open issues 9. Contributor count not shown. Last push 2026-08-29T14:21:52Z.

Concrete problem solved: WeChat API work requires many endpoint calls plus AES encryption, decryption, signature, verification, callback notification encryption, token refresh. PowerWeChat wraps lower steps. Users focus on API usage, not each WeChat security detail. README says goal reduce difficulty, install once, cover WeChat function interfaces. It says most interfaces support strong typing. It says complete test project supports Web API testing.

Key capabilities

  • Covers mini program APIs, including auth login session code to OpenID.
  • Covers official account APIs: server, messages, broadcast, user, user tags, OAuth, JSSDK, QR code, short key, media, material, menu, card, customer service, shake around, data cube, reply, comment, goods.
  • Covers WeCom APIs.
  • Covers WeChat Pay APIs.
  • Covers open platform APIs.
  • Handles AES encryption, decryption, signature, verification, callback notification encryption.
  • Provides typed interfaces, tests, Web API test project, docs, tutorials, video tutorials.

Who uses it and how

  • Go backend teams add mini program login. They create miniProgram.NewMiniProgram with AppID, Secret, HttpDebug, Debug from environment variables, then call app.Auth.Session(code) to get OpenID.
  • Official account teams handle server callbacks, messages, broadcast, user tags, OAuth, JSSDK, QR code, media, menu, customer service.
  • Payment teams integrate WeChat Pay API endpoints through SDK wrappers.
  • WeCom teams call enterprise WeChat APIs through SDK wrappers.
  • Open platform teams use documented open platform APIs.

Getting started

Install with go get -u github.com/ArtisanCloud/PowerWeChat/v3, initialize instance with config, then call API. README points to https://powerwechat.artisan-cloud.com/zh/start/ and https://github.com/ArtisanCloud/power-wechat-tutorial for examples.

When to use it — and when not to

Use when Go service needs broad WeChat API coverage and team wants SDK to handle crypto, signature, callback, token refresh. Avoid when non-Go stack, or when project must implement every WeChat request detail directly. README gives no paid product comparison, no hosted option, no database, storage, or SMTP setup; V2 to V3 upgrade adds context parameter and fixes v2 auto refresh token issue, so older code may need migration.

project readme (upstream, from github) — read inline

PowerWeChat SDK

Go Build Go Test

star

你的Star,是对我们最好的支持!也是我们坚持的动力!


PowerWeChat是一款基于Golang的微信SDK开发框架。目前已经覆盖了微信小程序、企业微信、微信支付等绝大部分场景的API。

PowerWeChat致力于减少微信开发中的各种上手难度,使用者只需要关心API使用,不需要关注底层微信开发中需要用到各种AES加密和解密、签名以及验证,回调通知加解密等。

产品特性

  • 简易上手,安装一次,全覆盖微信功能接口
  • 开源项目,丰富的文档内容,长期维护
  • 大部分接口已经支持强类型覆盖
  • 完整的测试项目,支持Web API测试

快速上手

go get -u github.com/ArtisanCloud/PowerWeChat/v3

示范:初始化实例对象,调用小程序的授权登陆接口

import (
	"github.com/ArtisanCloud/PowerWeChat/v3/src/miniProgram"
	"os"
)

// 1. 初始化小程序应用实例
app, err := miniProgram.NewMiniProgram(&miniProgram.UserConfig{
	AppID:  os.Getenv("miniprogram_app_id"), // 小程序、公众号或者企业微信的appid
	Secret: os.Getenv("miniprogram_secret"), // 商户号 appID
	HttpDebug: true,
	Debug:     false,
})

// 2. 调用小程序的授权登陆接口
code := "CODE" // 前端小程序登录时,从微信获取的code
rs, err := app.Auth.Session(code)

printf(rs.OpenID)

更多实例接口,请打开官方文档

文档以及使用示例

  • 官网文档 :全面的接口文档,方便用户查找,使用我们开发的sdk功能

  • 使用示例 :您可以通过Tutorial来了解到PowerWeChat的配置和使用

    ps: 我们单独写了一个项目 PowerWechatTutorial ,基本上覆盖了大部分常用的API使用,希望能够帮助大家更快的上手Golang WeChat开发。

版本升级描述(V2->V3)

  • 接口添加context参数
  • 解决v2的自动refresh token问题

如果你觉得这个项目对你有帮助,可以请作者喝杯咖啡

请扫我

感谢打赏者,对该项目的支持

视频教程

快速上手

框架设计

公众号使用

小程序使用

企业微信使用

API快速导航

更多内容请在官方文档 里面进行查阅。

产品诞生背景

团队也是很多同学一样,从 PHP 转向 Golang,具体为什么,有什么好处,就不用我这里多介绍了吧。 但是现在因为微信的生态做私域化管理是得天独厚,所以我们公司也开发了蛮多企业微信的功能。只是在转型 golang 的过程中,没有找到像 (easywechat)这样好用的 sdk。所以我们就自己想为 golang 的同学们做一点贡献。产品会长期维护,迭代,希望同学们有兴趣在使用的过程中,多给意见。

Star History

Star History Chart

相关产品推荐

PowerX 基于PowerWechat的客域系统
WeyUI 一套微信生态前端组件库,适配PowerX非常友好
[BaiduTrans 百度翻译Go-SDK,

readme truncated — read the full docs on github

Frequently asked questions

Is PowerWeChat free to use?

PowerWeChat is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does PowerWeChat do?

PowerWechat是一款基于WeChat SDK for Golang,支持小程序、微信支付、企业微信、公众号等全微信生态

What is PowerWeChat written in?

PowerWeChat is primarily written in Go. Its source is publicly available at https://github.com/ArtisanCloud/PowerWeChat, and it has 1,814 GitHub stars.