Skip to content
المشاريع

حول

Conversational RPA SDK for Chatbot Makers. Join our Discord: https://discord.gg/7q8NBZbQzt

أدوات التطوير

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
+٢
خلال 7 أيام
+٢١
خلال 15 يومًا
+٤٩
خلال شهر
+١٤٩

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Wechaty Join Wechaty Discord Developer Community NPM Version NPM Docker

Wechaty

Wechaty is a conversational RPA SDK for chatbot makers. Write your bot once, and run it on WeChat, WhatsApp and other messaging platforms through interchangeable puppet providers.

This repository is the Wechaty monorepo. Each npm package lives in packages/<npm-name>/ and has its own README.

Quick start

npm install wechaty
import { Wechaty } from 'wechaty'

const wechaty = new Wechaty()
wechaty
  .on('scan', (qrcode, status) => console.log(`Scan QR Code to login: ${status}\nhttps://wechaty.js.org/qrcode/${encodeURIComponent(qrcode)}`))
  .on('login',            user => console.log(`User ${user} logged in`))
  .on('message',       message => console.log(`Message: ${message}`))
wechaty.start()

The wechaty package README covers installation, Docker, puppet providers and the API. New to Wechaty? Start from the getting-started template.

Packages

Package npm Description
wechaty npm The Wechaty SDK: the bot, its users (contacts, rooms, messages) and the puppet bridge
wechaty-grpc npm The gRPC protocol (.proto files) and its generated Node.js stubs, used between puppet services and their clients
wechaty-puppet npm The abstract Puppet that every provider implements, with the shared payload types
wechaty-puppet-mock npm A puppet with no IM behind it: an in-memory Mocker for tests and examples
wechaty-puppet-service npm Puppets over gRPC: PuppetService calls a remote puppet, PuppetServer serves any puppet
wechaty-token npm Puppet service tokens: discovery, the wechaty:// gRPC resolver and the wechaty-token CLI

All the core libraries that wechaty builds on live here, and wechaty uses them as workspace packages (#3054).

Repository layout

packages/<npm-name>/        one npm package each: sources, tests, README
scripts/                    repository tooling (Docker)
.github/workflows/          CI for every package, publishing, Docker
.github/coverage-baselines/ coverage floors per runtime and package
tsconfig.base.json          compiler options shared by every package

Development

Wechaty needs Node.js 26 and npm 10 or newer. Install once at the root, then run the checks for every package:

npm ci
npm run lint
npm run test:unit
npm run test:unit:deno
npm run coverage:node
npm run coverage:deno

Community

License

Apache-2.0

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…