一個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即時嵌入。建立房間並分享連結!