Home / SG/Vault

SG/Vault & the vault platform

This section is — for now — the official documentation for the SGraph vault platform: the SG/Vault browser app, the SG/Send zero-knowledge API, and vault apps — websites and applications that live inside encrypted vaults. Product background lives at sgraph.ai; the working documentation lives here.

What SG/Vault is

SG/Vault is the browser client for the same vaults sgit manages from the terminal. It is an independent implementation of the same encrypted wire format — not a wrapper around the CLI — kept interoperable through a versioned contract with test vectors (see the security model).

You open a vault by its key, carried in the URL fragment (the part after #):

https://vault.sgraph.ai/en-gb/#<vault-key>
# the fragment never leaves the browser — it is not sent in the HTTP request,
# so the server serves the app without ever seeing the key

From there you get a file browser over the decrypted vault — history, branches, editing — and, if the vault contains an app, App Mode: the vault boots straight into its own user interface.

The three pieces

PieceWhat it isWhere it runs
sgitThe CLI — git workflows over encrypted vaultsYour terminal, your agents' sessions
SG/VaultThe browser client — browse, edit, review, App ModeAny browser; all crypto via Web Crypto, client-side
SG/SendThe transfer API — stores ciphertext under opaque IDsThe server; the only piece that never sees plaintext

Vault apps: the app is the vault

A vault can contain an index.html plus an app.json. When the vault opens, the app launches — full-screen, talking to the vault through a runtime bridge, with the encrypted blob serving as both the storage and the distribution mechanism. Sharing the vault link is deploying the app.

You are looking at one. This entire website is a vault app: generated pages, shared assets loaded through the bridge, deployed by sgit push. The admin section documents its engineering and doubles as the reference implementation.

Three on-ramps

You want to…UseCode needed
Publish documents, galleries, hub pagesMarkdown + _page.json in the browse viewNone
Ship an interactive experienceA vault app on the window.sg bridgeHTML/JS
Automate, script, collaborate, back upThe sgit CLI, plus git side-by-side and static hostingA terminal

Sub-vaults cut across all three: vaults pointing at other vaults, rendered inline like folders — composition without copying.

In this section