# Eric-Guo/wechat

API, command and message handling for WeChat in Rails

Repository: https://github.com/Eric-Guo/wechat
Canonical: https://ross.abutalabs.com/products/eric-guo-wechat
Language: Ruby
License: MIT
License Family: permissive
Topics: wechat-sdk, wechat-oauth, wechat-framework, wechat
Last push: 2026-07-03T08:52:28+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 90, release rhythm 73, longevity 100
- inputs: {"age_days": 4541, "days_push": 61, "days_rel": 103, "gap_med": 77, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1346, forks 366 (observed 2026-08-28T04:04:27.443148+00:00)

## What it is
A Ruby gem providing WeChat Official Account and Mini Program API integration for Rails applications, including message sending/receiving, JS-SDK signature, and OAuth 2.0 authentication. It also ships a `wechat` CLI command for interacting with the WeChat API from the console without running a web server.

## Use cases
- integrate WeChat Official Account messaging into a Rails app
- handle incoming WeChat messages and events in a controller
- add WeChat OAuth 2.0 login to a Rails application
- generate JS-SDK config signatures for WeChat web pages
- send WeChat template or customer service messages from the console
- build a WeChat mini program backend in Ruby
- test WeChat API calls quickly via a CLI without a running server

## When to choose
- you are building a Rails (or Ruby) backend for a WeChat Official Account or Mini Program
- you need both message handling and OAuth in one gem
- you want a CLI to poke at the WeChat API during development

## When to avoid
- your project is not Ruby/Rails based
- you need WeChat Pay features (use the wechat-starter demo or a payment SDK instead)
- you need a framework-agnostic or non-Rails Sinatra-style integration

## Facets
- artifact type: library
- maturity: active
- function: sdk, auth, http-client, cli, middleware
- domain: messaging-platforms, web-development, apis, backend
- platform: ruby, cli
- tags: wechat, wechat-sdk, wechat-oauth, rails, mini-program, official-account, js-sdk, message-handling, web-server

## Member repositories
- Eric-Guo/wechat (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:27.443148+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:42:40.135934+00:00, confidence not recorded.
  - readme: https://github.com/Eric-Guo/wechat (fetched 2026-08-28T04:04:27.443148+00:00, sha 71e00efae672)
- Data as of 2026-08-30T08:39:29.467469+00:00.
