一个iframe即可在任何页面嵌入加密聊天。无需后端、无需账号、完整E2E加密。
将此代码复制粘贴到您的HTML中:
<iframe
src="https://blip-blip.vercel.app/embed"
width="400"
height="600"
style="border: none;"
allow="clipboard-write"
></iframe>html根据布局调整iframe尺寸:
<iframe
src="https://blip-blip.vercel.app/embed"
width="100%"
height="500"
style="border: none; border-radius: 12px;"
allow="clipboard-write"
></iframe>htmlBLIP默认使用深色主题 — 与深色网站完美融合。
通过postMessage监听嵌入事件:
window.addEventListener('message', (e) => {
if (e.origin !== 'https://blip-blip.vercel.app') return;
switch (e.data.type) {
case 'blip:ready':
// Widget loaded
break;
case 'blip:room-created':
console.log('Room:', e.data.roomId);
console.log('Share:', e.data.shareUrl);
break;
case 'blip:room-joined':
console.log('Joined:', e.data.roomId);
break;
case 'blip:room-destroyed':
console.log('Destroyed:', e.data.roomId);
break;
}
});js与主站相同的Curve25519 ECDH + XSalsa20-Poly1305加密。
嵌入模式完全无广告,提供清爽的用户体验。
用户无需注册或登录。点击即可聊天。
所有参与者离开后房间自动销毁。不留痕迹。
这是BLIP实时嵌入。创建房间并分享链接!