Developers
Build for Rext.
Create extensions instead of rebuilding entire applications. Rext handles the app — you bring the capability.
ExampleExtension.swift
import RextSDK
struct ExampleExtension: RextExtension {
let name = "Example"
let capabilities: [Capability] = [.search, .metadata]
func search(_ query: SearchQuery) async throws -> [Item] {
let response = try await http.get("https://api.example.com/search",
query: ["q": query.text])
return response.items.map(Item.init)
}
}Search
Respond to user queries with results from your source.
Metadata
Enrich items with details, artwork, and related content.
Playback
Resolve items into playable streams the native player understands.
Library
React when users save, tag, or download your items.