{"id":13872310,"url":"https://github.com/PureSwift/BluetoothLinux","last_synced_at":"2025-07-16T02:30:36.148Z","repository":{"id":63188000,"uuid":"47491721","full_name":"PureSwift/BluetoothLinux","owner":"PureSwift","description":"Pure Swift Linux Bluetooth Stack","archived":false,"fork":false,"pushed_at":"2024-11-17T01:12:42.000Z","size":3665,"stargazers_count":184,"open_issues_count":1,"forks_count":30,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-11-18T02:02:16.793Z","etag":null,"topics":["bluetooth","bluetooth-low-energy","bluez","gatt","ibeacon","iot","linux","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PureSwift.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-06T10:10:21.000Z","updated_at":"2024-11-17T01:12:46.000Z","dependencies_parsed_at":"2024-01-07T21:03:12.520Z","dependency_job_id":"1652b1de-b425-42d7-a252-deb49dc84a52","html_url":"https://github.com/PureSwift/BluetoothLinux","commit_stats":{"total_commits":632,"total_committers":5,"mean_commits":126.4,"dds":"0.011075949367088556","last_synced_commit":"b086cec00bae14ff7e49508ae0328d37e1c7c5fc"},"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PureSwift%2FBluetoothLinux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PureSwift%2FBluetoothLinux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PureSwift%2FBluetoothLinux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PureSwift%2FBluetoothLinux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PureSwift","download_url":"https://codeload.github.com/PureSwift/BluetoothLinux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226095653,"owners_count":17572970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bluetooth","bluetooth-low-energy","bluez","gatt","ibeacon","iot","linux","swift"],"created_at":"2024-08-05T23:00:39.355Z","updated_at":"2024-11-23T20:30:51.971Z","avatar_url":"https://github.com/PureSwift.png","language":"Swift","readme":"![BluetoothLinux](https://github.com/PureSwift/BluetoothLinux/raw/master/Assets/PureSwiftBluetoothLinux.png)\n\n[![Swift][swift-badge]][swift-url]\n[![Platform][platform-badge]][platform-url]\n[![Release][release-badge]][release-url]\n[![License][mit-badge]][mit-url]\n\nPure Swift Bluetooth Stack for Linux\n\nDoes not require [BlueZ](https://www.bluez.org) userland library, communicates directly with the Linux kernel Bluetooth subsystem. \n\n## Usage\n\n```swift\nimport Bluetooth\nimport BluetoothLinux\n\nguard let hostController = await BluetoothLinux.HostController.default\n    else { fatalError(\"No Bluetooth adapters found\") }\nlet uuid = UUID(rawValue: \"E2C56DB5-DFFB-48D2-B060-D0F5A71096E0\")!\nlet beacon = AppleBeacon(uuid: uuid, major: 1, minor: 1, rssi: -29)\ndo { try await hostController.iBeacon(beacon) }\ncatch { print(\"Error enabling iBeacon: \\(error)\") }\n```\n\n## Installation\n\n### Swift Package Manager\n\n```swift\nimport PackageDescription\n\nlet package = Package(\n    dependencies: [\n        .package(\n\t\t\turl: \"https://github.com/PureSwift/BluetoothLinux.git\",\n    \t\t.branch(\"master\")\n    \t)\n    ]\n)\n```\n\n## Documentation\n\nRead the documentation [here](http://pureswift.github.io/BluetoothLinux/documentation/bluetoothlinux/).\nDocumentation can be generated with [DocC](https://github.com/apple/swift-docc).\n\n## See Also\n\n- [Bluetooth](https://github.com/PureSwift/Bluetooth) - Pure Swift Bluetooth Definitions.\n- [GATT](https://github.com/PureSwift/GATT) - Bluetooth Generic Attribute Profile (GATT) for Swift.\n- [Netlink](https://github.com/PureSwift/Netlink) - Swift library for communicating with Linux Kernel Netlink subsystem.\n\nLicense\n-------\n\n**BluetoothLinux** is released under the MIT license. See LICENSE for details.\n\n[swift-badge]: https://img.shields.io/badge/Swift-6.0-orange.svg?style=flat\n[swift-url]: https://swift.org\n[platform-badge]: https://img.shields.io/badge/platform-linux-lightgrey.svg\n[platform-url]: https://swift.org\n[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat\n[mit-url]: https://tldrlegal.com/license/mit-license\n[release-badge]: https://img.shields.io/github/release/PureSwift/BluetoothLinux.svg\n[release-url]: https://github.com/PureSwift/BluetoothLinux/releases\n","funding_links":[],"categories":["Swift","Hardware Com"],"sub_categories":["Bluetooth"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPureSwift%2FBluetoothLinux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPureSwift%2FBluetoothLinux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPureSwift%2FBluetoothLinux/lists"}