internal/

directory
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: MIT

Directories

Path Synopsis
Package accountvalues defines the tech-space carrier for account-scoped values and the pure diff that mirrors carrier state into target-space records.
Package accountvalues defines the tech-space carrier for account-scoped values and the pure diff that mirrors carrier state into target-space records.
Package anyencx holds small anyenc helpers shared across the SDK.
Package anyencx holds small anyenc helpers shared across the SDK.
Package anysyncx is the sole importer of github.com/anyproto/any-sync.
Package anysyncx is the sole importer of github.com/anyproto/any-sync.
Package crdt implements the version-gated record store CRDT defined in docs/crdt.md and docs/crdt-spec.md.
Package crdt implements the version-gated record store CRDT defined in docs/crdt.md and docs/crdt-spec.md.
Package fanout provides the shared add / cancel / dispatch primitive behind the SDK's synchronous callback firehoses (sync status, change feed, row events, read-state pings, member events, file status).
Package fanout provides the shared add / cancel / dispatch primitive behind the SDK's synchronous callback firehoses (sync status, change feed, row events, read-state pings, member events, file status).
files
broker
Package broker is the fileprotov2 client of the files subsystem (SYN-27): batch RPCs against the space's responsible fileV2 nodes (routing by nodeconf.FileV2Peers with NotResponsible failover), the presigned HTTP upload, and durable-custody receipt verification against the fleet.
Package broker is the fileprotov2 client of the files subsystem (SYN-27): batch RPCs against the space's responsible fileV2 nodes (routing by nodeconf.FileV2Peers with NotResponsible failover), the presigned HTTP upload, and durable-custody receipt verification against the fleet.
carfile
Package carfile reads and writes the files byte-layer pack format: one standard CARv2 (pragma + v2 header + CARv1 data payload + embedded multihash-sorted index) per file, keyed by its UnixFS root cid.
Package carfile reads and writes the files byte-layer pack format: one standard CARv2 (pragma + v2 header + CARv1 data payload + embedded multihash-sorted index) per file, keyed by its UnixFS root cid.
crypt
Package crypt implements the files byte-layer cipher: whole-file AES-256-CFB with a zero IV and a random per-file key — the exact format anytype-heart writes (cfb.New(key, [aes.BlockSize]byte{})), so ciphertext and the derived UnixFS cids stay byte-compatible.
Package crypt implements the files byte-layer cipher: whole-file AES-256-CFB with a zero IV and a random per-file key — the exact format anytype-heart writes (cfb.New(key, [aes.BlockSize]byte{})), so ciphertext and the derived UnixFS cids stay byte-compatible.
fetch
Package fetch is the client download path of the files subsystem (SYN-28): resolve a rootCid through the block-source ladder — local store → peer (SYN-24 seam) → public CARv2 GET with HTTP Range — and expose verified plaintext as a seekable reader.
Package fetch is the client download path of the files subsystem (SYN-28): resolve a rootCid through the block-source ladder — local store → peer (SYN-24 seam) → public CARv2 GET with HTTP Range — and expose verified plaintext as a seekable reader.
filep2p
Package filep2p is the SDK's peer-to-peer file transfer: a read-only server that streams a device's stored CAR objects to LAN peers, and a PeerSource that fetches file objects from LAN peers before the public HTTP path.
Package filep2p is the SDK's peer-to-peer file transfer: a read-only server that streams a device's stored CAR objects to LAN peers, and a PeerSource that fetches file objects from LAN peers before the public HTTP path.
gc
Package gc is the local-cache reclamation of the files subsystem (SYN-26).
Package gc is the local-cache reclamation of the files subsystem (SYN-26).
status
Package status is the files background-work engine (SYN-29): one persistent queue with two job kinds — drive-toward-durable (every registered row whose backup hasn't succeeded yet) and pin (full background fetches).
Package status is the files background-work engine (SYN-29): one persistent queue with two job kinds — drive-toward-durable (every registered row whose backup hasn't succeeded yet) and pin (full background fetches).
store
Package store is the local content-addressed payload store of the files subsystem (SYN-25): one CARv2 per file keyed by its root cid (byte-identical to the uploaded S3 object), plus an any-store metadata collection holding the small hot state — download bitmap, state, per-file refs, the per-space content-dedup index and LRU access times.
Package store is the local content-addressed payload store of the files subsystem (SYN-25): one CARv2 per file keyed by its root cid (byte-identical to the uploaded S3 object), plus an any-store metadata collection holding the small hot state — download bitmap, state, per-file refs, the per-space content-dedup index and LRU access times.
upload
Package upload is the client upload path of the files subsystem (SYN-27): spool → tier decision (inline / BIND dedup / full) → encrypt → UnixFS DAG → local CARv2 → register the payloads row → enqueue the durable phase.
Package upload is the client upload path of the files subsystem (SYN-27): spool → tier decision (inline / BIND dedup / full) → encrypt → UnixFS DAG → local CARv2 → register the payloads row → enqueue the durable phase.
Package history implements version history over any-sync object trees: structural diffs between reconstructed states (this file), on-demand causal replay, and the persistent history index.
Package history implements version history over any-sync object trees: structural diffs between reconstructed states (this file), on-demand causal replay, and the persistent history index.
Package inbox is the coordinator-inbox notifier: the optional Layer-2 discovery for 1-1 spaces (docs/one-to-one-spaces.md).
Package inbox is the coordinator-inbox notifier: the optional Layer-2 discovery for 1-1 spaces (docs/one-to-one-spaces.md).
Package object binds one any-sync object tree to one crdt.Controller and exposes the lifecycle surface used by space/: Create / Derive / Modify / Delete / Subscribe, plus ocache wiring so trees are loaded on demand and TTL-closed when idle.
Package object binds one any-sync object tree to one crdt.Controller and exposes the lifecycle surface used by space/: Create / Derive / Modify / Delete / Subscribe, plus ocache wiring so trees are loaded on demand and TTL-closed when idle.
p2p
account
Package account is the account-level device-discovery record: every device of an account registers itself in one pkarr record addressed by a key derived from the identity key, and every device — a fresh restore included — resolves its siblings from it.
Package account is the account-level device-discovery record: every device of an account registers itself in one pkarr record addressed by a key derived from the identity key, and every device — a fresh restore included — resolves its siblings from it.
Package payloads is the built-in file `payloads` dataset — the node-readable per-file index of the files subsystem (docs/files.md).
Package payloads is the built-in file `payloads` dataset — the node-readable per-file index of the files subsystem (docs/files.md).
Package properties owns the per-space `properties` system dataset: the CRDT handlers that keep it consistent with the object-owned base-scope data, the variant merge (device > account > base) used by projection, and the reserved variant field names (_device, _account, _base).
Package properties owns the per-space `properties` system dataset: the CRDT handlers that keep it consistent with the object-owned base-scope data, the variant merge (device > account > base) used by projection, and the reserved variant field names (_device, _account, _base).
Package pushclient is the client of the anytype-push-server (SYN-47): per-space key derivation, the signed/encrypted request builders, the thin DRPC transport, and the account-level service behind SDK.Push() / space.PushAPI.
Package pushclient is the client of the anytype-push-server (SYN-47): per-space key derivation, the signed/encrypted request builders, the thin DRPC transport, and the account-level service behind SDK.Push() / space.PushAPI.
Package readstate owns the per-space read/unread engine: the unread entries, the per-object seen-heads frontier, per-tag counters, and the transitions log backing the read-state feed.
Package readstate owns the per-space read/unread engine: the unread entries, the per-object seen-heads frontier, per-tag counters, and the transitions log backing the read-state feed.
Package readsync moves read state between an account's devices: it publishes each object's seen-heads frontier to the TECH space's key-value store and merges other devices' published frontiers into the local per-space readstate engines.
Package readsync moves read state between an account's devices: it publishes each object's seen-heads frontier to the TECH space's key-value store and merges other devices' published frontiers into the local per-space readstate engines.
Package schema implements the minimal JSON-Schema subset used by the types/properties layer.
Package schema implements the minimal JSON-Schema subset used by the types/properties layer.
Package spaceimpl is the concrete implementation of space.Service and space.Space.
Package spaceimpl is the concrete implementation of space.Service and space.Space.
Selective sync by tree type (SYN-18).
Selective sync by tree type (SYN-18).
Package spacesync runs the SDK's space-level catch-up against any-sync's head store at startup.
Package spacesync runs the SDK's space-level catch-up against any-sync's head store at startup.
Package store owns the query and subscription primitives over any-store.
Package store owns the query and subscription primitives over any-store.
Package subscribe owns the per-space live-query engine and the projected Event types the apply path hands to it.
Package subscribe owns the per-space live-query engine and the projected Event types the apply path hands to it.
Package syncstatus tracks per-space, per-object sync state from any-sync's StatusUpdater hooks and exposes it via the SyncStatusAPI surfaced on space.Space.
Package syncstatus tracks per-space, per-object sync state from any-sync's StatusUpdater hooks and exposes it via the SyncStatusAPI surfaced on space.Space.
Package techspace is the hidden account-level space: a derived space with owner-only ACL, used as the account's index of spaces, chat-read tracker, and (later) account preferences.
Package techspace is the hidden account-level space: a derived space with owner-only ACL, used as the account's index of spaces, chat-read tracker, and (later) account preferences.
Package types owns the types-and-properties machinery: the per-space Registry, the built-in `any` and `type` type objects, property definition schemas, schema compilation from property records, and the typePropertyHandler (implements crdt.Handler).
Package types owns the types-and-properties machinery: the per-space Registry, the built-in `any` and `type` type objects, property definition schemas, schema compilation from property records, and the typePropertyHandler (implements crdt.Handler).
any
Package anytype is the built-in `any` type — the universal shape every object in a space implements: name, description, icon (synced, CRDT-mutable), plus id, author, spaceId, createdAt, modifiedAt, modifiedBy (derived, read-only, stamped from any-sync context).
Package anytype is the built-in `any` type — the universal shape every object in a space implements: name, description, icon (synced, CRDT-mutable), plus id, author, spaceId, createdAt, modifiedAt, modifiedBy (derived, read-only, stamped from any-sync context).
collection
Package collectiontype is the built-in `collection` meta-type — the shape of collection objects.
Package collectiontype is the built-in `collection` meta-type — the shape of collection objects.
spaceindex
Package spaceindex is the built-in `spaceIndex` type — one derived object per space carrying the space's display metadata (name, description, icon, spaceType) as CRDT-mutable base-scope properties.
Package spaceindex is the built-in `spaceIndex` type — one derived object per space carrying the space's display metadata (name, description, icon, spaceType) as CRDT-mutable base-scope properties.
type
Package typetype is the built-in `type` meta-type — the shape of type objects themselves.
Package typetype is the built-in `type` meta-type — the shape of type objects themselves.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL