Skip to content
Projekte

Über uns

Konversationsbasierter RPA-SDK für Chatbot-Entwickler. Tritt unserem Discord bei: https://discord.gg/7q8NBZbQzt

Entwicklerwerkzeuge

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
+1
in 7 days
+19
in 15 days
+41
in 1 month
+129

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

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

Ähnliche Projekte entdecken

Wird geladen…