- Swift 100%
swift-atproto-bluesky #
When someone searches for an actor, the typeahead client calls
app.bsky.actor.searchActorsTypeahead and returns DID-centered
ActorIdentity values. When an account view needs a richer name or avatar,
the profile cache reads and refreshes Bluesky actor profiles through XRPC and
SQLite.
The app enables BlueskyProfiles when it wants its account rows enriched by
this cache. A direct typeahead caller can use the existing dependency client:
import ATProto
import Bluesky
import Dependencies
@Dependency(\.actorTypeaheadSearch) var search
let identities = try await search.search(
ActorTypeaheadSearchQuery("alice", limit: 5)
)
This package owns those Bluesky API and cache details. The core AT Protocol
package supplies the generic identity and request types. The app enables
BlueskyProfiles to show cached profiles in account rows; its base account
flow can work without this product.
Development and release status #
Use Swift 6.4 (Xcode 27 on macOS) for the current dependency graph, even though this package's manifest declares Swift tools 6.3. Run from this package directory:
swift test --build-system native
This is a branch-publication candidate; no version tag has been published.
After the reviewed candidate is pushed, consume its remote main branch:
.package(url: "https://tangled.org/woody.fm/swift-atproto-bluesky", branch: "main")
The graph uses prerelease Point-Free branches. Consumers and CI need access to any private upstream dependencies selected by their graph, including TCA26 for the server package and Composable Atmosphere. Private upstream source is not included in this repository.
The planned 0.1.0 release follows TCA 2 and compatible versioned requirements
throughout the dependency graph. Existing version tags will not be moved.
See source provenance for the frozen integration revision.