BluetoothWeb

July 20, 2026 ยท View on GitHub

Swift library for Bluetooth Web API (WebAssembly)

Try demo (only Chrome and Opera are supported).

demo

Requirements

  • Swift 6.3 or later with a matching Swift SDK for WebAssembly
  • Node.js 22 or later
  • wasm-opt (optional, for optimized release builds)

Building

The BluetoothExplorer demo app is built with ElementaryUI and bundled with Vite.

npm install

# Start development server with hot reload
npm run dev

# Build in release and bundle for deployment
npm run build

# Preview the built web app locally
npm run preview