Coffer

Command line

The same sync engine runs on Node.js 22.18 or later, for an always-on computer such as a NAS or a home server. Download coffer.js from the latest release and run it with no installation. If Node stops with Cannot use import statement outside a module, rename the file to coffer.mjs.

node coffer.js watch --config=coffer.json

An example coffer.json:

{
  "vault": "/path/to/vault",
  "remote": { "type": "s3", "endpoint": "https://s3.us-east-1.amazonaws.com", "region": "us-east-1", "bucket": "my-notes", "prefix": "Notes", "pathStyle": false },
  "sync": { "deviceName": "nas" }
}

Secrets come from environment variables: COFFER_PASSPHRASE, and COFFER_ACCESS_KEY with COFFER_SECRET_KEY (S3) or COFFER_WEBDAV_PASSWORD (WebDAV).

Common commands

Run node coffer.js --help for every command.

To check that a release file came from Coffer's release workflow, run:

gh attestation verify coffer.js --repo chauduyphanvu/obsidian-coffer

Next: Security.