最近推送 2026-11-11 11:33(22 天前),属于活跃维护
permissionlesstech/bitchat
GITHUB中文整理主语言 Swift · 37,203 星 · Unlicense · 创建于 2025-07-04
一个去中心化的点对点聊天工具,用蓝牙网状网络实现离线通信,并以 Nostr 协议作为联网回退通道,无账号、无手机号、无中心服务器。
仓库健康度
5 个维度Fork 5,894 个;开放 Issue 数本轮没采到
24 小时 积累中 · 7 日 +0 · 30 日 积累中
许可证 Unlicense · 8 个 topics
这一项暂无数据,不代表项目没有发布
「证据不足」表示这项数据暂时没有取到,不能读成「项目有问题」;「部分数据」表示只拿到一部分信号。版本发布要额外调 Releases 接口,下一版补。
Star 趋势
10 天记录横轴 2026-11-24 → 2026-12-03,纵轴按这段时间的最小/最大值拉伸。趋势来自站内每天记录一次的星数,页面打开时不会实时请求 GitHub。
它解决什么问题
据 README 归纳在没有互联网或中心服务器不可用时,常规聊天软件无法工作,用户也难以在不暴露身份信息的前提下与附近或全球的人通信。这个项目让设备之间通过蓝牙多跳中继在离线场景下传递消息,并在有网络时自动切换到 Nostr 中继,避免依赖任何中心化服务。
核心能力
7 条- 1同时使用蓝牙网状网络与 Nostr 协议两条通道,自动择优选择传输方式
- 2通过蓝牙低功耗自动发现邻居并多跳中继消息,离线也能通信
- 3用地理哈希坐标在 Nostr 全局中继上建立基于位置的聊天频道
- 4不要求账号、手机号或中心服务器,减少身份信息暴露
- 5为蓝牙通道提供端到端加密,并为联网私信设计独立加密封装
- 6提供类似 IRC 的斜杠命令,如 /slap、/msg、/who 等操作方式
- 7三连击可立即清除设备上全部数据
项目画像
6 个角度项目定位
一个去中心化的点对点聊天工具,用蓝牙网状网络实现离线通信,并以 Nostr 协议作为联网回退通道,无账号、无手机号、无中心服务器。
适合谁
适合在断网、灾害或网络受限环境中需要局域通信的人,也适合希望不依赖中心服务器、注重隐私与去中心化的聊天用户,以及想研究蓝牙网状网络与 Nostr 传输结合的开发者。
典型场景
在灾害或断网现场,附近的人通过蓝牙网状网络互相发送消息和位置频道内容;在有互联网时,用同一应用通过 Nostr 中继与全球用户聊天,并按地理坐标加入区域频道;需要临时私密沟通时,利用端到端加密发送私信,并在紧急情况下三连击清除本地数据。
部署难度
资料提到可从应用商店安装,或从经过验证的源码自行构建,并建议用每版哈希清单核对构建产物;未说明具体依赖与构建步骤,需要按仓库说明自行摸索。
风险限制
蓝牙通信受距离限制,多跳最多 7 跳;Nostr 侧的私密封装与 NIP-17、NIP-44、NIP-59 不兼容,只能与同类客户端互通;网状网络会使用由身份密钥派生的持久设备标识。资料未说明具体安装与运行环境要求,需要按仓库说明自行确认。
最近维护
最近一次推送是 2026-11-11 11:33。 实现方式:应用同时运行蓝牙低功耗网状网络和 Nostr 中继两个传输层,发现附近设备后可直接或多跳传递消息;当需要联网时,将消息通过全球 Nostr 中继转发,并依据地理哈希划分位置频道。私密消息在蓝牙侧使用 Noise 协议加密,在 Nostr 侧使用应用自定义的私密封装格式。
README 原文细节
3 个板块核心功能README 里列出来的能力清单
Features
- Dual Transport Architecture: Bluetooth mesh for offline + Nostr protocol for internet-based messaging
- Location-Based Channels: Geographic chat rooms using geohash coordinates over global Nostr relays
- Intelligent Message Routing: Automatically chooses best transport (Bluetooth → Nostr fallback)
- Decentralized Mesh Network: Automatic peer discovery and multi-hop message relay over Bluetooth LE
- Privacy First: No accounts, no phone numbers, no servers. Note that the mesh does use a persistent per-device identifier derived from your identity key — see the whitepaper on identity and metadata fo
- Private Message End-to-End Encryption: Noise Protocol for mesh, BitChat private envelopes for Nostr fallback
- IRC-Style Commands: Familiar /slap, /msg, /who style interface
- Universal App: Native support for iOS and macOS
- Emergency Wipe: Triple-tap to instantly clear all data
- Performance Optimizations: LZ4 message compression, adaptive battery modes, and optimized networking
实现原理它内部是怎么做的
Technical Architecture
BitChat uses a hybrid messaging architecture with two complementary transport layers:
其它说明README 里剩下的内容
Bluetooth Mesh Network (Offline)
- Local Communication: Direct peer-to-peer within Bluetooth range
- Multi-hop Relay: Messages route through nearby devices (max 7 hops)
- No Internet Required: Works completely offline in disaster scenarios
- Noise Protocol Encryption: End-to-end encryption, with forward secrecy for live sessions (store-and-forward mail is sealed without it — see the whitepaper)
- Binary Protocol: Compact packet format optimized for Bluetooth LE constraints
- Automatic Discovery: Peer discovery and connection management
- Adaptive Power: Battery-optimized duty cycling
Nostr Protocol (Internet)
BitChat's private-envelope format is proprietary and is not NIP-17, NIP-44, or NIP-59 compatible. It uses Nostr as a relay transport but only interoperates with BitChat clients: private payloads travel inside kind-1059 events whose v2:-prefixed content is a BitChat-specific XChaCha20-Poly1305 construction, not NIP-44 encryption.
- Global Reach: Connect with users worldwide via internet relays
- Location Channels: Geographic chat rooms using geohash coordinates
- 440+ Relay Network: Distributed across the globe for reliability
- BitChat Private Envelopes: App-specific encrypted private messages over Nostr relays
- Ephemeral Keys: Fresh cryptographic identity per geohash area
Channel Types
Location Channels (block #dr5rsj7, neighborhood #dr5rs, country #dr)
- Transport: Bluetooth Low Energy mesh network
- Scope: Local devices within multi-hop range
- Internet: Not required
- Use Case: Offline communication, protests, disasters, remote areas
- Transport: Nostr protocol over internet
- Scope: Geographic areas defined by geohash precision
- block (7 chars): City block level
- neighborhood (6 chars): District/neighborhood
- city (5 chars): City level
- province (4 chars): State/province
- region (2 chars): Country/large region
- Internet: Required (connects to Nostr relays)
- Use Case: Location-based community chat, local events, regional discussions
关于 bitchat 的常见问题
6 个问题bitchat 是做什么的?
一个去中心化的点对点聊天工具,用蓝牙网状网络实现离线通信,并以 Nostr 协议作为联网回退通道,无账号、无手机号、无中心服务器。 在没有互联网或中心服务器不可用时,常规聊天软件无法工作,用户也难以在不暴露身份信息的前提下与附近或全球的人通信。这个项目让设备之间通过蓝牙多跳中继在离线场景下传递消息,并在有网络时自动切换到 Nostr 中继,避免依赖任何中心化服务。
bitchat 有哪些功能?
核心能力:同时使用蓝牙网状网络与 Nostr 协议两条通道,自动择优选择传输方式;通过蓝牙低功耗自动发现邻居并多跳中继消息,离线也能通信;用地理哈希坐标在 Nostr 全局中继上建立基于位置的聊天频道;不要求账号、手机号或中心服务器,减少身份信息暴露;为蓝牙通道提供端到端加密,并为联网私信设计独立加密封装;提供类似 IRC 的斜杠命令,如 /slap、/msg、/who 等操作方式;三连击可立即清除设备上全部数据。
bitchat 适合谁用?
适合在断网、灾害或网络受限环境中需要局域通信的人,也适合希望不依赖中心服务器、注重隐私与去中心化的聊天用户,以及想研究蓝牙网状网络与 Nostr 传输结合的开发者。
bitchat 是怎么工作的?
应用同时运行蓝牙低功耗网状网络和 Nostr 中继两个传输层,发现附近设备后可直接或多跳传递消息;当需要联网时,将消息通过全球 Nostr 中继转发,并依据地理哈希划分位置频道。私密消息在蓝牙侧使用 Noise 协议加密,在 Nostr 侧使用应用自定义的私密封装格式。
用 bitchat 有什么门槛或限制?
蓝牙通信受距离限制,多跳最多 7 跳;Nostr 侧的私密封装与 NIP-17、NIP-44、NIP-59 不兼容,只能与同类客户端互通;网状网络会使用由身份密钥派生的持久设备标识。资料未说明具体安装与运行环境要求,需要按仓库说明自行确认。
bitchat 现在还在维护吗?数据怎么样?
目前 37,203 星,5,894 个 Fork,主语言 Swift,创建于 2025-07-04,最近一次推送 2026-11-11 11:33,许可证 Unlicense。星数、Fork、推送时间都是 GitHub 返回的实时数据,「最近推送」离现在越近说明越活跃;长期不动要留意是否已停止维护。
这些内容来自哪
读法说明项目数据取自 GitHub 官方接口与项目 README;星数、Fork、语言与时间以 GitHub 页面为准,档案更新于 2026-11-25 05:33。