iOS Web Bluetooth
БесплатноНе проверенEnable Web Bluetooth on iPhone Safari for AI coding agents via the WebBLE extension.
Описание
Enable Web Bluetooth on iPhone Safari for AI coding agents via the WebBLE extension.
README
Web Bluetooth SDK for iOS Safari. Scan, connect, and talk to BLE devices from any web app.
Packages
| Package | Purpose | Size |
|---|---|---|
| @beacio/core | BLE scanning, connecting, GATT read/write/subscribe | ~4KB gzip |
| @beacio/detect | iOS extension detection + install banner | ~2KB gzip |
| @beacio/core/profiles | Typed BLE profiles (heart rate, battery, etc.) | Optional |
| @beacio/react | React hooks (useDevice, useCharacteristic) |
Optional |
| @beacio/mcp | MCP server for AI coding agents + the beacio scaffolding CLI (npx beacio init) |
Optional |
Quick Start
npm install @beacio/core @beacio/detect
import { initBeacio, isIOSSafari } from '@beacio/detect';
import { beacio, BeacioError } from '@beacio/core';
// 1. On iOS Safari, detect the extension and prompt install if missing
if (isIOSSafari()) {
await initBeacio({
operatorName: 'MyApp',
banner: { mode: 'sheet' },
onReady: () => console.log('Extension ready'),
});
}
// 2. Scan and connect (works on iOS Safari + Chrome + Edge)
const ble = new beacio();
const device = await ble.requestDevice({
filters: [{ services: ['heart_rate'] }],
});
await device.connect();
// 3. Read a value
const value = await device.read('heart_rate', 'heart_rate_measurement');
console.log('Heart rate:', value.getUint8(1));
// 4. Subscribe to notifications
const unsub = device.subscribe('heart_rate', 'heart_rate_measurement', (v) => {
console.log('Heart rate:', v.getUint8(1));
});
// 5. Clean up
unsub();
await device.disconnect();
For plain HTML (no bundler):
<script src="https://beacio.com/beacio.js"></script>
Error Handling
All errors are BeacioError instances with a typed code and a human-readable suggestion:
try {
const device = await ble.requestDevice({
filters: [{ services: ['heart_rate'] }],
});
await device.connect();
} catch (err) {
if (err instanceof BeacioError) {
console.log(err.code); // e.g. 'DEVICE_NOT_FOUND'
console.log(err.suggestion); // 'No matching devices in range'
}
}
AI Agent Integration
MCP server for coding agents (Claude Code, Cursor, Copilot):
npx -y @beacio/mcp
Full SDK reference for LLM context: https://beacio.com/llms-full.txt
Documentation
Each package has its own README with full API reference:
- SDK wiki -- curated getting-started guides, troubleshooting, and background sync usage
- @beacio/core README -- scanning, connecting, GATT operations, error codes
- @beacio/core/detect README -- extension detection, install banners, React provider
- @beacio/react README -- React hooks, provider setup, and UI components
Wiki
License
Proprietary. See individual package licenses.
Установить iOS Web Bluetooth в Claude Desktop, Claude Code, Cursor
unyly install ios-web-bluetoothСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add ios-web-bluetooth -- npx -y @ios-web-bluetooth/mcpПошаговые гайды: как установить iOS Web Bluetooth
FAQ
iOS Web Bluetooth MCP бесплатный?
Да, iOS Web Bluetooth MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для iOS Web Bluetooth?
Нет, iOS Web Bluetooth работает без API-ключей и переменных окружения.
iOS Web Bluetooth — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить iOS Web Bluetooth в Claude Desktop, Claude Code или Cursor?
Открой iOS Web Bluetooth на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare iOS Web Bluetooth with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
