Linux 软件免费装
Banner图

PeerKit Chat

开发者 razorsoftinc
更新时间 2026年11月17日 18:20
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: MIT
版权网址: 版权信息

标签

chat messaging realtime peer-to-peer peerkit

下载

0.1.6

详情介绍:

PeerKit Chat embeds two-person text chat on any WordPress page or post. Add the Gutenberg block peerkit/chat, or use the [peerkit_chat] shortcode. Visitors join a live PeerKit data session. The public page loads the bundled PeerKit Chat Core script and does not use React. What this plugin does Messages travel peer-to-peer on the PeerKit data channel while both people are connected. PeerKit does not store the conversation transcript. Powered by PeerKit PeerKit is a platform for real-time peer-to-peer experiences. Beyond this WordPress plugin, PeerKit provides developer SDKs and ready-to-use components for messaging, file sharing, voice, video calling, and local recording. See peerkit.dev and the Chat component. This plugin is the WordPress interface to PeerKit Chat. Other PeerKit components and SDKs are available separately for custom applications. See a short PeerKit Chat walkthrough on the Chat component page: https://peerkit.dev/components/chat PeerKit product information: https://peerkit.dev/ PeerKit docs: https://peerkit.dev/docs PeerKit pricing (free plan available; paid plans optional): https://peerkit.dev/pricing PeerKit contact: https://peerkit.dev/contact PeerKit Terms of Service: https://peerkit.dev/terms PeerKit Privacy Policy: https://peerkit.dev/privacy

安装:

  1. Upload the peerkit-chat folder to /wp-content/plugins/, or install the ZIP from Plugins → Add New → Upload Plugin.
  2. Activate PeerKit Chat.
  3. Create a PeerKit project and API key (pk_live_…) in the PeerKit dashboard.
  4. Open Settings → PeerKit Chat, paste the project API key (or define PEERKIT_CHAT_API_KEY in wp-config.php), and save to test the connection.
  5. Add the PeerKit Chat block, or [peerkit_chat mode="private" appearance="match"].

屏幕截图:

  • Live chat waiting for the other participant, with Invite someone and conversation actions.
  • Invitation panel with a copyable WordPress invitation link and optional email.
  • Settings → PeerKit Chat connection status, API key storage, and who-can-join controls.

常见问题:

Where do messages go?

They move on the PeerKit data channel between the two joined browsers. PeerKit does not store the conversation.

Can more than two people join?

No. A data session has one publisher seat and one viewer seat. A third visitor is asked to wait until the session ends.

Does the public page need React?

No. React is only inside the WordPress block editor, which already uses it.

Which external services does this plugin use?

This plugin is an interface to the PeerKit hosted service. After an administrator saves a PeerKit project API key and tests the connection, WordPress calls the PeerKit API (https://api.peerkit.dev by default) to register this site origin, create or resume data sessions, issue short-lived invitations, and end idle sessions. Those requests send the server-side API key and session metadata. They do not send WordPress passwords. The public chat page loads a bundled copy of the PeerKit Chat Core script (@peerkit-dev/chat-core 0.1.2, shipped as assets/vendor/chat-core/element.global.js with its license notices). Joined browsers then connect to PeerKit signaling (media.peerkit.dev) with a short-lived participant token. Message contents travel peer-to-peer on the PeerKit data channel; PeerKit does not store the conversation transcript. Optional invitation email uses WordPress wp_mail() when the host chooses to send one. The invitation link points back to this WordPress site. PeerKit product information: https://peerkit.dev/ PeerKit docs: https://peerkit.dev/docs PeerKit pricing (free plan available; paid plans optional): https://peerkit.dev/pricing PeerKit contact: https://peerkit.dev/contact PeerKit Terms of Service: https://peerkit.dev/terms PeerKit Privacy Policy: https://peerkit.dev/privacy

Does chat work without a PeerKit account?

No. An administrator needs a PeerKit project API key (pk_live_…) from the PeerKit dashboard. The WordPress plugin itself is free. PeerKit offers a free plan and optional paid plans for organization minutes and limits.

What is the difference between an open room and a private conversation?

An open room lets the first two visitors talk without an invitation. A private conversation admits only the person who starts it and the person who opens their invitation link. The host can copy that link or email it. Leaving keeps the conversation open. Ending it, which only the host can do, asks for confirmation, then closes the PeerKit session and invalidates the link. Existing blocks stay open rooms. New blocks start as private conversations. New blocks match the active theme. Existing color choices are kept until the block's Appearance setting is changed. Buttons stay compact.

How does PeerKit Chat relate to the rest of PeerKit?

This plugin embeds PeerKit Chat on WordPress. PeerKit also ships JavaScript, Web Component, and React packages for Chat, Share, Voice, Call, and Record, plus an SDK for creating sessions from your own backend. Those packages are separate from this plugin. See https://peerkit.dev/ and https://peerkit.dev/docs

更新日志:

0.1.6 0.1.5 0.1.4 0.1.3 0.1.2 0.1.1 0.1.0