fogvault is an independent Rust vault for embedding in other software. Native Rust and browser integrations are equal-priority deliverables and share one Rust engine for keys, sessions, authenticated records and vault state.
Current status: maintained implementation at unpublished 0.1.0 packaging candidate.
APIs and saved bytes remain provisional. Independent security approval,
physical-platform qualification and a supported production release are separate
milestones. Read the delivery and support contract before
choosing a host profile.
| Package | What it provides |
|---|---|
fogvault |
Portable vault engine, resource admission and provider contracts. |
fogvault-native |
Registered SQLite storage, durable ordinary operations, protective device/recovery replacement and fresh restore. |
@datafog/fogvault-browser |
TypeScript/WASM SDK, owned Workers, IndexedDB storage, website and browser-extension integrations. |
fogvault-backup |
Bounded age/v1 transport, decoded snapshot framing and encrypted import staging. |
The maintained packages implement create/unlock/read/write/delete, bounded inventory reads, password and KDF changes, admitted device access, owner recovery, protective replacement and backup/fresh restore. Real device providers remain a trusted host integration; a capability declaration is not hardware attestation.
Use the repository as a Git/path dependency while the crates are unpublished. For a local checkout, an embedding crate can use:
[dependencies]
fogvault-native = { path = "../fogvault/crates/fogvault-native" }Run the standalone synthetic consumer from this repository:
cargo run --locked --manifest-path crates/fogvault-native/Cargo.toml --example native_vaultIt proves create → unlock → save → lock → reopen → read without a datafog dependency. Real applications must establish the independently protected native control namespace described in the native guide. Pin a reviewed commit when using a Git dependency. The registry packaging preflight builds and consumes the candidate archives locally without publication.
With the WASM Rust target and matching wasm-bindgen 0.2.127 CLI installed:
npm ci --ignore-scripts --prefix packages/browser
npm run build --prefix packages/browser
npm test --prefix packages/browser
npm run test:types --prefix packages/browserRun npm pack in packages/browser/ to create an installable tarball. It contains
the JavaScript entry, TypeScript declarations, Worker, WASM and third-party
notices. The browser guide covers installation,
resource policies, device callbacks, recovery and backup/restore.
Generate the working website and extension examples:
node packages/browser/scripts/build-examples.mjs chrome
node packages/browser/scripts/build-examples.mjs firefoxThe browser adapter uses IndexedDB behind fogvault's API. It is an explicit offline unanchored profile: detecting replacement of the entire vault by an older valid copy requires separately trusted state.
datafog core 0.5.0-beta.3 is the minimum integration baseline. The exact
published =0.5.0-beta.3 test pin preserves that floor; it is neither a runtime
dependency nor an upper version limit. datafog core v1 will be verified separately.
Native Windows/macOS/Linux, website Chrome/Edge/Firefox and packaged Chromium/ Firefox extension checks have passed. The delivery record links the evidence and support limits. Additional Safari/WebKit qualification remains deferred; existing WebKit regressions remain required.
Developers, agents and CI share one command:
python3 scripts/quality.py doctor --profile native
python3 scripts/quality.py check --profile contract
python3 scripts/quality.py check --profile native
python3 scripts/quality.py check --profile browserTool versions come from the shared pins. Diagnosis
does not install tools. Install the pinned Node toolchain and run npm ci --ignore-scripts --prefix packages/browser before the browser/extension profiles.
Package checks build and consume fresh archives rather than importing checkout
files. See CONTRIBUTING.md for supported profiles, PR/changelog
rules and the protected staging → main path.
Run the complete development-machine profile with its documented prerequisites:
python3 scripts/bootstrap-reference-db.py
CARGO_PROFILE_TEST_OPT_LEVEL=2 python3 scripts/quality.py check --profile fullThe verifier requires named behaviors, checks actual execution, and rejects source changes during a run. It retains the original vectors, consumer and host regressions alongside the maintained package tests. The full profile includes macOS/Xcode simulator and pinned Apple-arm verification tools; it is not a universal CI command. See checkout notes.
Report suspected vulnerabilities through this repository's private vulnerability reporting feature. Examples use synthetic credentials and data.
fogvault's original code, documentation and tests use the MIT License. Third-party material retains its own terms. See dependency scope, retained tool notices, and the browser artifact's bundled notices. The dated audit and passing tests do not establish cryptographic approval or certification.