AudienceKit SDK
Source-available client SDKs for the AudienceKit API, for an audience’s own apps (like Hot Mess): sign people in, then read the audience’s venues, people, locales, events, lineups and chat. One repository and one version for every platform.
| Directory | What it is | Install |
|---|---|---|
swift/ |
AudienceCore, AudienceKit, AudienceKitUI (and AudienceKitTesting for apps’ unit tests) for iOS 16+, macOS 13+, tvOS 17+ and Linux; and StaffKit’s API modules for staff tools: StaffKitCore, StaffKitServices, ArbiterModels, ArbiterControl (StaffKit’s SwiftUI ships as binaries from staff-kit-binaries) |
Swift Package Manager: https://github.com/lwm-luminx/audience-kit-sdk.git |
core/ |
com.audiencekit:audiencekit-core, the Kotlin Multiplatform code shared by every platform (JVM, Android, Apple) |
Gradle |
android/ |
com.audiencekit:audiencekit (the Kotlin client, plain JVM) and audiencekit-android |
Gradle composite build of the repository (Maven publishing to come) |
ruby/ |
The audience-kit gem: Ruby bindings for the API (Ruby 3.2+), versioned on its own |
RubyGems: gem "audience-kit" |
node/ |
The audience-kit npm package: a Node.js and TypeScript client for the consumer GraphQL API (Node 20+), versioned on its own |
npm: npm install audience-kit |
php/ |
The audiencekit/audiencekit Composer package: the shared calls for PHP 8.1+ over any PSR-18 client, with typed models, service tokens and the public listings for websites, versioned on its own |
Composer, from a split of php/ (Packagist to come) |
python/ |
The audiencekit package: the shared calls for Python 3.10+, blocking and asyncio, versioned on its own |
PyPI: pip install audiencekit |
rust/ |
The audiencekit crate: an async client (tokio, reqwest) for reading an audience’s community, built for agents like goose’s goosed, versioned on its own |
Cargo, from this repository (not on crates.io) |
graphql/ |
The API’s consumer GraphQL schema the SDKs are checked against, and the staff schemas (staff_schema.graphql, staffql_schema.graphql) StaffKit’s modules are checked against |
Both builds sit at the root, because Swift Package Manager only reads a root manifest: Package.swift builds swift/,
and the Gradle build (settings.gradle.kts) builds core/ and android/.
Versioning
Section titled “Versioning”The Ruby gem keeps its own version in ruby/lib/audience-kit/version.rb, the
npm package in node/package.json, the PHP package in
php/src/AudienceKit.php, the Python package in
python/src/audiencekit/_version.py and the Rust crate in
rust/Cargo.toml; none is part of the release below. Each publishes itself once a change that
raises its version merges to main: RubyGems (ruby.yml), npm (node.yml), PyPI (python-release.yml) and
crates.io (rust.yml) through trusted publishing, and Packagist through a read-only mirror of php/
(php.yml). Their tags carry a prefix: ruby-, node-, python-, rust- and php/. Swift and Kotlin release together under one semantic version, kept in VERSION.
Gradle reads it; the Swift and Kotlin clients also carry it as a constant, because they send it to the API with every
call and the API refuses versions older than its minimum. So every change to either SDK takes a new version:
scripts/set-version.sh 0.101.0 # writes VERSION and both constantsscripts/check-version.sh # CI runs this on every pull requestAdd the version’s entry to CHANGELOG.md. Once it merges to main and CI passes, the release job in
.github/workflows/swift-kotlin.yml tags the release (0.101.0, no v) so Swift Package Manager can
resolve it, and opens its GitHub release from the changelog entry. The Xcode Cloud workflow runs the same script
(xcode-cloud/); whichever finishes second finds the tag there already.
Each SDK has its own GitHub Actions workflow in .github/workflows/, filtered to its own paths, so
a change to one language only runs (and only edits) that language’s CI: swift-kotlin.yml (Swift and Kotlin share
VERSION and the release job, so they stay together), ruby.yml, php.yml, node.yml, python.yml and rust.yml. A new SDK adds its own
<language>.yml with a paths: filter on its directory (plus graphql/** and scripts/graphql/** if it checks its
documents against the schema), keeps the repository’s 85% line-coverage floor, and tags releases with a prefix
(php/<version>, python-<version>, rust-<version>), never bare, since bare tags are the Swift package’s.
License
Section titled “License”Source-available, not open source. The SDK is published under the AudienceKit SDK License 1.2,
© Love Wins Media, Inc. You may read, use, change and redistribute it, and build it into your apps, only in
applications that connect to AudienceKit as hosted by Love Wins Media (audiencekit.com, the audiences’ own domains,
and the development instances it provides). Every other use is prohibited, including using the SDK, or anything
derived from it, with another implementation of the API, self-hosted or otherwise. Any other use needs Love Wins
Media, Inc.’s express permission in a written agreement signed by an officer, and an audience ID or token Love Wins
Media issues for that use, kept configured so the use can be checked for compliance. Because of that restriction the
license is not OSI-approved; package registries list it as LicenseRef-AudienceKit-SDK-1.2.
No other license of any kind is granted: no implied, patent (beyond the license’s own patent grant) or trademark rights. Misrepresenting the SDK or Love Wins Media’s work, by claiming authorship or origin, stripping notices, passing a changed version off as the original or implying endorsement, is expressly prohibited and a breach of the license. Changed versions may be made only in a GitHub fork of this repository, after written notice to Love Wins Media: open an issue titled “Derived work notice” here, naming yourself and the fork. Apps that only use the SDK unchanged need no fork or notice.
Copying is prohibited. Copying this work beyond what LICENSE allows is copyright infringement, and willful copying can be a federal crime (17 U.S.C. §§ 501, 506). Removing, altering or faking copyright or attribution notices is unlawful under 17 U.S.C. § 1202, and a federal crime under § 1204 when done willfully for commercial advantage or private financial gain. Publishing an app built from it without a license also breaks App Store Review Guideline 5.2.1 (Intellectual Property) and Google Play’s Intellectual Property policy. See NOTICE.md for the details.