# royalrick/weapp

微信小程序服务端 SDK (for Golang)

Repository: https://github.com/royalrick/weapp
Canonical: https://ross.abutalabs.com/products/weapp
Homepage: https://pkg.go.dev/github.com/medivhzhan/weapp/v3
Language: Go
License: Apache-2.0
License Family: permissive
Topics: weapp, wechat, sdk, golang, go, wxapp, miniapp, miniprogram
Last push: 2025-07-04T05:49:15+00:00

## Health v2 (maintenance only)
Score: 39/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 30, release rhythm 16, longevity 100
- inputs: {"age_days": 3081, "days_push": 425, "days_rel": 425, "gap_med": 131.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1510, forks 284 (observed 2026-08-28T04:04:55.787743+00:00)

## What it is
A Go SDK for the server-side APIs of WeChat Mini Programs, wrapping endpoints like login (code2session), access tokens, and encrypted data verification. It supports pluggable HTTP clients, logging, caching, and custom token providers, but excludes payment features.

## Use cases
- implement WeChat mini program login in a Go backend
- get WeChat access tokens server-side
- verify WeChat encrypted data signatures
- build a Go API backend for a WeChat miniapp
- fetch user UnionId after payment in WeChat

## When to choose
- your backend is written in Go and serves a WeChat mini program
- you need maintained bindings for WeChat mini program server APIs
- you want customizable token caching and HTTP client behavior

## When to avoid
- you need WeChat Pay integration - the SDK explicitly excludes payment
- your backend is not in Go
- you need a full-featured WeChat Official Account SDK

## Facets
- artifact type: library
- maturity: active
- function: sdk, auth, http-client, caching
- domain: apis, backend, developer-tools
- platform: go, serverless
- tags: wechat, weapp, miniprogram, golang-sdk, wxapp, web-server

## Member repositories
- royalrick/weapp (main) score 39

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:55.787743+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:32:27.578162+00:00, confidence not recorded.
  - readme: https://github.com/royalrick/weapp (fetched 2026-08-28T04:04:55.787743+00:00, sha 0c7222f95474)
  - homepage: https://pkg.go.dev/github.com/medivhzhan/weapp/v3 (fetched 2026-08-29T11:36:31.214275+00:00, sha abd74a6f6d3c)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T11:36:31.225884+00:00, sha 757852027879)
- Data as of 2026-08-30T08:39:29.467469+00:00.
