Skip to content

bitchat: 基于蓝牙网状网络的安全去中心化聊天应用

Published:

原文链接


ChatGPT Image Jul 5, 2025 at 06_07_31 PM

bitchat

A secure, decentralized, peer-to-peer messaging app that works over Bluetooth mesh networks. No internet required, no servers, no phone numbers - just pure encrypted communication.

License

This project is released into the public domain. See the LICENSE file for details.

Features

Setup

  1. Install XcodeGen if you haven’t already:

    brew install xcodegen
    
  2. Generate the Xcode project:

    cd bitchat
    xcodegen generate
    
  3. Open the generated project:

    open bitchat.xcodeproj
    

Option 2: Using Swift Package Manager

  1. Open the project in Xcode:

    cd bitchat
    open Package.swift
    
  2. Select your target device and run

Option 3: Manual Xcode Project

  1. Open Xcode and create a new iOS/macOS App
  2. Copy all Swift files from the bitchat directory into your project
  3. Update Info.plist with Bluetooth permissions
  4. Set deployment target to iOS 16.0 / macOS 13.0

Usage

Basic Commands

Getting Started

  1. Launch bitchat on your device
  2. Set your nickname (or use the auto-generated one)
  3. You’ll automatically connect to nearby peers
  4. Join a channel with /j #general or start chatting in public
  5. Messages relay through the mesh network to reach distant peers

Channel Features

Security & Privacy

Encryption

Privacy Features

Performance & Efficiency

Message Compression

Battery Optimization

Network Efficiency

Technical Architecture

Binary Protocol

bitchat uses an efficient binary protocol optimized for Bluetooth LE:

Mesh Networking

For detailed protocol documentation, see the Technical Whitepaper.

Building for Production

  1. Set your development team in project settings
  2. Configure code signing
  3. Archive and distribute through App Store or TestFlight

Android Compatibility

The protocol is designed to be platform-agnostic. An Android client can be built using:


Previous Post
OpenCut:开源的CapCut替代品,隐私、安全、易用
Next Post
Crawlee:一个用于 Node.js 的网络爬虫和浏览器自动化库,支持 AI 和 LLM 数据提取