Installation
hs is a single executable with everything inside, including SQLite. It
needs nothing else installed to run.
Build it
Section titled “Build it”There are no prebuilt downloads for 0.1.0 yet. Build from the repository:
# with Nix and devenv: a release build in ./result/bindevenv build outputs.hs
# or with Rust (rustup picks the right version)cargo build --release --package hsCopy hs somewhere on your PATH, such as /usr/local/bin. Optionally
make a link called hsctl; started under that name, hs behaves as
hs ctl. The Nix build includes the link.
ln -s hs /usr/local/bin/hsctlCreate the node
Section titled “Create the node”Run this as the user the node will run as:
hs ctl init --name "Ada" --url https://hs.example.org--nameis shown to the people you share with.--urlis the address other nodes and apps use to reach this one. Leave it out for a node used only on this machine; you can set it later.
hs ctl init prints three things:
Identity: n22carktxylkeljiv6fipjzz3xyusp6hm6wxvl2xiksnoui75vgq
Recovery code (write it down; it is not stored anywhere):
l6zf-miqq-zl5c-…
Owner token for your first browser or app:
hs_d3sje7yqzelf…Write the recovery code down now. It is shown only once, and it is the only way to restore from an encrypted backup. See Your recovery code.
The owner token can do everything. hs on this machine is signed in with it
already; keep it for yourself and give others their own
tokens.
The data directory
Section titled “The data directory”By default the node lives in $XDG_DATA_HOME/homeserver, usually
~/.local/share/homeserver. Choose another with --dir DIR or $HS_DIR on
every command.
config.json the configurationidentity the identity logkeys/ node and storage keys, certificates (secret)logs/ one directory per space: the signed logsblobs/ file contents by BLAKE3 hashindex.db search, timeline, places: derived, safe to deleteaccess.log requests made to the nodenode.lock held by the running processlogs/, blobs/, identity, config.json and keys/ are the node.
Everything else can be rebuilt.
Next: run the node.