StaticVault lets you create an encrypted, client-decryptable file system that can be hosted on static web platforms like S3, GitHub Pages, or any CDN. Ideal for secure, private content delivery, and easily hosted on static blogs (Hugo, Jekyll, etc).
You encrypt and manage your files locally, then deploy the encrypted vault. A lightweight browser-based app (included) allows in-browser decryption and previews of text and images.
Demo vault (password: hello
).
- Encrypt files locally
- Host anywhere: S3, Netlify, GitHub Pages, etc
- Duplicate files are only stored once
- CLI for creating, ingesting, listing, and extracting files
Client features:
- Mobile friendly site for browsing files
- Preview images/text in browser
- Share files/folders with friends
- Set expiration for shared links (enforced client-side)
You don't need to install anything globally - just use npx
:
npx staticvault init path/to/vault
npx staticvault ingest path/to/vault path/to/files
Then upload the contents of path/to/vault
to your static site host.
Your newly created vault includes the client, index.html
, and library index.min.js
, which you
can access on your site.
npx staticvault <command> [arguments]
Change vault password.
npx staticvault chpass <vault> [-p password] [-n newpassword]
Decrypt the vault into a directory.
npx staticvault dump <vault> <destination> [-p password]
Initialize a new vault.
npx staticvault init <vault> [-p password] [-d difficulty]
Encrypt and add files to an existing vault. Use -i
to ignore files/folders based on a pattern
(*
, **
, and ?
supported).
npx staticvault ingest <vault> <source> [-i ignore]+ [-p password]
Generates new encryption keys. By default, this will rotate the metadata keys. Use -a
to rotate
the file keys as well, but this will mean re-encrypting all files, which could be expensive.
Useful for revoking access to all shared links.
npx staticvault rekey <vault> [-p password] [-a]
Remove a file or folder from the vault.
npx staticvault rm <vault> <path> [-p password]
Run internal tests.
npx staticvault test
List the contents of the vault.
npx staticvault tree <vault> [-p password]
Output version.
npx staticvault version
npx staticvault init myvault
npx staticvault ingest myvault ./blog-attachments
npx staticvault tree myvault
Then upload the contents of myvault/
to your static host.