wppconnect-team/wppconnect
概要
Node.jsおよびTypeScript向けのWhatsApp Web自動化ライブラリです。Puppeteerを使ってセッションを管理し、メッセージの送受信やメディアの処理、ボットの構築ができます。WPPConnectエコシステムの一部です。
仕事効率化・自動化できること
- Send and receive text, images, video, audio, documents, contacts, locations and stickers.
- Manage multiple sessions, QR pairing, chats, contacts and groups.
- Handle incoming messages and session events through the JavaScript/TypeScript API.
計測したスター増加
- 24時間
- -1
- 7日間
- +4
- 15日間
- +20
- 1か月
- +34
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルEnglish | Português (Brasil)
WPPConnect
Control WhatsApp Web from Node.js applications.
A project in the WPPConnect ecosystem, maintained by WPPConnect Team.
Getting started | Documentation | Contributing | Support WPPConnect
Overview
For developers building bots and integrations who want to manage the browser and session lifecycle in their own application. WPPConnect combines Puppeteer with the browser automation layer used by the ecosystem.
Features
- Send and receive text, images, video, audio, documents, contacts, locations and stickers.
- Manage multiple sessions, QR pairing, chats, contacts and groups.
- Handle incoming messages and session events through the JavaScript/TypeScript API.
Getting started
Use Node.js and npm, plus Chrome/Chromium and its operating-system dependencies. CI builds with Node.js 24.22.2; the package does not declare a minimum Node version.
npm install @wppconnect-team/wppconnect
Save this as index.cjs, run node index.cjs, and scan the QR code with WhatsApp Linked devices. Send ping from an authorized test contact to receive pong.
const wppconnect = require("@wppconnect-team/wppconnect");
wppconnect.create({ session: "readme-demo" })
.then((client) => {
client.onMessage(async (message) => {
if (!message.isGroupMsg && message.body === "ping") {
await client.sendText(message.from, "pong");
}
});
})
.catch(console.error);
Configuration
Pass session and browser options to create(...); see client creation. Store session credentials privately. WhatsApp Web changes can require package updates; review release notes and deprecations when upgrading.
Documentation
WPPConnect ecosystem
| Project | Purpose | When to use it |
|---|---|---|
| WPPConnect/WA-JS | Expose WhatsApp Web functions through the browser-side WPP API. |
Run browser-side code in WhatsApp Web. |
| WPPConnect Server | Run a REST API for WhatsApp sessions, messages and webhooks. | Expose session and messaging operations over HTTP. |
| WPPConnect Manager | Manage WPPConnect Server sessions and conversations in a self-hosted web workspace. | Operate compatible Server sessions and chats through a UI. |
Support the project
WPPConnect is maintained by an open-source community. Your support helps fund maintenance, infrastructure, documentation, and the people working on the ecosystem.
If WPPConnect helps your project or business, consider making a one-time contribution or becoming a recurring supporter.
Support WPPConnect on Open Collective
Contributions are voluntary. See the official page for current financial information. You can also help with code, tests, documentation, translations and well-described issue reports.
Additional official beneficiaries in .github/FUNDING.yml: joaosouz4dev, manfe.
Contributing
Contributions of code, tests, examples, documentation and translations are welcome. For larger changes, discuss the approach in an issue first. Include the project/runtime versions, a minimal reproduction and sanitized logs when reporting a problem. Update both README.md and README.pt-BR.md in the same change when installation, configuration, features, examples, licensing or funding changes.
Read CONTRIBUTING.md.
After installing the development dependencies, use the repository checks relevant to your change:
npm run build
npm run lint
npm test
Account-dependent examples and tests require separate validation with an authorized test account. Never attach credentials or session files to an issue.
Community and support
Use repository issues for reproducible bugs and feature proposals. For usage questions, join the community through the official channels:
This project is independent and is not affiliated with or endorsed by WhatsApp or Meta. Follow applicable terms and obtain authorization for account and messaging operations.
License
GNU Lesser General Public License v3.0 or later (LGPL-3.0-or-later).
WPPConnect Team and contributors.
The original legal document and existing copyright notices are preserved. Third-party components retain their own terms.
関連プロジェクトを探す
読み込み中…