RepositoryTypeScript
skyllo

skyllo/peer-lite

Lightweight WebRTC browser library that supports video, audio and data channels

168sao
5fork
0issue
1lượt xem

🔥 peer-lite: WebRTC siêu nhẹ cho kết nối trực tiếp trên trình duyệt

Chỉ 3kb gzipped, không phụ thuộc bên ngoài, hỗ trợ video, audio và kênh dữ liệu với mô hình đàm phán hoàn hảo.

peer-lite là một thư viện WebRTC nhẹ dành cho trình duyệt, cho phép thiết lập kết nối peer-to-peer trực tiếp giữa các trình duyệt mà không cần máy chủ trung gian. Dự án sử dụng các API WebRTC hiện đại, hỗ trợ đàm phán lại kết nối và tối ưu hoá việc gửi ICE candidate.

✨ Điểm nổi bật

  • Nhẹ chỉ 3kb (gzipped): Tối ưu kích thước bundle, phù hợp nhúng ứng dụng cần tốc độ tải nhanh.
  • Không phụ thuộc: Toàn bộ logic được cài đặt trong thư viện, không cần thêm gói bên ngoài.
  • TypeScript đã đính kèm: Cung cấp định nghĩa kiểu TypeScript để phát triển an toàn.
  • Đàm phán hoàn hảo (Perfect Negotiation): Tự động xử lý vai trò offer/answer mà không cần thiết lập thủ công.
  • Hỗ trợ đàm phán lại: Cho phép thay đổi cấu hình kết nối sau lần kết nối đầu tiên.
  • Gộp ICE candidate: Giảm số lượng tin nhắn truyền tải bằng cách gửi hàng loạt candidate cùng lúc.
  • Hỗ trợ kênh dữ liệu: Cho phép truyền dữ liệu giữa các peer thông qua RTCDataChannel.

💡 Vì sao đáng chú ý

Khác với các thư viện WebRTC truyền thống thường nặặm và phứ tạp, peer-lite tập trung vào sự đơn giản và hiệu suất. Với kích thước siêu nhỏ và không có phụ thuộc, nó dễ dàng tích hợp vào bất kỳ dự án nào mà không làm tăng trọng lượng ứng dụng. Đặc biệt phù hợp cho các ứng dụng thời gian thực như video gọi, truyền dữ liệu trực tiếp hoặc mạng xã hội nội bộ.


#WebRTC #PeerToPeer #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
muaz-khan/WebRTC-Experiment

WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!

12.0k
Jun 15, 2022
RepositoryGo
syncthing/syncthing

Open Source Continuous File Synchronization

91.1k
Dec 1, 2026
RepositoryJavaScript
webtorrent/webtorrent

⚡️ Streaming torrent client for the web

31.5k
Nov 29, 2026
RepositoryJavaScript
yjs/yjs

Shared data types for building collaborative software

23.1k
Nov 23, 2026
RepositoryTypeScript
dont-be-evil-company/p2p.kiwi

p2p.kiwi 🥝, Cross-Platform screen 🖥️ sharing 📡 made simple ⚡.

6.6k
Nov 12, 2026
RepositoryTypeScript
TNTcraftHIM/Piik

Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。

5.0k
Dec 2, 2026
RepositoryTypeScript
dmotz/trystero

✨🤝✨ Instant peer-to-peer multiplayer for the web — no server required.

2.9k
Nov 13, 2026
RepositoryTypeScript
VLprojects/webrtc-issue-detector

Diagnostic tool and troubleshooter for WebRTC applications with Mean Opinion Score (MOS) calculator

118
Nov 16, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026