Skip to content

Apps, crumbs and data ​

The vocabulary is small. Four words cover most of it.

App ​

A packaged web app from a store. Think "a bill splitter", not "my electricity bills".

An app is a folder with a manifest and a server, packed as a bundle. Installing one:

  1. downloads the release from the store;
  2. checks its SHA-256 and every file in it against the bundle manifest;
  3. uploads the code to celld once;
  4. boots it on a throwaway probe site before anyone can use it.

Apps can ask for exactly one capability: internet access. Nothing is granted silently; an admin sees the request.

Crumb ​

One thing you made with an app: one board, one list, one draw. A hamster hoards crumbs; so does Hamstr.

Each crumb is its own site:

  • crumb-<12 chars>.<your crumb domain>
  • its own Durable Objects, so its own SQLite databases
  • its own cookie scope (a Domain cookie is dropped)
  • private to the person who made it: nobody else can list, open or download it

Because one crumb is one site, object names like Board/board cannot collide between crumbs. Apps should not put several documents in one crumb; make another crumb instead.

Some apps declare "instances": "single" — a family board or a settings page. Those have one crumb per person, and the app's icon opens it directly.

Home ​

The shell's start screen. Every installed app is an icon. Tapping an app shows your crumbs of it and a New tile.

A new crumb is called "Untitled …" until you rename it in the title bar. Its menu has backup, restore, export and delete.

People ​

Accounts are Hamstr's, not the apps':

  • the first person to sign in owns the install;
  • others come with an invite link or wait for an admin to approve them;
  • admins can create groups and decide who may open which site;
  • apps receive the visitor's id, name, permissions and role as headers — no login code.

See People and groups.

Store ​

A catalog of apps, separate from your install. It stores metadata and bundles; it never runs app code. Your Hamstr points at one active store — usually AppCrumb (Settings → Stores; HAMSTR_STORE seeds the first).

An admin's Get installs an app for everyone. A publisher's release is immutable once published; updating an app moves every crumb to the new version, and the data stays.

See Apps and the store.

Site ​

The underlying unit in celld. Crumbs are sites; so are any plain sites you deploy to the same node (a blog, a SvelteKit app). A site has a hostname as its id, immutable versions, and Durable Objects for data.

Sites with "auth": "required" in celld.json also sign people in through Hamstr. Crumbs are just sites that only Hamstr's proxy may reach.

Data and backups ​

DataWhere
App code and every crumb's datathe S3 bucket in /data/s3
Accounts, people, crumb metadataHamstr's database in /data/hamstr
celld's working copy/data/celld (rebuildable from the bucket)
Certificate and registration/data/tls, /data/names
Generated platform secrets/data/secrets.env

Two levels of backup:

  • Per crumb, in Hamstr: Download backup writes a .hamstr-backup file with the crumb's objects and a header. Restore replaces the crumb's data and keeps a safety copy until it succeeds.
  • Whole install: copy the data volume. That is the one to schedule. See Data and backups.

Apps can also offer Download data in a readable format by declaring an export path.

Work in progress. Formats and settings will change.