Packages

@paramira/identity-scope

Several identities on one device or origin: a registry of them (public data only), the current one, and storage names (IndexedDB, localStorage, files) scoped per identity, with the first identity keeping today's unscoped names.

License: MIT. Generic: several identities per device or origin, storage names scoped per identity.

Source: packages/identity-scope

What it does

Several identities on one device or origin (docs/plans/identity-personas.md). It keeps a small registry of the identities here (public data only: DID, label, colour) and which one is current, and scopes storage names by it: the first identity keeps the names it always had, and each other gets its own (iwacu-tree@<scope>, <key>@<scope>, iwacu@<scope>.db).

An identity's own key lives in its own scoped storage, never in the registry. Switching identity sets the current scope and the apps reload, so nothing in memory crosses over. It also covers personas (one identity per community) and their backups.

MIT.

Used by

Apps: abantu, companion, isoko-web, iwacu-nuxt

Packages: web-session

In tests or development only: family.

Uses