https://github.com/orchetect/swift-osc-core
Cross-platform OSC encoding, decoding, and dispatch library written in Swift.
https://github.com/orchetect/swift-osc-core
android ios linux macos open-sound-control opensoundcontrol osc swift swift6 visionos
Last synced: 19 days ago
JSON representation
Cross-platform OSC encoding, decoding, and dispatch library written in Swift.
- Host: GitHub
- URL: https://github.com/orchetect/swift-osc-core
- Owner: orchetect
- License: mit
- Created: 2026-04-29T23:58:13.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-05-20T23:37:59.000Z (22 days ago)
- Last Synced: 2026-05-21T02:31:15.707Z (22 days ago)
- Topics: android, ios, linux, macos, open-sound-control, opensoundcontrol, osc, swift, swift6, visionos
- Language: Swift
- Homepage:
- Size: 490 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README

# SwiftOSC Core
[](https://swiftpackageindex.com/orchetect/swift-osc-core) [](https://swiftpackageindex.com/orchetect/swift-osc-core) [](https://github.com/orchetect/swift-osc-core/blob/main/LICENSE)
Cross-platform Open Sound Control ([OSC](https://opensoundcontrol.stanford.edu)) encoding, decoding, and dispatch library written in Swift.
Provides core functionality for [SwiftOSC](https://github.com/orchetect/swift-osc).
- OSC address pattern matching and dispatch
- Convenient OSC message value type masking, validation and strong-typing
- Support for custom OSC types
- Modular: use one of the [provided TCP/UDP network I/O layers](https://github.com/orchetect/swift-osc), or implement your own
- Supports Swift 6 strict concurrency
- Fully unit tested
- Full DocC documentation
## Compatibility
| macOS | iOS | tvOS | visionOS | watchOS | Linux | Android | WASM | Windows |
| :---: | :--: | :--: | :------: | :-----: | :---: | :-----: | :---: | :------: |
| 🟢 | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 | 🚧[^1] | Untested |
[^1]: Support for indicated platforms is either planned or WIP.
## Getting Started
This extension is available as a Swift Package Manager (SPM) package.
To use this extension as standalone dependency (instead of importing the **swift-osc** umbrella repository):
1. Add the **swift-osc-core** repo as a dependency.
```swift
.package(url: "https://github.com/orchetect/swift-osc-core", from: "1.4.0")
```
2. Add **SwiftOSCCore** to your target.
```swift
.product(name: "SwiftOSCCore", package: "swift-osc-core")
```
3. Import **SwiftOSCCore** to use it.
```swift
import SwiftOSCCore
```
## Documentation
See the [online documentation](https://swiftpackageindex.com/orchetect/swift-osc-core/documentation) for this repository. See one of the I/O extension repositories for example code.
For support, feature requests, and bug reports see the main [SwiftOSC](https://github.com/orchetect/swift-osc) repository.
## Dependencies
- [SwiftASCII](https://github.com/orchetect/SwiftASCII) is used for ASCII string and character formatting and validation.
- [SwiftDataParsing](https://github.com/orchetect/swift-data-parsing) is used for message decoding.
## Author
Coded by a bunch of 🐹 hamsters in a trenchcoat that calls itself [@orchetect](https://github.com/orchetect).
## License
Licensed under the MIT license. See [LICENSE](LICENSE) for details.