Aller au contenu
GitHub

Server Architecture

Unaudited

Ce contenu n’est pas encore disponible dans votre langue.

Capsule exposes one REST/OpenAPI contract (API Surfaces). How every component of the repository depends on the others is mapped in Component Map.

Native client Kynos server ciphertext only capsule-coreplaintext, keys, media policy,sidecars, provenance Rawshiftmedia processing ChromahashLQIP input Spargen SDKciphertext REST Auth and structural validation Upload and syncstate machines Postgreskey-free index,sessions and counters Opaque blob store
Plaintext stays on the client; the server holds ciphertext and a key-free index

Timeline, search, tag, face and memory queries run against the client’s local SQLite catalog. The server stores opaque ciphertext plus the minimum key-free index needed for authorization, ordering, quota, lifecycle and retrieval.

  • Android: Jetpack Compose over capsule-core-kotlin.
  • iOS/iPadOS/macOS: SwiftUI over capsule-core-swift.
  • Web: read-only, for authenticated viewing, share links and guest upload.
  • CLI: development and advanced users.

Native apps and the CLI share client logic through capsule-core and capsule-sdk, exposed to Swift and Kotlin via uniffi. The per-platform contract is Clients.

Kynos owns HTTP and the Tokio runtime, Spargen generates the client, Rawshift owns codecs and metadata extraction, and Chromahash is called directly. Blob storage, resumable upload, provenance, crypto, CRDTs, asset lifecycle and application-state ports stay in Capsule. Each pin carries its rationale as a comment beside it in the declaring manifest.

Every crate comes from crates.io except Rawshift, which is pinned to a commit of its git master (the root Cargo.toml, admitted by name in deny.toml [sources]) because its gamut codecs are unreleased. Bump that pin as Rawshift moves, and return to a crates.io release once Rawshift is stable.

No reusable infrastructure library is extracted until a stable product-neutral contract has at least two real consumers.