Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update docs (#2189)

Leendert de Borsta1603f8f918a
diff --git a/docs/_technical-architecture/OFFLINE_MODE.md b/docs/_technical-architecture/OFFLINE_MODE.md
deleted file mode 100644
index 607dad3d7..000000000
--- a/docs/_technical-architecture/OFFLINE_MODE.md
+++ /dev/null
@@ -1,858 +0,0 @@
-# Offline Sync Implementation Specification
-
-## Overview
-
-This document defines the offline sync architecture for AliasVault clients. All clients (browser extension, mobile apps, web app) should follow these patterns to ensure consistent behavior and prevent data loss.
-
-**Reference Implementation**: Browser extension (`apps/browser-extension`)
-
----
-
-## Core Principles
-
-1. **Local-first**: Always work with local vault, sync in background
-2. **Never lose user data**: Local changes must survive network failures, app crashes, restarts
-3. **LWW (Last-Write-Wins)**: Conflict resolution based on `UpdatedAt` timestamps
-4. **Atomic metadata**: Vault blob and sync state stored together
-5. **Server is source of truth for revision**: Server assigns revision numbers
-6. **Race detection**: Mutation sequence counter prevents concurrent overwrites
-
----
-
-## Storage Architecture
-
-### Three Storage Layers
-
-```
-1. Persistent Storage (survives app restart):
- - Encrypted vault blob
- - Sync state (isDirty, mutationSequence, serverRevision)
- - Vault metadata (email domains)
- - Offline mode flag
- - Auth tokens & encryption params
-
-2. Session Storage (cleared on app close):
- - Derived encryption key (SECURITY: never persist!)
- - Temporary form values
-
-3. Memory (runtime only):
- - sqliteClient (in-memory database)
- - Cached vault blob (reduces decryption)
- - React/UI state mirrors
-```
-
-### Persistent Storage Keys
-
-```
-local:encryptedVault - Full encrypted SQLite blob
-local:serverRevision - Last synced server revision number
-local:isDirty - Boolean: true if local has unsynced changes
-local:mutationSequence - Counter: increments on each local mutation
-local:isOfflineMode - Boolean: true if currently offline
-local:encryptionKeyDerivationParams - Salt/algorithm for key derivation
-local:username - For display purposes
-local:publicEmailDomains - Email domain lists
-local:privateEmailDomains
-local:hiddenPrivateEmailDomains
-```
-
-### Session Storage Keys
-
-```
-session:encryptionKey - Derived encryption key (SECURITY: never persist!)
-```
-
----
-
-## Critical: Atomic Vault Storage Pattern
-
-**All vault storage operations MUST include sync flags atomically.**
-
-This prevents a race condition where:
-1. Vault saved locally
-2. App crashes before `isDirty` is set
-3. On restart, `isDirty=false` → sync overwrites local changes → **DATA LOSS**
-
-### Two Storage Modes
-
-The vault storage handler supports two distinct modes:
-
-#### Mode 1: Local Mutation (markDirty=true)
-```typescript
-// After user creates/edits/deletes an item:
-storeEncryptedVault({
- vaultBlob: encryptedVault,
- markDirty: true // Always succeeds, increments mutationSequence
-});
-
-// Atomically stores:
-// - local:encryptedVault = vaultBlob
-// - local:isDirty = true
-// - local:mutationSequence++ (incremented)
-```
-
-#### Mode 2: Sync Operation (expectedMutationSeq provided)
-```typescript
-// After downloading/merging from server:
-storeEncryptedVault({
- vaultBlob: encryptedVault,
- serverRevision: newRevision,
- expectedMutationSeq: capturedSequence // Race detection!
-});
-
-// Only succeeds if: currentMutationSeq === expectedMutationSeq
-// Returns { success: false } if mismatch (concurrent mutation detected)
-```
-
-### Why Mutation Sequence?
-
-The `mutationSequence` counter solves a critical race condition:
-
-```
-Problem:
- Time 1: Sync starts, captures mutationSequence=5
- Time 2: User edits item → mutationSequence=6
- Time 3: Sync tries to save server vault
- If we overwrite, user's edit is LOST!
-
-Solution:
- Time 3: Sync tries to save with expectedMutationSeq=5
- But current is 6 → REJECTED
- Sync restarts with fresh data
-```
-
-### Sync State Truth Table
-
-| Operation | isDirty | mutationSequence | serverRevision |
-|------------------------------|---------|------------------|----------------|
-| Fetch vault from server | `false` | unchanged | server's rev |
-| Local mutation (any mode) | `true` | incremented | unchanged |
-| Successful upload to server | `false`*| unchanged | new server rev |
-| Failed upload (network) | `true` | unchanged | unchanged |
-| Race detected during sync | `true` | unchanged | unchanged |
-| Vault cleared (logout) | removed | removed | removed |
-
-*Only cleared if no mutations occurred during upload (mutationSeq unchanged)
-
----
-
-## Unlock Flow
-
-**Key principle**: Always unlock from local vault first, then sync in background.
-
-### Pseudocode
-
-```
-UNLOCK(password_or_pin):
- // 1. Derive encryption key
- if ONLINE:
- params = GET_ENCRYPTION_PARAMS_FROM_SERVER()
- STORE_ENCRYPTION_PARAMS(params)
- else:
- params = GET_STORED_ENCRYPTION_PARAMS()
- if params is null:
- ERROR("Cannot unlock offline without previous login")
-
- encryptionKey = DERIVE_KEY(password_or_pin, params)
- STORE_ENCRYPTION_KEY_IN_SESSION(encryptionKey)
-
- // 2. ALWAYS initialize from local vault first
- localVault = GET_ENCRYPTED_VAULT_FROM_LOCAL_STORAGE()
- decryptedVault = DECRYPT(localVault, encryptionKey)
- INITIALIZE_DATABASE(decryptedVault)
-
- // 3. Navigate to main app, sync in background
- NAVIGATE_TO_MAIN_VIEW()
- SYNC_VAULT_IN_BACKGROUND() // Non-blocking!
-```
-
-**Why unlock from local first?**
-- User gets immediate access to their data
-- Local changes are never lost
-- Sync happens after unlock (can fail safely)
-- UI doesn't block on network
-
----
-
-## Sync Flow
-
-**Key principles**:
-1. Check `isDirty` before overwriting local vault
-2. **Upload pending changes** - sync is responsible for uploading, not just downloading
-3. **Race detection** - use mutation sequence to detect concurrent edits
-4. **Recursive retry** - if race detected, restart sync
-
-### Pseudocode
-
-```
-SYNC_VAULT():
- if not ONLINE:
- SET_OFFLINE_MODE(true)
- return SUCCESS // Continue with local vault
-
- SET_OFFLINE_MODE(false)
-
- // Capture state at start for race detection
- syncState = GET_SYNC_STATE()
- mutationSeqAtStart = syncState.mutationSequence
-
- serverRevision = GET_SERVER_REVISION()
- localRevision = syncState.serverRevision
- isDirty = syncState.isDirty
-
- if serverRevision > localRevision:
- // Server has newer vault - download it
- serverVault = FETCH_SERVER_VAULT()
-
- if isDirty:
- // CRITICAL: We have local changes - must merge!
- localVault = GET_LOCAL_ENCRYPTED_VAULT()
- mergedVault = LWW_MERGE(localVault, serverVault)
-
- // Store merged vault with race detection
- result = STORE_ENCRYPTED_VAULT({
- vaultBlob: mergedVault,
- expectedMutationSeq: mutationSeqAtStart
- })
-
- if not result.success:
- // Race detected - concurrent mutation happened
- return SYNC_VAULT() // Recursive retry
-
- // Upload merged vault to server
- uploadResponse = UPLOAD_VAULT(mergedVault)
- if uploadResponse.success:
- MARK_VAULT_CLEAN(uploadResponse.newRevision, mutationSeqAtStart)
-
- INITIALIZE_DATABASE(mergedVault)
- else:
- // No local changes - safe to overwrite
- result = STORE_ENCRYPTED_VAULT({
- vaultBlob: serverVault,
- serverRevision: serverRevision,
- expectedMutationSeq: mutationSeqAtStart
- })
-
- if not result.success:
- return SYNC_VAULT() // Race detected
-
- INITIALIZE_DATABASE(serverVault)
-
- else if serverRevision == localRevision:
- if isDirty:
- // Local changes at same revision - upload them!
- localVault = GET_LOCAL_ENCRYPTED_VAULT()
- uploadResponse = UPLOAD_VAULT(localVault, mutationSeqAtStart)
-
- if uploadResponse.success:
- MARK_VAULT_CLEAN(uploadResponse.newRevision, mutationSeqAtStart)
- else if uploadResponse.status == OUTDATED:
- // Another device uploaded - recurse to merge
- return SYNC_VAULT()
- // else: keep isDirty true, retry later
- else:
- // Already in sync - nothing to do
- pass
-
- return SUCCESS
-```
-
-### Mark Vault Clean Logic
-
-```
-MARK_VAULT_CLEAN(newServerRevision, mutationSeqAtStart):
- currentMutationSeq = GET_CURRENT_MUTATION_SEQUENCE()
-
- // Always update server revision
- SET_SERVER_REVISION(newServerRevision)
-
- // Only clear dirty flag if no mutations happened during sync
- if currentMutationSeq == mutationSeqAtStart:
- SET_IS_DIRTY(false)
- // else: keep dirty, another mutation needs syncing
-```
-
-### Critical: Sync Must Upload
-
-A common mistake is to only handle downloads during sync. The sync flow **must also upload** pending local changes:
-
-1. **After merge**: Upload merged vault to server immediately
-2. **Same revision with pending**: Upload local vault to server
-3. **Only clear `isDirty`** after successful upload AND no concurrent mutations
-
----
-
-## Mutation Flow
-
-**Key principle**: Save locally first, trigger sync in background. LWW merge handles conflicts.
-
-### Two Mutation Patterns
-
-#### Pattern 1: Blocking Mutation (with loading state)
-```
-MUTATE_VAULT_BLOCKING(operation):
- SET_IS_LOADING(true)
-
- // 1. Apply mutation to local database
- operation() // e.g., create/update/delete item
-
- // 2. Export and encrypt
- vaultBlob = EXPORT_DATABASE_TO_BASE64()
- encryptedVault = ENCRYPT(vaultBlob, encryptionKey)
-
- // 3. Store locally with dirty flag (ATOMIC!)
- STORE_ENCRYPTED_VAULT({
- vaultBlob: encryptedVault,
- markDirty: true
- })
-
- // 4. Sync and wait for completion
- await SYNC_VAULT()
-
- SET_IS_LOADING(false)
-```
-
-#### Pattern 2: Non-Blocking Mutation (async sync)
-```
-MUTATE_VAULT_ASYNC(operation):
- // 1. Apply mutation to local database
- operation()
-
- // 2. Export and encrypt
- vaultBlob = EXPORT_DATABASE_TO_BASE64()
- encryptedVault = ENCRYPT(vaultBlob, encryptionKey)
-
- // 3. Store locally (ATOMIC!)
- STORE_ENCRYPTED_VAULT({
- vaultBlob: encryptedVault,
- markDirty: true
- })
-
- // 4. Trigger sync in background (fire-and-forget)
- TRIGGER_BACKGROUND_SYNC()
- // UI unblocks immediately, user can continue
-```
-
-### Background Sync Queue
-
-```
-TRIGGER_BACKGROUND_SYNC():
- if SYNC_IN_PROGRESS:
- return // Let current sync pick up changes
-
- SET_SYNC_IN_PROGRESS(true)
-
- SYNC_VAULT()
-
- // After sync, check if more mutations happened
- if IS_DIRTY:
- TRIGGER_BACKGROUND_SYNC() // Recursive: sync again
-
- SET_SYNC_IN_PROGRESS(false)
-```
-
-### Why No Pre-Sync?
-
-Previous versions would sync before mutations to ensure working with the latest vault. This is unnecessary because:
-
-1. **LWW merge resolves conflicts** - Even if mutating a stale vault, the merge will pick the record with the latest `UpdatedAt`
-2. **Popup open triggers sync** - Vault is reasonably fresh when user starts interacting
-3. **Simpler mental model** - Mutation = save + sync, that's it
-4. **Fewer edge cases** - No pre-sync failure handling needed
-
----
-
-## In-Memory Cache Strategy
-
-To avoid repeated decryption, the implementation uses an in-memory cache:
-
-```
-CACHE:
- cachedSqliteClient: SqliteClient | null
- cachedVaultBlob: string | null
-
-ON_LOCAL_MUTATION:
- // Don't clear cache - local mutations work directly on cached client
- cachedSqliteClient.execute(mutation)
- EXPORT_AND_STORE_ENCRYPTED()
-
-ON_EXTERNAL_UPDATE (login, sync download, logout):
- // Clear cache - external data needs re-initialization
- cachedSqliteClient = null
- cachedVaultBlob = null
- INITIALIZE_FROM_STORAGE()
-```
-
-**Why this matters:**
-- Local mutations are fast (no decryption)
-- External updates ensure consistency (fresh decrypt)
-- Reduces CPU usage significantly
-
----
-
-## LWW Merge Algorithm
-
-### Core Rule
-
-For each record, compare `UpdatedAt` timestamps. The record with the **later** timestamp wins.
-
-### Merge Pseudocode
-
-```
-LWW_MERGE(localVault, serverVault):
- mergedVault = CLONE(serverVault) // Start with server as base
-
- for each TABLE in SYNCABLE_TABLES:
- localRecords = GET_RECORDS(localVault, TABLE)
- serverRecords = GET_RECORDS(serverVault, TABLE)
-
- // Build lookup for server records
- serverById = MAP(serverRecords, record => record.Id)
-
- for each localRecord in localRecords:
- serverRecord = serverById[localRecord.Id]
-
- if serverRecord is null:
- // Local-only record - keep it
- ADD_RECORD(mergedVault, TABLE, localRecord)
-
- else if localRecord.UpdatedAt > serverRecord.UpdatedAt:
- // Local is newer - use local
- UPDATE_RECORD(mergedVault, TABLE, localRecord)
-
- // else: server is newer or equal - already in merged (from clone)
-
- return mergedVault
-```
-
-### Syncable Tables
-
-All entities extending `SyncableEntity`:
-- `Item` - Main credential/login entity
-- `FieldValue` - Field data per item
-- `Folder` - Hierarchical folders
-- `Tag` - User tags
-- `ItemTag` - Item-tag relationships
-- `Attachment` - File attachments
-- `TotpCode` - TOTP secrets
-- `Passkey` - WebAuthn credentials
-- `FieldDefinition` - Custom field definitions
-- `FieldHistory` - Field change history
-- `Logo` - Deduplicated logos
-
-### Special Cases
-
-1. **Soft deletes are sticky**: `IsDeleted=true` should only be overwritten by a record with later `UpdatedAt` that explicitly sets `IsDeleted=false`
-
-2. **DeletedAt handling**: For items moved to trash, `DeletedAt` timestamp determines trash state
-
-3. **Child entities**: Merge independently - a newer parent doesn't automatically make children newer
-
----
-
-## UI Indicators
-
-### States to Display (Priority Order)
-
-| Priority | State | Condition | UI |
-|----------|-------|-----------|-----|
-| 1 | **Offline** | `isOffline=true` | Amber badge: "Offline" |
-| 2 | **Syncing** | `isSyncing=true` | Green badge with spinner: "Syncing vault..." |
-| 3 | **Pending** | `isDirty=true` | Blue badge with spinner: "Pending sync" |
-| 4 | **Synced** | all false | No indicator (hidden) |
-
-### Important: Only show indicators when vault is unlocked
-
-```typescript
-// Don't show sync indicators when vault is locked
-if (!isLoggedIn || !dbAvailable) {
- return null; // No indicator
-}
-```
-
-### State Transitions
-
-```
-User makes edit:
- Synced → Pending → (sync starts) → Syncing → Synced
-
-Network goes down:
- Synced → Offline
-
-Network restored + pending changes:
- Offline → Pending → Syncing → Synced
-```
-
----
-
-## Offline Mode Behaviors
-
-### Entry Conditions
-
-- Server returns connection error (detected as version `0.0.0`)
-- User must have local vault (`dbAvailable=true`)
-- Otherwise throws error (cannot use app without vault)
-
-### Offline Capabilities
-
-- Create/edit/delete credentials locally
-- All mutations increment `mutationSequence` and set `isDirty=true`
-- UI shows "Offline" badge
-- Can lock/unlock vault using stored encryption params
-- Form values persist encrypted in session storage
-
-### Return to Online
-
-```
-Network restored:
-1. Next syncVault() call succeeds
-2. Server revision > local?
- └─ Merge local with server
-3. Upload merged/local vault
-4. setIsOffline(false)
-5. UI shows normal state
-```
-
----
-
-## Vault Pruning (Trash Auto-Cleanup)
-
-Items moved to trash (`DeletedAt` set) are automatically pruned after 30 days. This happens as part of the sync flow, before uploading the vault to the server.
-
-### Pruning Flow
-
-```
-BEFORE_UPLOAD():
- 1. Read Items, FieldValues, Attachments, TotpCodes, Passkeys tables
- 2. Find items where:
- - DeletedAt is set (in trash)
- - DeletedAt < (now - 30 days)
- - IsDeleted = false (not already permanently deleted)
- 3. For each expired item:
- - Set IsDeleted = true, UpdatedAt = now
- - Set IsDeleted = true for all related entities
- 4. Execute SQL statements returned by Rust
- 5. Continue with vault upload
-```
-
-### Implementation Details
-
-- **Rust module**: `vault_pruner` in `core/rust/src/vault_pruner/mod.rs`
-- **Browser extension**: Called in `VaultMessageHandler.ts` → `uploadNewVaultToServer()`
-- **AliasVault.Client**: Called in `DbService.cs` → `PruneExpiredTrashItemsAsync()`
-- **Retention period**: 30 days (configurable in Rust API)
-- **Graceful failure**: If pruning fails, continues with upload (logs warning)
-
-### Key Points
-
-1. **Pruning is automatic**: Happens transparently during sync
-2. **User can restore within 30 days**: Items in "Recently Deleted" can be restored
-3. **Permanent after 30 days**: Items are marked with `IsDeleted = true` (tombstone)
-4. **Cross-platform consistency**: Rust WASM handles logic for all clients
-
----
-
-## Key Files (Browser Extension)
-
-| File | Purpose |
-|------|---------|
-| `VaultMessageHandler.ts` | Background storage handlers with race detection, prune integration |
-| `DbContext.tsx` | React context for vault state management |
-| `useVaultSync.ts` | **Primary sync logic** - handles download, upload, merge, offline, race detection |
-| `useVaultMutate.ts` | Mutation execution with blocking/async patterns |
-| `VaultMergeService.ts` | LWW merge and prune implementation |
-| `ServerSyncIndicator.tsx` | UI status indicator component |
-| `Unlock.tsx` | Unlock flow (local-first) |
-| `Reinitialize.tsx` | Post-unlock initialization and background sync trigger |
-| `background.ts` | Message routing between popup and background |
-
----
-
-## Testing Scenarios
-
-### Basic Offline Flow
-1. [ ] Go offline (disable network)
-2. [ ] Make mutation (create/edit item)
-3. [ ] Verify saved locally (indicator shows "Offline")
-4. [ ] Lock vault
-5. [ ] Go online
-6. [ ] Unlock vault
-7. [ ] Verify local changes preserved and synced
-
-### Merge Conflict
-1. [ ] Device A: Create item, sync
-2. [ ] Device B: Sync to get item
-3. [ ] Device A: Go offline, edit item
-4. [ ] Device B: Edit same item, sync
-5. [ ] Device A: Go online
-6. [ ] Verify LWW merge (later edit wins)
-
-### Crash Recovery
-1. [ ] Make offline mutation
-2. [ ] Force-kill app (simulate crash)
-3. [ ] Reopen app
-4. [ ] Verify `isDirty=true` preserved
-5. [ ] Verify local changes still exist
-
-### Unlock with Pending Changes
-1. [ ] Go offline
-2. [ ] Make mutation
-3. [ ] Lock vault
-4. [ ] Go online
-5. [ ] Unlock vault
-6. [ ] Verify merge happens before using server vault
-
-### Race Condition (Concurrent Mutations)
-1. [ ] Start sync operation (e.g., downloading large vault)
-2. [ ] During sync, make local mutation
-3. [ ] Verify sync detects race (mutationSeq changed)
-4. [ ] Verify sync restarts and includes new mutation
-5. [ ] Verify no data loss
-
----
-
-## FieldValue Update Strategy (SqliteClient)
-
-When updating an Item with FieldValues, the `updateItem()` method uses a **preserve-and-track** strategy to maintain stable FieldValue IDs for proper merge behavior.
-
-### Why Stable IDs Matter
-
-The merge service matches FieldValues by composite key (`ItemId + FieldKey`), but having stable IDs improves efficiency and reduces merge complexity. If we deleted all FieldValues and recreated them with new IDs on every save, the merge would work but create unnecessary churn.
-
-### The Strategy
-
-```
-UPDATE_ITEM(item):
- 1. QUERY existing FieldValues for this item
- existingFields = SELECT * FROM FieldValues WHERE ItemId = ? AND IsDeleted = 0
-
- 2. BUILD lookup map by composite key
- existingByKey = MAP each field to "{FieldKey}:{index}"
-
- 3. TRACK which existing IDs we process
- processedIds = SET()
-
- 4. FOR EACH field in item.Fields:
- compositeKey = "{field.FieldKey}:{index}"
- existing = existingByKey[compositeKey]
-
- IF existing:
- // UPDATE in place - preserves the original FieldValue ID
- processedIds.add(existing.Id)
- IF value changed:
- UPDATE FieldValues SET Value = ?, UpdatedAt = ? WHERE Id = ?
- ELSE:
- // INSERT new FieldValue with random UUID
- INSERT INTO FieldValues (Id, ItemId, FieldKey, Value, ...)
- VALUES (randomUUID(), ...)
-
- 5. SOFT-DELETE removed fields
- FOR EACH existing in existingFields:
- IF existing.Id NOT IN processedIds:
- // Field was removed - soft delete it
- UPDATE FieldValues SET IsDeleted = 1, UpdatedAt = ? WHERE Id = ?
-```
-
-### Benefits
-
-1. **Stable IDs for unchanged fields**: Fields that aren't modified keep their original UUID
-2. **Efficient updates**: Only changed fields get new `UpdatedAt` timestamps
-3. **Clean removal**: Removed fields are properly soft-deleted
-4. **Merge-friendly**: Composite key matching in merge handles cases where IDs differ
-
-### Example Scenario
-
-```
-Initial state: Item has FieldValues:
- - {Id: "A", FieldKey: "login.username", Value: "[email protected]"}
- - {Id: "B", FieldKey: "login.password", Value: "secret123"}
-
-User edits only the password:
-
-After updateItem():
- - {Id: "A", FieldKey: "login.username", Value: "[email protected]"} // UNCHANGED - same ID
- - {Id: "B", FieldKey: "login.password", Value: "newsecret456", UpdatedAt: NOW} // UPDATED in place
-```
-
-### Key Files
-
-- `SqliteClient.ts` → `updateItem()` - Implements the preserve-and-track strategy
-- `VaultMergeService.ts` → `mergeTableByCompositeKey()` - Handles merge by composite key
-
----
-
-## Security Considerations
-
-1. **Encryption key NEVER persisted** - Only in session storage
-2. **Vault blob is encrypted** - Safe to persist locally
-3. **User must re-authenticate after app close** - Session key is lost
-4. **No plaintext in local storage** - All vault data encrypted
-5. **Derivation params safe to store** - Salt alone cannot derive key
-
----
-
-## Common Pitfalls to Avoid
-
-### 1. Overwriting local changes
-**Wrong:**
-```typescript
-if (serverRevision > localRevision) {
- initializeDatabase(serverVault); // Overwrites local changes!
-}
-```
-
-**Correct:**
-```typescript
-if (serverRevision > localRevision) {
- if (isDirty) {
- mergedVault = merge(localVault, serverVault);
- initializeDatabase(mergedVault);
- } else {
- initializeDatabase(serverVault);
- }
-}
-```
-
-### 2. Separate storage calls (non-atomic)
-**Wrong:**
-```typescript
-await storage.setItem('local:encryptedVault', vault);
-await storage.setItem('local:isDirty', true); // Crash here = lost flag!
-```
-
-**Correct:**
-```typescript
-await storage.setItems([
- { key: 'local:encryptedVault', value: vault },
- { key: 'local:isDirty', value: true },
- { key: 'local:mutationSequence', value: sequence + 1 }
-]); // Atomic
-```
-
-### 3. Fetching server vault during unlock
-**Wrong:**
-```typescript
-// Unlock.tsx
-serverVault = await fetchFromServer();
-initializeDatabase(serverVault); // Skips local!
-```
-
-**Correct:**
-```typescript
-// Unlock.tsx - always local first
-localVault = await getLocalVault();
-initializeDatabaseFromLocal(localVault);
-// Then trigger background sync
-triggerBackgroundSync();
-```
-
-### 4. Ignoring race conditions
-**Wrong:**
-```typescript
-// Sync downloads server vault
-const serverVault = await downloadVault();
-// User edits during download (undetected!)
-await storeVault(serverVault); // Overwrites user's edit!
-```
-
-**Correct:**
-```typescript
-const mutationSeqAtStart = await getMutationSequence();
-const serverVault = await downloadVault();
-
-const result = await storeVault({
- vault: serverVault,
- expectedMutationSeq: mutationSeqAtStart // Race detection!
-});
-
-if (!result.success) {
- return syncVault(); // Retry - will merge user's edit
-}
-```
-
-### 5. Clearing dirty flag prematurely
-**Wrong:**
-```typescript
-await uploadVault(localVault);
-await setIsDirty(false); // What if user edited during upload?
-```
-
-**Correct:**
-```typescript
-const mutationSeqAtStart = getMutationSequence();
-await uploadVault(localVault);
-
-// Only clear if no mutations happened during upload
-if (getCurrentMutationSequence() === mutationSeqAtStart) {
- await setIsDirty(false);
-}
-```
-
----
-
-## Disaster Recovery & Data Loss Prevention
-
-### Server RPO Recovery
-
-AliasVault implements two disaster recovery mechanisms to prevent data loss:
-
-1. **Vault Preservation on Forced Logout** - Prevents data loss when session is forcibly terminated
-2. **Server Rollback Handling** - Enables recovery when server has lower revision than client
-
-**For detailed implementation, see:** [SERVER_RPO_RECOVERY.md](./SERVER_RPO_RECOVERY.md)
-
-### Quick Summary
-
-#### Vault Preservation on Forced Logout
-
-**Problem:** When forced logout occurs (401 Unauthorized), if local vault is deleted, unsynced changes are lost.
-
-**Solution:**
-- **User-initiated logout**: Check `isDirty`, show warning dialog if unsynced changes, clear all data
-- **Forced logout**: Preserve vault data in place, only clear session data (tokens, encryption key)
-- **On login**: Check for existing vault, try to decrypt with new key, compare revisions with server
-
-Vault data is preserved in regular storage keys (no separate "orphaned" keys). On re-login, the sync flow handles recovery automatically.
-
-#### Server Rollback Handling
-
-**Problem:** When server rolls back to earlier revision (e.g., 95 < client 100), sync needs to recover server state.
-
-**Solution:** Explicit handling in sync logic:
-
-```typescript
-if (serverRevision < clientRevision) {
- // Server data loss detected - upload client vault to recover
- uploadVault();
- // Server assigns newRevision = clientRevision + 1 (creates gap)
-}
-```
-
-**Why gap is acceptable:**
-- Provides audit trail of disaster recovery event
-- Server history is admin-only
-- Clients only care about latest revision
-
----
-
-## Revision History
-
-- **2025-12**: Initial implementation with atomic `hasPendingSync` flag
-- **2025-12**: Centralized merge logic in `useVaultSync.ts`
-- **2025-12**: Simplified unlock flow to always use local vault first
-- **2025-12**: `OfflineIndicator` with proper locked state handling
-- **2025-12**: Preserve-and-track strategy for FieldValue updates in `updateItem()`
-- **2025-12**: Composite key matching for FieldValues merge in `VaultMergeService`
-- **2025-12**: **Major update**: Renamed `hasPendingSync` to `isDirty` to match implementation
-- **2025-12**: **`mutationSequence` counter** for race condition detection
-- **2025-12**: In-memory cache strategy documentation
-- **2025-12**: UI indicators section with priority order and `ServerSyncIndicator` component
-- **2025-12**: Blocking vs non-blocking mutation patterns
-- **2025-12**: Background sync queue logic
-- **2025-12**: Expanded race condition documentation and pitfalls
-- **2025-12**: Concurrent mutation test scenario
-- **2025-12**: **`vault_pruner` module** for 30-day trash auto-cleanup
-- **2025-12**: Renamed `merge` module to `vault_merge` for consistency
-- **2025-12**: Removed old 7-day `VaultCleanupSoftDeletedRecords` in favor of 30-day prune
-- **2025-12**: "Recently Deleted" page in AliasVault.Client with restore functionality
-- **2026-01**: **Disaster recovery section** - Server RPO recovery and vault preservation on forced logout
diff --git a/docs/_technical-architecture/SERVER_RPO_RECOVERY.md b/docs/_technical-architecture/SERVER_RPO_RECOVERY.md
deleted file mode 100644
index 9a1775a1c..000000000
--- a/docs/_technical-architecture/SERVER_RPO_RECOVERY.md
+++ /dev/null
@@ -1,347 +0,0 @@
-# Server RPO Recovery & Vault Preservation
-
-## Overview
-
-This document describes two mechanisms to handle edge cases in vault synchronization:
-
-1. **Vault Preservation on Forced Logout** - Prevents data loss when session is forcibly terminated
-2. **Server Rollback Handling** - Enables recovery when server has lower revision than client
-
-Both mechanisms address disaster recovery scenarios where server data loss (RPO - Recovery Point Objective) could result in client data being lost.
-
----
-
-## Vault Preservation on Forced Logout
-
-### Problem
-
-When forced logout occurs (401 Unauthorized due to token revocation), if the client deletes the local vault immediately, any unsynced changes would be permanently lost.
-
-### Solution
-
-Two distinct logout flows handle this:
-
-#### Flow A: User-Initiated Logout (Explicit button press)
-
-**Behavior:**
-1. Check if vault has unsynced changes (`isDirty = true`)
-2. If dirty, show warning dialog asking user to confirm data loss
-3. If user confirms, proceed with full vault deletion
-4. If user cancels, abort logout
-
-**Why:** User has agency to prevent data loss by syncing first or canceling logout.
-
-#### Flow B: Forced Logout (401, token revocation, password change)
-
-**Behavior:**
-1. **Always** preserve encrypted vault + metadata (regardless of `isDirty` state)
-2. Clear active session (tokens, current vault references)
-3. Prefill username on login page as subtle hint
-
-**Why:**
-- User had no control over logout (forced by server)
-- Vault might be more advanced than server (server rollback scenario)
-- No security risk (vault is encrypted)
-- Enables silent recovery on next login
-
-### Storage Design
-
-Forced logout **preserves the existing vault data in place** while clearing only session data. This allows recovery on re-login through normal sync flow.
-
-#### Browser Extension Storage
-
-**Vault Keys (preserved on forced logout):**
-```typescript
-'local:encryptedVault' // Encrypted vault blob - PRESERVED
-'local:serverRevision' // Server revision number - PRESERVED
-'local:isDirty' // Has unsynced changes - PRESERVED
-'local:mutationSequence' // Mutation counter - PRESERVED
-'local:username' // Username for login prefill - PRESERVED
-'local:encryptionKeyDerivationParams' // Key derivation params - PRESERVED
-```
-
-**Session Keys (cleared on forced logout):**
-```typescript
-'local:accessToken' // JWT access token - CLEARED
-'local:refreshToken' // JWT refresh token - CLEARED
-'session:encryptionKey' // In-memory encryption key - CLEARED
-```
-
-#### Mobile App Storage (iOS/Android)
-
-The mobile apps use native storage through `VaultStore` (Swift/Kotlin) which maintains:
-
-**Persisted Storage (preserved on forced logout via `clearSession()`):**
-- Encrypted vault database file
-- Server revision number
-- Dirty flag and mutation sequence
-- Username (for login prefill)
-- Encryption key derivation params
-
-**Session Data (cleared on forced logout via `clearSession()`):**
-- In-memory decryption key (keychain/keystore)
-- Auth tokens
-- In-memory decrypted vault reference
-
-The native `clearSession()` method clears session data while preserving the persisted vault, whereas `clearVault()` clears everything including the persisted database.
-
-### Login Flow with Silent Recovery
-
-#### Browser Extension
-
-When user logs in after a forced logout:
-
-1. **Check for existing vault** in storage (`persistAndLoadVault()` in [Login.tsx](../../apps/browser-extension/src/entrypoints/popup/pages/auth/Login.tsx))
- - Reads `local:encryptedVault` and `local:serverRevision`
- - If no existing vault → Normal fresh login flow
-
-2. **Attempt to decrypt existing vault** with derived encryption key
- - Uses `EncryptionUtility.symmetricDecrypt()` to verify vault can be decrypted
- - If decryption fails → Password was changed → Use server vault instead
- - If decryption succeeds → Continue to revision comparison
-
-3. **Compare local revision with server revision**
- - If `localRev >= serverRev` → Keep local vault (don't overwrite), load existing decrypted vault
- - If `localRev < serverRev` → Server is more advanced → Download and use server vault
-
-4. **Continue with normal sync flow**
- - The sync logic in `useVaultSync.ts` handles server rollback detection automatically
- - If `serverRevision < clientRevision`, sync uploads to recover server state
-
-#### Mobile App (iOS/Android)
-
-When user logs in after a forced logout:
-
-1. **Check for existing vault** via `NativeVaultManager.hasEncryptedDatabase()` ([login.tsx](../../apps/mobile-app/app/login.tsx))
- - If no existing vault → Normal fresh login flow
-
-2. **Attempt to unlock existing vault** via `NativeVaultManager.unlockVault()`
- - Native code attempts to decrypt vault using the newly derived encryption key
- - If decryption fails → Password was changed → Call `NativeVaultManager.clearVault()` to clear local vault
- - If decryption succeeds → Vault is valid, proceed to sync
-
-3. **Sync handles revision comparison**
- - `syncVault()` is called which internally compares revisions
- - Native `VaultSync` (Swift/Kotlin) handles all cases:
- - `serverRev > localRev` → Download server vault
- - `serverRev == localRev && isDirty` → Upload local changes
- - `serverRev < localRev` → Server rollback detected → Upload to recover server
- - `serverRev == localRev && !isDirty` → Already in sync
-
-### Recovery Decision Matrix
-
-| Scenario | Vault Decrypt | Revision Comparison | Action |
-|----------|---------------|---------------------|--------|
-| Password unchanged, server rolled back | ✅ Success | `localRev >= serverRev` | Keep local vault → Sync uploads → **Data recovered!** |
-| Password unchanged, server advanced | ✅ Success | `localRev < serverRev` | Use server vault (server is authoritative) |
-| Password changed | ❌ Fails | N/A | Clear local vault, use server vault |
-| No existing vault | N/A | N/A | Normal fresh login flow |
-
-### Implementation Summary
-
-#### Browser Extension
-
-**Key files:**
-- [AuthContext.tsx](../../apps/browser-extension/src/entrypoints/popup/context/AuthContext.tsx) - `clearAuthUserInitiated()` vs `clearAuthForced()`
-- [AppContext.tsx](../../apps/browser-extension/src/entrypoints/popup/context/AppContext.tsx) - `logout()` calls `clearAuthForced()` to preserve vault
-- [Settings.tsx](../../apps/browser-extension/src/entrypoints/popup/pages/settings/Settings.tsx) - User-initiated logout with dirty vault warning
-- [Login.tsx](../../apps/browser-extension/src/entrypoints/popup/pages/auth/Login.tsx) - `persistAndLoadVault()` handles existing vault recovery
-- [useVaultSync.ts](../../apps/browser-extension/src/entrypoints/popup/hooks/useVaultSync.ts) - Server rollback detection (lines 288-329)
-
-#### Mobile App (Native iOS)
-
-**Key files:**
-- [VaultStore+Cache.swift](../../apps/mobile-app/ios/VaultStoreKit/VaultStore+Cache.swift) - `clearSession()` preserves vault, `clearVault()` clears all
-- [VaultManager.swift](../../apps/mobile-app/ios/NativeVaultManager/VaultManager.swift) - React Native bridge for `clearSession()`
-- [VaultStore+Sync.swift](../../apps/mobile-app/ios/VaultStoreKit/VaultStore+Sync.swift) - Server rollback detection (lines 229-241)
-
-#### Mobile App (Native Android)
-
-**Key files:**
-- [VaultCache.kt](../../apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/VaultCache.kt) - `clearSession()` preserves vault
-- [VaultStore.kt](../../apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/VaultStore.kt) - Exposes `clearSession()`
-- [NativeVaultManager.kt](../../apps/mobile-app/android/app/src/main/java/net/aliasvault/app/nativevaultmanager/NativeVaultManager.kt) - React Native bridge
-- [VaultSync.kt](../../apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/VaultSync.kt) - Server rollback detection (lines 117-131)
-
-#### Mobile App (React Native)
-
-**Key files:**
-- [NativeVaultManager.ts](../../apps/mobile-app/specs/NativeVaultManager.ts) - `clearSession()` spec interface
-- [AuthContext.tsx](../../apps/mobile-app/context/AuthContext.tsx) - `clearAuthUserInitiated()` vs `clearAuthForced()`
-- [AppContext.tsx](../../apps/mobile-app/context/AppContext.tsx) - `logout()` calls `clearAuthForced()`
-- [settings/index.tsx](../../apps/mobile-app/app/(tabs)/settings/index.tsx) - User-initiated logout with dirty vault warning
-- [login.tsx](../../apps/mobile-app/app/login.tsx) - Existing vault recovery check (lines 196-210)
-
----
-
-## Server Rollback Handling
-
-### Problem
-
-When server experiences data loss and recovers to an earlier revision (e.g., server at rev 95, client at rev 100), the sync logic needs to handle the `serverRevision < clientRevision` case to recover server state.
-
-### Solution
-
-Explicit handling for `serverRevision < clientRevision` case:
-
-**Behavior:**
-1. Detect server revision rollback (server is behind client)
-2. Force upload client vault to recover server state
-3. Server assigns new revision number (client's rev + 1, creating gap)
-4. Client updates local `serverRevision` to new value
-5. Log recovery event for audit trail
-
-**Why this works:**
-- Server already accepts advanced client revisions
-- Server calculates `newRevisionNumber = clientRevision + 1`
-- Creates revision gap (e.g., 95 → 101) which serves as audit trail
-- Gap is visible to admins, indicates disaster recovery event
-
-### Server Revision Assignment Logic
-
-Looking at `apps/server/AliasVault.Api/Controllers/VaultController.cs:162-170`:
-
-```csharp
-// Server calculates new revision number
-var newRevisionNumber = model.CurrentRevisionNumber + 1;
-
-// Checks if server is already ahead
-if (latestVault.RevisionNumber >= newRevisionNumber)
-{
- return Ok(new VaultUpdateResponse {
- Status = VaultStatus.Outdated,
- NewRevisionNumber = latestVault.RevisionNumber
- });
-}
-
-// Otherwise accepts and saves with calculated revision
-```
-
-**Example:**
-- Client sends `currentRevisionNumber = 100`
-- Server calculates `newRevisionNumber = 100 + 1 = 101`
-- Server checks: `latestVault.RevisionNumber (95) >= 101`? **NO**
-- Server accepts and saves as **revision 101** ✅
-- Creates gap: 95 → 101 (revisions 96-100 missing from server history)
-
-**Why gap is acceptable:**
-- Provides audit trail of disaster recovery event
-- Server history is admin-only, not shared with clients
-- Clients only care about latest revision
-- Gap timestamp shows when recovery occurred
-
-### Implementation
-
-All platforms detect server rollback (`serverRevision < clientRevision`) and automatically upload to recover server state:
-
-- **Browser Extension**: [useVaultSync.ts](../../apps/browser-extension/src/entrypoints/popup/hooks/useVaultSync.ts) (lines 288-329)
-- **Android**: [VaultSync.kt](../../apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/VaultSync.kt) (lines 117-131)
-- **iOS**: [VaultStore+Sync.swift](../../apps/mobile-app/ios/VaultStoreKit/VaultStore+Sync.swift) (lines 229-241)
-
----
-
-## Testing Checklist
-
-### Vault Preservation on Forced Logout
-
-**Test Cases:**
-
-- [ ] **User logout (clean vault)**
- - Vault has no unsynced changes
- - Click logout button in Settings
- - Expected: Normal confirmation dialog, vault cleared after logout
-
-- [ ] **User logout (dirty vault, cancel)**
- - Make local change (vault becomes dirty - indicator shows)
- - Click logout button in Settings
- - Expected: Warning dialog appears about unsynced changes
- - Click "Cancel"
- - Expected: Logout aborted, still logged in, vault preserved
-
-- [ ] **User logout (dirty vault, confirm)**
- - Make local change (vault becomes dirty)
- - Click logout button in Settings
- - Expected: Warning dialog appears
- - Click "Log out anyway"
- - Expected: Vault cleared, logged out
-
-- [ ] **Forced logout (password unchanged)**
- - Simulate 401 response (e.g., revoke tokens on server)
- - Expected: Vault data preserved on device
- - Login with same username and password
- - Expected: Existing vault loaded, sync resumes normally
-
-- [ ] **Forced logout (password changed)**
- - Change password on another device
- - First device receives 401
- - Expected: Vault data preserved (encrypted)
- - Login with new password
- - Expected: Old vault can't decrypt → Use server vault instead
-
-- [ ] **Forced logout + server rollback**
- - Client at rev 100, server recovers to rev 95
- - Forced logout due to token expiry
- - Expected: Vault preserved with rev 100
- - Login
- - Expected: Local vault (rev 100) detected as more advanced, sync uploads → server recovers to rev 101
-
-### Server Rollback Handling
-
-**Test Cases:**
-
-- [ ] **Server rollback (client clean, rev > server)**
- - Client at rev 100, isDirty=false
- - Server recovers to rev 95
- - Sync
- - Expected: Client uploads vault, server saves as rev 101
-
-- [ ] **Server rollback (client dirty, rev > server)**
- - Client at rev 100, isDirty=true
- - Server recovers to rev 95
- - Sync
- - Expected: Client uploads vault, server saves as rev 101
-
-- [ ] **Concurrent rollback recovery**
- - Client A at rev 100, Client B at rev 100
- - Server recovers to rev 95
- - Client A syncs first → Server saves as rev 101
- - Client B syncs → Server returns Outdated
- - Expected: Client B re-syncs and downloads rev 101
-
-- [ ] **Normal sync after rollback recovery**
- - Server recovered to rev 101 via client upload
- - Make local change → Client at rev 101, isDirty=true
- - Sync
- - Expected: Normal upload, server saves as rev 102
-
----
-
-## Design Decisions
-
-### Vault Preservation Strategy
-
-- Forced logout only clears session data (tokens, in-memory key)
-- Vault data remains in regular storage keys
-- On re-login, existing vault is detected and recovered through normal sync flow
-
-This approach:
-- Reduces storage complexity (no separate "orphaned" keys)
-- Leverages existing sync logic for recovery
-- Maintains single source of truth for vault data
-
-### Recovery is Transparent
-
-- No UI feedback when vault recovery happens on login
-- Recovery happens silently through normal sync process
-- Less confusing for users than explicit "recovery" messages
-
----
-
-## Related Documentation
-
-- [DATAMODEL_REFACTOR.md](./DATAMODEL_REFACTOR.md) - Vault storage architecture
-- [OFFLINE_MODE.md](./OFFLINE_MODE.md) - Offline sync behavior
-- Vault sync implementation files:
- - Browser: `apps/browser-extension/src/entrypoints/popup/hooks/useVaultSync.ts`
- - Android: `apps/mobile-app/android/app/src/main/java/net/aliasvault/app/vaultstore/VaultSync.kt`
- - iOS: `apps/mobile-app/ios/VaultStoreKit/VaultStore+Sync.swift`
diff --git a/docs/docs/contact.md b/docs/docs/contact.md
index 14ce41286..26a727c2c 100644
--- a/docs/docs/contact.md
+++ b/docs/docs/contact.md
@@ -4,8 +4,16 @@ sidebar_label: "Help and Support"
---
# Help and Support
-If you need help or have any questions about installing or using AliasVault, you can reach us on [AliasVault Discord](https://discord.gg/DsaXMTEtpF).
+We're happy to help you get the most out of AliasVault. Whether you're setting up your first self-hosted instance, running into trouble with the apps, or just want to share feedback, here's how to reach us.
-If you have found a bug or have a feature request, please open an issue on [AliasVault GitHub](https://github.com/aliasvault/aliasvault/issues).
+## Questions and help
-If you have any other questions or feedback, please visit the contact page on the [AliasVault website](https://aliasvault.net/contact).
+If you need help or have any questions about installing or using AliasVault, the quickest way to get a response is to join our community on [Discord](https://discord.gg/DsaXMTEtpF). You'll find other users and the maintainers there, and it's the best place to ask setup and usage questions.
+
+## Bugs and feature requests
+
+If you've found a bug or have an idea for a new feature, please open an issue on [GitHub](https://github.com/aliasvault/aliasvault/issues). Including as much detail as possible (your setup, steps to reproduce, and any relevant logs) helps us look into it faster.
+
+## Anything else
+
+For any other questions or feedback, you can reach out through the contact page on the [AliasVault website](https://aliasvault.net/contact).
diff --git a/docs/docs/misc/dev/_category_.json b/docs/docs/contributing/development/_category_.json
similarity index 63%
rename from docs/docs/misc/dev/_category_.json
rename to docs/docs/contributing/development/_category_.json
index 716d39ab4..a7eccd6d6 100644
--- a/docs/docs/misc/dev/_category_.json
+++ b/docs/docs/contributing/development/_category_.json
@@ -1,4 +1,4 @@
{
"label": "Development",
- "position": 99
+ "position": 4
}
diff --git a/docs/docs/misc/dev/browser-extensions.md b/docs/docs/contributing/development/browser-extensions.md
similarity index 74%
rename from docs/docs/misc/dev/browser-extensions.md
rename to docs/docs/contributing/development/browser-extensions.md
index 6f51dad36..2b239493e 100644
--- a/docs/docs/misc/dev/browser-extensions.md
+++ b/docs/docs/contributing/development/browser-extensions.md
@@ -3,7 +3,7 @@ sidebar_position: 3
sidebar_label: "Browser extensions"
---
# Browser extensions
-AliasVault offers browser extensions compatible with both Chrome and Firefox. This guide explains how to build and debug the extensions locally.
+AliasVault offers browser extensions compatible with Chrome, Firefox, Edge and Safari. This guide explains how to build and debug the extensions locally.
## Development Setup
The browser extensions are built using:
@@ -84,15 +84,38 @@ npm run build:safari
3. The extension will be installed automatically in Safari. Follow the on-screen MacOS app instructions to complete the installation.
## Automatic tests
-The extension has a suite of automatic tests that are run on every pull request. These tests are located in the `__tests__` directories scattered throughout the browser extension codebase.
+The extension has two suites of automatic tests that run on every pull request: unit tests and end-to-end (E2E) tests.
-### Run the tests
-To run the tests locally, you can use the `npm run test` command. This will run all tests.
+### Unit tests
+The unit tests live in the `__tests__` directories scattered throughout the browser extension codebase and run in isolation (no API or browser required). They're powered by [Vitest](https://vitest.dev/).
```bash
+# Run the full unit test suite
npm run test
```
+### End-to-end tests
+The E2E tests live in `tests/e2e/` and use [Playwright](https://playwright.dev/) to drive a real Chrome build of the extension. Unlike the unit tests, **they require a local AliasVault API to be running**, since the tests create a test user and exercise the full login/autofill flow against it.
+
+1. Start the dev API locally first (see [Development setup](development-setup.md#running-the-apps)):
+
+```bash
+./scripts/dev.sh db-start
+./scripts/dev.sh api
+```
+
+2. Run the E2E suite. This builds the Chrome extension into `dist/chrome-mv3` and runs Playwright against it:
+
+```bash
+npm run test:e2e:build
+```
+
+If you've already built the extension and just want to re-run the specs (or a single one), call Playwright directly:
+
+```bash
+npm run test:e2e -- <spec-name>
+```
+
## Manual tests
In order to test for client side issues, here is a list of public websites that have caused issues in the past and can be used to test whether the extension is (still) working correctly.
diff --git a/docs/docs/contributing/development/development-setup.md b/docs/docs/contributing/development/development-setup.md
new file mode 100644
index 000000000..ea66b4c7c
--- /dev/null
+++ b/docs/docs/contributing/development/development-setup.md
@@ -0,0 +1,81 @@
+---
+sidebar_position: 1
+sidebar_label: "Development setup"
+---
+# Development setup
+
+How to run AliasVault from source.
+
+:::note Windows users
+Note for Windows users: the AliasVault development tooling is built around Linux and bash scripts (e.g. `./scripts/dev.sh`), so some commands may need to be altered for it to work on Windows. We also advise using **WSL** (Windows Subsystem for Linux).
+:::
+
+## Prerequisites
+
+- **.NET 10 SDK**: https://dotnet.microsoft.com/download/dotnet/10.0
+- **Docker Desktop**
+- **`dotnet-ef`** tools, if you'll touch the database: `dotnet tool install --global dotnet-ef`
+- **Rust** The AliasVault apps depend on the Rust core, which needs to be compiled locally. Install [rustup](https://rustup.rs), then `rustup target add wasm32-unknown-unknown` and `cargo install wasm-pack`. Build the core with `./core/rust/build.sh --browser`.
+
+## Running the apps
+
+`./scripts/dev.sh` is the single entry point for local development. It starts the
+dev database and runs each app from source on a consistent, preconfigured set of
+ports (so the apps always find each other). Each invocation starts one app, so use
+a terminal per app (or the VS Code tasks, which fan out one call per app):
+
+```bash
+./scripts/dev.sh db-start # start the dev database first (db-stop to stop it)
+./scripts/dev.sh api # the API
+./scripts/dev.sh client # the Blazor client (writes its dev appsettings for you)
+./scripts/dev.sh admin # the admin web app
+./scripts/dev.sh # no argument → interactive menu
+./scripts/dev.sh ports # print the resolved port map (defaults: API 5100, db 5109)
+```
+
+You can also run an individual project from your IDE; `./scripts/dev.sh ports`
+shows which ports it expects.
+
+### Tailwind CSS
+
+The Admin and Client projects compile their CSS with Tailwind:
+
+```bash
+cd apps/server/AliasVault.Admin && npm run build:admin-css
+cd apps/server/AliasVault.Client && npm run build:client-css
+```
+
+### Dev client settings
+
+`./scripts/dev.sh client` generates `wwwroot/appsettings.Development.json` with the
+correct `ApiUrl` for your ports automatically. Only create it manually if you run
+the client some other way:
+
+```json
+{
+ "ApiUrl": "http://localhost:5100",
+ "PrivateEmailDomains": ["example.tld"],
+ "SupportEmail": "[email protected]",
+ "UseDebugEncryptionKey": "true",
+ "CryptographyOverrideType": "Argon2Id",
+ "CryptographyOverrideSettings": "{\"DegreeOfParallelism\":1,\"MemorySize\":1024,\"Iterations\":1}"
+}
+```
+
+### E2E tests (Playwright)
+
+```bash
+dotnet tool install --global Microsoft.Playwright.CLI
+pwsh apps/server/Tests/AliasVault.E2ETests/bin/Debug/net10.0/playwright.ps1 install
+```
+
+## Troubleshooting
+
+- **Database**: check it's up with `docker ps | grep postgres-dev`, view logs with
+ `docker logs aliasvault-dev-postgres-dev-1`, or restart with
+ `./scripts/dev.sh db-stop && ./scripts/dev.sh db-start`.
+- **Port conflicts**: run `./scripts/dev.sh ports` to see what's in use. If a port is
+ taken, bump `AV_INSTANCE` in `dev.env` to shift the whole block.
+- **WSL (Windows)**: if Postgres hits permission errors on first start, fix the data
+ dir with `sudo chown -R 999:999 ./database/postgres && sudo chmod -R 700 ./database/postgres`.
+ Reset WSL itself with `wsl --update` / `wsl --shutdown`.
diff --git a/docs/docs/contributing/development/index.md b/docs/docs/contributing/development/index.md
new file mode 100644
index 000000000..64dd27d38
--- /dev/null
+++ b/docs/docs/contributing/development/index.md
@@ -0,0 +1,19 @@
+---
+sidebar_position: 1
+---
+# Development Guide
+
+This section covers what you need to work on AliasVault itself. It assumes you're
+already comfortable with the relevant frameworks (.NET, React / [WXT](https://wxt.dev/)
+for the browser extension, [Expo](https://docs.expo.dev/) / React Native for the
+mobile apps, and Docker).
+
+## Environment setup
+
+- [Development setup](development-setup.md) (Linux / macOS, or Windows via WSL)
+
+## Working on the apps
+
+- [Server & web app](server-webapp.md)
+- [Browser extensions](browser-extensions.md)
+- [Mobile apps](mobile-apps/index.md)
diff --git a/docs/docs/misc/dev/mobile-apps/_category_.json b/docs/docs/contributing/development/mobile-apps/_category_.json
similarity index 100%
rename from docs/docs/misc/dev/mobile-apps/_category_.json
rename to docs/docs/contributing/development/mobile-apps/_category_.json
diff --git a/docs/docs/contributing/development/mobile-apps/android.md b/docs/docs/contributing/development/mobile-apps/android.md
new file mode 100644
index 000000000..0582ae19a
--- /dev/null
+++ b/docs/docs/contributing/development/mobile-apps/android.md
@@ -0,0 +1,40 @@
+---
+sidebar_position: 1
+sidebar_label: "Android"
+---
+# Android
+
+Android-specific notes for the React Native AliasVault app. This assumes a working
+Android dev setup (Android Studio, JDK 17, and the NDK installed via *SDK Tools →
+NDK (Side by side)*).
+
+## Test on a real device
+
+To run in debug mode on a physical device, forward the Metro bundler port,
+otherwise you'll hit an Expo bundler error:
+
+```bash
+adb reverse tcp:8081 tcp:8081
+```
+
+## Unit tests
+
+The Android project has unit tests for the native Kotlin `VaultStore`, which
+handles vault encryption/decryption, owns the SQLite client, and proxies all
+queries from the React Native and autofill components.
+
+```bash
+./gradlew :app:testDebugUnitTest --tests "net.aliasvault.app.*"
+```
+
+You can also open the project in Android Studio and run/debug individual tests in
+`VaultStoreTest.kt`.
+
+## Linting
+
+Linting runs automatically during a normal build; to run it manually:
+
+```bash
+./gradlew lintCheck # check
+./gradlew lintFormat # auto-fix where possible
+```
diff --git a/docs/docs/contributing/development/mobile-apps/index.md b/docs/docs/contributing/development/mobile-apps/index.md
new file mode 100644
index 000000000..5eba4d7fa
--- /dev/null
+++ b/docs/docs/contributing/development/mobile-apps/index.md
@@ -0,0 +1,34 @@
+---
+sidebar_position: 4
+---
+# Mobile apps
+
+The AliasVault mobile apps are built with [Expo](https://docs.expo.dev/) /
+React Native. Standard Expo workflow applies (`npx expo run:ios` /
+`run:android`); this section only covers the AliasVault-specific pieces. See also
+the platform notes for [Android](android.md) and [iOS](ios/index.md).
+
+## Native Turbo Module: VaultManager
+
+The app implements its native `VaultManager` as a React Native
+[Turbo Module](https://reactnative.dev/docs/the-new-architecture/pillars-turbo-modules),
+so the vault and encryption key can be stored on the native side using low-level
+secure keychain storage.
+
+To change the native interface, edit the spec at `specs/NativeVaultManager.ts`,
+then regenerate the codegen artifacts and implement the new/changed methods in the
+native code (`ios/NativeVaultManager` for iOS).
+
+### Regenerate the spec
+
+**iOS**: from the mobile-app root (not the `ios/` directory, which can error):
+
+```bash
+npx pod-install
+```
+
+**Android**: from the `mobile-app/android` directory:
+
+```bash
+./gradlew generateCodegenArtifactsFromSchema
+```
diff --git a/docs/docs/misc/dev/mobile-apps/ios/_category_.json b/docs/docs/contributing/development/mobile-apps/ios/_category_.json
similarity index 100%
rename from docs/docs/misc/dev/mobile-apps/ios/_category_.json
rename to docs/docs/contributing/development/mobile-apps/ios/_category_.json
diff --git a/docs/docs/misc/dev/mobile-apps/ios/e2e-testing.md b/docs/docs/contributing/development/mobile-apps/ios/e2e-testing.md
similarity index 98%
rename from docs/docs/misc/dev/mobile-apps/ios/e2e-testing.md
rename to docs/docs/contributing/development/mobile-apps/ios/e2e-testing.md
index 9dd3be4f6..a8c122aaa 100644
--- a/docs/docs/misc/dev/mobile-apps/ios/e2e-testing.md
+++ b/docs/docs/contributing/development/mobile-apps/ios/e2e-testing.md
@@ -31,7 +31,7 @@ The iOS app has two test targets:
open AliasVault.xcworkspace
```
-2. Select a simulator (e.g., iPhone 16 Pro)
+2. Select a simulator (e.g., iPhone 17 Pro)
3. Run tests:
- **All tests**: `Cmd + U` or Product > Test
diff --git a/docs/docs/misc/dev/mobile-apps/ios/index.md b/docs/docs/contributing/development/mobile-apps/ios/index.md
similarity index 100%
rename from docs/docs/misc/dev/mobile-apps/ios/index.md
rename to docs/docs/contributing/development/mobile-apps/ios/index.md
diff --git a/docs/docs/contributing/development/server-webapp.md b/docs/docs/contributing/development/server-webapp.md
new file mode 100644
index 000000000..35a6a9758
--- /dev/null
+++ b/docs/docs/contributing/development/server-webapp.md
@@ -0,0 +1,22 @@
+---
+sidebar_position: 2
+sidebar_label: "Server & web app"
+---
+# Server & web app
+
+The AliasVault server (the API, the Admin app and the web app/client) is built entirely with [.NET 10](https://dotnet.microsoft.com/) and [Blazor WebAssembly](https://learn.microsoft.com/aspnet/core/blazor/).
+
+You can open the .NET solution in [Visual Studio 2026+](https://visualstudio.microsoft.com/), [Visual Studio Code](https://code.visualstudio.com/) or [JetBrains Rider](https://www.jetbrains.com/rider/) and work on it like any other .NET project.
+
+## Running it locally
+
+The recommended way to run the server apps from source is via `./scripts/dev.sh`, which starts each app on a consistent set of ports. See the [Development setup](development-setup.md#running-the-apps) guide for the full workflow:
+
+```bash
+./scripts/dev.sh db-start # start the dev database
+./scripts/dev.sh api # the API
+./scripts/dev.sh client # the Blazor WASM web app
+./scripts/dev.sh admin # the Admin app
+```
+
+You can also run or debug any of these projects directly from your IDE; run `./scripts/dev.sh ports` to see which ports each one expects.
diff --git a/docs/docs/contributing/identity-generator.md b/docs/docs/contributing/identity-generator.md
index 238ec8634..dcb15c228 100644
--- a/docs/docs/contributing/identity-generator.md
+++ b/docs/docs/contributing/identity-generator.md
@@ -1,5 +1,5 @@
---
-sidebar_position: 2
+sidebar_position: 3
sidebar_label: "Identity Generator"
---
# Identity Generator Translations
diff --git a/docs/docs/contributing/index.md b/docs/docs/contributing/index.md
index d3c328fe8..065dcdffa 100644
--- a/docs/docs/contributing/index.md
+++ b/docs/docs/contributing/index.md
@@ -1,5 +1,5 @@
---
-sidebar_position: 8
+sidebar_position: 1
---
# Contributing to AliasVault
@@ -54,6 +54,10 @@ Help improve our documentation:
- Improve translations
### 💻 Code Contributions
-Check the [CONTRIBUTING.md](https://github.com/aliasvault/aliasvault/blob/main/CONTRIBUTING.md) for guidelines.
+
+See the [Development](development/index.md) guide for setting up a local
+environment and working on the apps, and the
+[CONTRIBUTING.md](https://github.com/aliasvault/aliasvault/blob/main/CONTRIBUTING.md)
+for contribution guidelines.
**Thank you for making AliasVault better!** 🙏
diff --git a/docs/docs/contributing/ui-translations.md b/docs/docs/contributing/ui-translations.md
index 317e7305e..71d42b67f 100644
--- a/docs/docs/contributing/ui-translations.md
+++ b/docs/docs/contributing/ui-translations.md
@@ -1,5 +1,5 @@
---
-sidebar_position: 1
+sidebar_position: 2
sidebar_label: "UI Translations"
---
# UI Translations
diff --git a/docs/docs/browser-extensions/_category_.json b/docs/docs/installation/browser-extensions/_category_.json
similarity index 69%
rename from docs/docs/browser-extensions/_category_.json
rename to docs/docs/installation/browser-extensions/_category_.json
index 5e0fcc6dd..4f799b60f 100644
--- a/docs/docs/browser-extensions/_category_.json
+++ b/docs/docs/installation/browser-extensions/_category_.json
@@ -1,4 +1,4 @@
{
"label": "Browser Extensions",
- "position": 3
+ "position": 5
}
diff --git a/docs/docs/browser-extensions/chrome/_category_.json b/docs/docs/installation/browser-extensions/chrome/_category_.json
similarity index 100%
rename from docs/docs/browser-extensions/chrome/_category_.json
rename to docs/docs/installation/browser-extensions/chrome/_category_.json
diff --git a/docs/docs/browser-extensions/chrome/build-from-source.md b/docs/docs/installation/browser-extensions/chrome/build-from-source.md
similarity index 90%
rename from docs/docs/browser-extensions/chrome/build-from-source.md
rename to docs/docs/installation/browser-extensions/chrome/build-from-source.md
index 2ad93003e..b3912c6a4 100644
--- a/docs/docs/browser-extensions/chrome/build-from-source.md
+++ b/docs/docs/installation/browser-extensions/chrome/build-from-source.md
@@ -43,4 +43,4 @@ npm run build:chrome
## Development Mode (Optional)
-If you plan to modify the extension code, see the [browser-extensions](../../misc/dev/browser-extensions.md) developer documentation for more information.
+If you plan to modify the extension code, see the [browser-extensions](../../../contributing/development/browser-extensions.md) developer documentation for more information.
diff --git a/docs/docs/browser-extensions/chrome/index.md b/docs/docs/installation/browser-extensions/chrome/index.md
similarity index 100%
rename from docs/docs/browser-extensions/chrome/index.md
rename to docs/docs/installation/browser-extensions/chrome/index.md
diff --git a/docs/docs/browser-extensions/edge/_category_.json b/docs/docs/installation/browser-extensions/edge/_category_.json
similarity index 100%
rename from docs/docs/browser-extensions/edge/_category_.json
rename to docs/docs/installation/browser-extensions/edge/_category_.json
diff --git a/docs/docs/browser-extensions/edge/build-from-source.md b/docs/docs/installation/browser-extensions/edge/build-from-source.md
similarity index 90%
rename from docs/docs/browser-extensions/edge/build-from-source.md
rename to docs/docs/installation/browser-extensions/edge/build-from-source.md
index 7a6ce1653..f046863bc 100644
--- a/docs/docs/browser-extensions/edge/build-from-source.md
+++ b/docs/docs/installation/browser-extensions/edge/build-from-source.md
@@ -43,4 +43,4 @@ npm run build:edge
## Development Mode (Optional)
-If you plan to modify the extension code, see the [browser-extensions](../../misc/dev/browser-extensions.md) developer documentation for more information.
+If you plan to modify the extension code, see the [browser-extensions](../../../contributing/development/browser-extensions.md) developer documentation for more information.
diff --git a/docs/docs/browser-extensions/edge/index.md b/docs/docs/installation/browser-extensions/edge/index.md
similarity index 100%
rename from docs/docs/browser-extensions/edge/index.md
rename to docs/docs/installation/browser-extensions/edge/index.md
diff --git a/docs/docs/browser-extensions/firefox/_category_.json b/docs/docs/installation/browser-extensions/firefox/_category_.json
similarity index 100%
rename from docs/docs/browser-extensions/firefox/_category_.json
rename to docs/docs/installation/browser-extensions/firefox/_category_.json
diff --git a/docs/docs/browser-extensions/firefox/build-from-source.md b/docs/docs/installation/browser-extensions/firefox/build-from-source.md
similarity index 90%
rename from docs/docs/browser-extensions/firefox/build-from-source.md
rename to docs/docs/installation/browser-extensions/firefox/build-from-source.md
index bc9dbe3df..646cf6fd4 100644
--- a/docs/docs/browser-extensions/firefox/build-from-source.md
+++ b/docs/docs/installation/browser-extensions/firefox/build-from-source.md
@@ -43,4 +43,4 @@ npm run build:firefox
## Development Mode (Optional)
-If you plan to modify the extension code, see the [browser-extensions](../../misc/dev/browser-extensions.md) developer documentation for more information.
+If you plan to modify the extension code, see the [browser-extensions](../../../contributing/development/browser-extensions.md) developer documentation for more information.
diff --git a/docs/docs/browser-extensions/firefox/index.md b/docs/docs/installation/browser-extensions/firefox/index.md
similarity index 100%
rename from docs/docs/browser-extensions/firefox/index.md
rename to docs/docs/installation/browser-extensions/firefox/index.md
diff --git a/docs/docs/browser-extensions/index.md b/docs/docs/installation/browser-extensions/index.md
similarity index 97%
rename from docs/docs/browser-extensions/index.md
rename to docs/docs/installation/browser-extensions/index.md
index bc9d69a0d..d51c7eac5 100644
--- a/docs/docs/browser-extensions/index.md
+++ b/docs/docs/installation/browser-extensions/index.md
@@ -1,5 +1,6 @@
---
sidebar_position: 3
+sidebar_label: "Overview"
---
# Browser Extensions
diff --git a/docs/docs/browser-extensions/safari/_category_.json b/docs/docs/installation/browser-extensions/safari/_category_.json
similarity index 100%
rename from docs/docs/browser-extensions/safari/_category_.json
rename to docs/docs/installation/browser-extensions/safari/_category_.json
diff --git a/docs/docs/browser-extensions/safari/build-from-source.md b/docs/docs/installation/browser-extensions/safari/build-from-source.md
similarity index 92%
rename from docs/docs/browser-extensions/safari/build-from-source.md
rename to docs/docs/installation/browser-extensions/safari/build-from-source.md
index 6fb0d00a0..0845820c4 100644
--- a/docs/docs/browser-extensions/safari/build-from-source.md
+++ b/docs/docs/installation/browser-extensions/safari/build-from-source.md
@@ -46,4 +46,4 @@ npm run build:safari
## Development Mode (Optional)
-If you plan to modify the extension code, see the [browser-extensions](../../misc/dev/browser-extensions.md) developer documentation for more information.
+If you plan to modify the extension code, see the [browser-extensions](../../../contributing/development/browser-extensions.md) developer documentation for more information.
diff --git a/docs/docs/browser-extensions/safari/index.md b/docs/docs/installation/browser-extensions/safari/index.md
similarity index 100%
rename from docs/docs/browser-extensions/safari/index.md
rename to docs/docs/installation/browser-extensions/safari/index.md
diff --git a/docs/docs/installation/docker-compose/_category_.json b/docs/docs/installation/docker-compose/_category_.json
index 2c5e3ef43..7575ee548 100644
--- a/docs/docs/installation/docker-compose/_category_.json
+++ b/docs/docs/installation/docker-compose/_category_.json
@@ -1,4 +1,4 @@
{
"label": "Docker Compose",
- "position": 2
+ "position": 3
}
diff --git a/docs/docs/installation/docker-compose/index.md b/docs/docs/installation/docker-compose/index.md
index a9fb83344..059114c85 100644
--- a/docs/docs/installation/docker-compose/index.md
+++ b/docs/docs/installation/docker-compose/index.md
@@ -1,5 +1,6 @@
---
sidebar_position: 2
+sidebar_label: "Overview"
---
# Self-host using Docker Compose (single container)
The following guide will walk you through the steps to install AliasVault via the All-In-One Docker container. This container uses `s6-overlay` to combine all AliasVault's services into one image for convenience. The only downside compared to the `install.sh` installer is that this version does NOT come with SSL/TLS support, so you'll have to make the container available through your own SSL/TLS proxy.
@@ -80,7 +81,7 @@ AliasVault includes a built-in email server that allows you to generate email al
:::note
If you skip this step, AliasVault will default to use public email domains offered by SpamOK. While this still works for creating aliases, it has privacy limitations. For complete privacy and control, we recommend setting up your own domain.
-[Learn more about the differences between private and public email domains](../../misc/private-vs-public-email.md).
+[Learn more about the differences between private and public email domains](../private-vs-public-email.md).
:::
### Requirements
diff --git a/docs/docs/installation/index.md b/docs/docs/installation/index.md
index 119c16cf0..707dcecec 100644
--- a/docs/docs/installation/index.md
+++ b/docs/docs/installation/index.md
@@ -1,5 +1,5 @@
---
-sidebar_position: 2
+sidebar_position: 1
---
# Self-host Install
@@ -45,9 +45,8 @@ If you prefer manual setup and **have existing SSL infrastructure**, use the all
## Frequently Asked Questions
-<details style="margin-bottom: 10px;">
-<summary style="background-color: #4a5568; color: #ffffff; padding: 10px; border-radius: 5px; cursor: pointer;">What's the difference between multi-container and single container?</summary>
-<div style="background-color: #2d3748; color: #ffffff; padding: 15px; border-left: 3px solid #4299e1;" markdown="1">
+<details>
+<summary>What's the difference between multi-container and single container?</summary>
| **Multi-container (Installer Script)** | **Single container (Manual Setup)** |
|----------------------------------------|-------------------------------------|
@@ -56,43 +55,35 @@ If you prefer manual setup and **have existing SSL infrastructure**, use the all
| Uses docker-compose for orchestration | Lower resource overhead |
| Better for production deployments | Better for home labs and personal use |
-</div>
</details>
-<details style="margin-bottom: 10px;">
-<summary style="background-color: #4a5568; color: #ffffff; padding: 10px; border-radius: 5px; cursor: pointer;">Do I need to handle SSL/TLS certificates myself?</summary>
-<div style="background-color: #2d3748; color: #ffffff; padding: 15px; border-left: 3px solid #4299e1;" markdown="1">
+<details>
+<summary>Do I need to handle SSL/TLS certificates myself?</summary>
- **Installer Script**: No, it includes automatic Let's Encrypt certificates
- **Manual Setup**: Yes, you need your own reverse proxy for HTTPS
-</div>
</details>
-<details style="margin-bottom: 10px;">
-<summary style="background-color: #4a5568; color: #ffffff; padding: 10px; border-radius: 5px; cursor: pointer;">How do updates work?</summary>
-<div style="background-color: #2d3748; color: #ffffff; padding: 15px; border-left: 3px solid #4299e1;" markdown="1">
+<details>
+<summary>How do updates work?</summary>
| Method | Update Process |
|--------|---------------|
| **Installer Script** | Run `./install.sh update` for automated updates and migrations |
| **Manual Setup** | Use `docker pull` to get the latest image; manual migrations may be required |
-</div>
</details>
-<details style="margin-bottom: 10px;">
-<summary style="background-color: #4a5568; color: #ffffff; padding: 10px; border-radius: 5px; cursor: pointer;">Can I migrate between installation methods?</summary>
-<div style="background-color: #2d3748; color: #ffffff; padding: 15px; border-left: 3px solid #4299e1;" markdown="1">
+<details>
+<summary>Can I migrate between installation methods?</summary>
Yes! Both methods use the same bind mount directories (`/database`, `/certificates`, `/logs`, `/secrets`), making migration straightforward. Simply stop/uninstall via one method and follow the installation steps for the other - your data will be preserved.
-</div>
</details>
-<details style="margin-bottom: 10px;">
-<summary style="background-color: #4a5568; color: #ffffff; padding: 10px; border-radius: 5px; cursor: pointer;">What are the system requirements?</summary>
-<div style="background-color: #2d3748; color: #ffffff; padding: 15px; border-left: 3px solid #4299e1;" markdown="1">
+<details>
+<summary>What are the system requirements?</summary>
**Minimum requirements:**
- 64-bit Linux OS (Ubuntu or RHEL-based recommended)
@@ -103,15 +94,12 @@ Yes! Both methods use the same bind mount directories (`/database`, `/certificat
- Ports 80 and 443 available
- Optional: Ports 25 and 587 for private email domains
-</div>
</details>
-<details style="margin-bottom: 10px;">
-<summary style="background-color: #4a5568; color: #ffffff; padding: 10px; border-radius: 5px; cursor: pointer;">Can I build from source?</summary>
-<div style="background-color: #2d3748; color: #ffffff; padding: 15px; border-left: 3px solid #4299e1;" markdown="1">
+<details>
+<summary>Can I build from source?</summary>
- **Installer Script**: Yes, optional build from source is supported
- **Manual Setup**: No, uses pre-built container images only
-</div>
</details>
diff --git a/docs/docs/mobile-apps/_category_.json b/docs/docs/installation/mobile-apps/_category_.json
similarity index 65%
rename from docs/docs/mobile-apps/_category_.json
rename to docs/docs/installation/mobile-apps/_category_.json
index ce97946ab..7ad56b0cb 100644
--- a/docs/docs/mobile-apps/_category_.json
+++ b/docs/docs/installation/mobile-apps/_category_.json
@@ -1,4 +1,4 @@
{
"label": "Mobile Apps",
- "position": 4
+ "position": 6
}
diff --git a/docs/docs/mobile-apps/android/_category_.json b/docs/docs/installation/mobile-apps/android/_category_.json
similarity index 100%
rename from docs/docs/mobile-apps/android/_category_.json
rename to docs/docs/installation/mobile-apps/android/_category_.json
diff --git a/docs/docs/mobile-apps/android/autofill.md b/docs/docs/installation/mobile-apps/android/autofill.md
similarity index 100%
rename from docs/docs/mobile-apps/android/autofill.md
rename to docs/docs/installation/mobile-apps/android/autofill.md
diff --git a/docs/docs/mobile-apps/android/build-from-source.md b/docs/docs/installation/mobile-apps/android/build-from-source.md
similarity index 100%
rename from docs/docs/mobile-apps/android/build-from-source.md
rename to docs/docs/installation/mobile-apps/android/build-from-source.md
diff --git a/docs/docs/installation/mobile-apps/android/index.md b/docs/docs/installation/mobile-apps/android/index.md
new file mode 100644
index 000000000..2e7564f85
--- /dev/null
+++ b/docs/docs/installation/mobile-apps/android/index.md
@@ -0,0 +1,27 @@
+---
+sidebar_position: 1
+---
+# Android app
+You can install the AliasVault Android app from several sources. Pick whichever you prefer:
+
+## Download from Google Play
+1. Go to the [Google Play Store](https://play.google.com/store/apps/details?id=net.aliasvault.app)
+2. Click on the "Install" button
+3. The app will be installed. Open the app and follow the instructions.
+
+## Download from F-Droid
+[F-Droid](https://f-droid.org) is an open-source app store. The AliasVault build there is compiled from source by F-Droid and contains no proprietary dependencies.
+
+1. Open the [AliasVault page on F-Droid](https://f-droid.org/packages/net.aliasvault.app/) (the [F-Droid client](https://f-droid.org/#what-is-fdroid) is recommended for automatic updates)
+2. Tap "Install"
+3. Open the app and follow the instructions.
+
+## Get it on Obtainium
+[Obtainium](https://obtainium.imranr.dev) lets you install and auto-update apps directly from their GitHub releases. The link below pre-fills the AliasVault app configuration:
+
+<a href="https://apps.obtainium.imranr.dev/redirect?r=obtainium://app/{%22id%22:%22net.aliasvault.app%22,%22url%22:%22https://github.com/aliasvault/aliasvault%22,%22author%22:%22AliasVault%22,%22name%22:%22AliasVault%22,%22additionalSettings%22:%22{\%22about\%22:\%22Privacy-first%20Password%20Manager%20with%20Built-in%20Email%20Aliasing.\%22}%22}">Add AliasVault to Obtainium</a>
+
+This requires the [Obtainium app](https://github.com/ImranR98/Obtainium) to be installed. Once added, Obtainium will install the APK from the [AliasVault GitHub releases](https://github.com/aliasvault/aliasvault/releases) and notify you of future updates.
+
+## Build from Source
+If you wish to install the mobile app from source instead, see the [build-from-source](build-from-source.md) documentation. This will allow you to make changes to the mobile app and/or to use a specific version of the mobile app.
\ No newline at end of file
diff --git a/docs/docs/mobile-apps/android/ssl-setup.md b/docs/docs/installation/mobile-apps/android/ssl-setup.md
similarity index 100%
rename from docs/docs/mobile-apps/android/ssl-setup.md
rename to docs/docs/installation/mobile-apps/android/ssl-setup.md
diff --git a/docs/docs/mobile-apps/index.md b/docs/docs/installation/mobile-apps/index.md
similarity index 67%
rename from docs/docs/mobile-apps/index.md
rename to docs/docs/installation/mobile-apps/index.md
index 851f327bc..6eb0fa8e7 100644
--- a/docs/docs/mobile-apps/index.md
+++ b/docs/docs/installation/mobile-apps/index.md
@@ -1,5 +1,6 @@
---
sidebar_position: 4
+sidebar_label: "Overview"
---
# Mobile Apps
@@ -15,4 +16,7 @@ You can use the AliasVault mobile apps to:
The AliasVault mobile apps work with both the official cloud hosted version of AliasVault but also the self-hosted version.
## Supported Platforms
-Click on one of the available mobile app platforms below to get started with the installation process.
+AliasVault is available on the following mobile platforms. Follow the link for your platform to get started with the installation process:
+
+- [iOS app](./ios/index.md): download from the App Store or build from source
+- [Android app](./android/index.md): download from Google Play or build from source
diff --git a/docs/docs/mobile-apps/ios/_category_.json b/docs/docs/installation/mobile-apps/ios/_category_.json
similarity index 100%
rename from docs/docs/mobile-apps/ios/_category_.json
rename to docs/docs/installation/mobile-apps/ios/_category_.json
diff --git a/docs/docs/mobile-apps/ios/build-from-source.md b/docs/docs/installation/mobile-apps/ios/build-from-source.md
similarity index 100%
rename from docs/docs/mobile-apps/ios/build-from-source.md
rename to docs/docs/installation/mobile-apps/ios/build-from-source.md
diff --git a/docs/docs/mobile-apps/ios/index.md b/docs/docs/installation/mobile-apps/ios/index.md
similarity index 100%
rename from docs/docs/mobile-apps/ios/index.md
rename to docs/docs/installation/mobile-apps/ios/index.md
diff --git a/docs/docs/mobile-apps/ios/ssl-setup.md b/docs/docs/installation/mobile-apps/ios/ssl-setup.md
similarity index 100%
rename from docs/docs/mobile-apps/ios/ssl-setup.md
rename to docs/docs/installation/mobile-apps/ios/ssl-setup.md
diff --git a/docs/docs/misc/private-vs-public-email.md b/docs/docs/installation/private-vs-public-email.md
similarity index 100%
rename from docs/docs/misc/private-vs-public-email.md
rename to docs/docs/installation/private-vs-public-email.md
diff --git a/docs/docs/installation/script/_category_.json b/docs/docs/installation/script/_category_.json
index fb2a5a31d..03d354cdb 100644
--- a/docs/docs/installation/script/_category_.json
+++ b/docs/docs/installation/script/_category_.json
@@ -1,4 +1,4 @@
{
"label": "Install Script",
- "position": 1
+ "position": 2
}
diff --git a/docs/docs/installation/script/index.md b/docs/docs/installation/script/index.md
index 0d8472e07..34026d373 100644
--- a/docs/docs/installation/script/index.md
+++ b/docs/docs/installation/script/index.md
@@ -1,5 +1,6 @@
---
sidebar_position: 1
+sidebar_label: "Overview"
---
# Self-host using Install Script (multi-container)
The following guide will walk you through the steps to install AliasVault on your own server using the AliasVault installer script: `install.sh`. This script will pull pre-built Docker Images and do all the configuration for you while using `docker compose` in the background.
@@ -68,7 +69,7 @@ and then in the prompt choose option 2.
AliasVault includes a built-in email server that allows you to generate email aliases on-the-fly for every website you use, and receive + read the emails straight in AliasVault.
:::note
-If you skip this step, AliasVault will default to use public email domains offered by SpamOK. While this still works for creating aliases, it has privacy limitations. For complete privacy and control, we recommend setting up your own domain. [Learn more about the differences between private and public email domains](../../misc/private-vs-public-email.md).
+If you skip this step, AliasVault will default to use public email domains offered by SpamOK. While this still works for creating aliases, it has privacy limitations. For complete privacy and control, we recommend setting up your own domain. [Learn more about the differences between private and public email domains](../private-vs-public-email.md).
:::
### Requirements
diff --git a/docs/docs/misc/_category_.json b/docs/docs/misc/_category_.json
deleted file mode 100644
index a4f36955b..000000000
--- a/docs/docs/misc/_category_.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "label": "Miscellaneous",
- "position": 7
-}
diff --git a/docs/docs/misc/dev/add-new-language.md b/docs/docs/misc/dev/add-new-language.md
deleted file mode 100644
index 72f8d0c64..000000000
--- a/docs/docs/misc/dev/add-new-language.md
+++ /dev/null
@@ -1,124 +0,0 @@
----
-sidebar_position: 3
-sidebar_label: "Add new language"
----
-# Add new language
-To add a new language to AliasVault, follow these steps in order:
-
-## Step 1: Configure Crowdin Integration
-
-1. **Update crowdin.yml**: Add the new language identifier to the `crowdin.yml` file in the root of the repository
-2. **Crowdin will automatically**:
- - Fetch changes from the `main` branch
- - Offer new content for translation in the Crowdin web interface
- - Create translation files for the new language
-
-## Step 2: Web App (Blazor WASM)
-
-1. **Add language to LanguageService**: Update `apps/server/AliasVault.Client/Services/LanguageService.cs` with the new language identifier
-2. **Translation files to create (optional, Crowdin should make a PR for this automatically)**:
- - `apps/server/AliasVault.Client/wwwroot/locales/{language-code}.json`
- - `apps/server/AliasVault.Client/Resources/{language-code}.resx` files
-
-## Step 3: Browser Extension
-
-1. **Add language identifier to config**: Update `/apps/browser-extension/src/utils/i18n/config.ts` and insert new language based on existing structure
-1. **Create language file (optional, Crowdin should make a PR for this automatically)**:
- - `apps/browser-extension/src/locales/{language-code}.json`
-
-## Step 4: Mobile App - React Native
-
-1. **Add language identifier to config:** Update `/apps/mobile-app/i18n/index.ts` and insert new language based on existing structure
-2 **Create translation file (optional, Crowdin should make a PR for this automatically)**: `apps/mobile-app/i18n/locales/{language-code}.json`
-
-## Step 5: Mobile App - iOS Native
-
-**Location**: `apps/mobile-app/ios/`
-
-2. **Add language in Xcode**:
- - Open workspace in Xcode
- - Go to target "AliasVault" > Project settings "Info" > Localizations
- - Add the desired language
- - Repeat the two steps above for target "Autofill" as well.
-
-3. **Translation files to create (optional, Crowdin should make a PR for this automatically)**:
- - `AliasVault/{language-code}.lproj/Localizable.strings`
- - `AliasVault/{language-code}.lproj/InfoPlist.strings`
- - `Autofill/{language-code}.lproj/Localizable.strings`
- - `VaultUI/{language-code}.lproj/Localizable.strings`
-
-## Step 6: Mobile App - Android Native
-
-**Location**: `apps/mobile-app/android/app/src/main/res/`
-
-1. **Update locales config**: Add the language to `xml/locales_config.xml`
-2. **Create translation file (optional, Crowdin should make a PR for this automatically)**: `values-{language-code}/strings.xml`
-
-## Translation File Locations Summary
-
-### React Native mobile app:
-- `apps/mobile-app/i18n/locales/en.json`
-- `apps/mobile-app/i18n/locales/nl.json`
-
-### Browser Extension:
-- `apps/browser-extension/src/locales/en/**/*.json`
-- `apps/browser-extension/src/locales/nl/**/*.json`
-
-### Web App (Blazor WASM):
-- `apps/server/AliasVault.Client/wwwroot/locales/en.json`
-- `apps/server/AliasVault.Client/wwwroot/locales/nl.json`
-- `apps/server/AliasVault.Client/Resources/**/*.en.resx`
-- `apps/server/AliasVault.Client/Resources/**/*.nl.resx`
-
-### Android app native:
-- `apps/mobile-app/android/app/src/main/res/values/strings.xml` (default, English)
-- `apps/mobile-app/android/app/src/main/res/values-nl/strings.xml` (Dutch)
-
-### iOS app native:
-- `apps/mobile-app/ios/AliasVault/en.lproj/Localizable.strings` (default, English)
-- `apps/mobile-app/ios/AliasVault/nl.lproj/Localizable.strings` (Dutch)
-- `apps/mobile-app/ios/Autofill/en.lproj/Localizable.strings` (default, English)
-- `apps/mobile-app/ios/Autofill/nl.lproj/Localizable.strings` (Dutch)
-- `apps/mobile-app/ios/VaultUI/en.lproj/Localizable.strings` (default, English)
-- `apps/mobile-app/ios/VaultUI/nl.lproj/Localizable.strings` (Dutch)
-
-## Crowdin Integration
-
-AliasVault uses Crowdin for translation management with GitHub App integration. The project is configured with a centralized `crowdin.yml` file in the root of the repository that manages all translation files across the monorepo.
-
-The Crowdin GitHub App automatically:
-- Fetches changes from the `main` branch as soon as they become available
-- Offers new content for translation in the Crowdin web interface
-- Manages translation file synchronization across all applications
-
-Installing Crowdin CLI on MacOS for manually syncing source files:
-
-```bash
-brew tap crowdin/crowdin
-brew install crowdin@4
-brew link --force --overwrite crowdin@4
-```
-
-To test uploading of source files via CLI to detect any issues with formatting:
-
-```bash
-crowdin upload --token=[api_token] --project-id=808100
-```
-
-Example output which may indicate errors:
-
-```bash
-✔️ Directory 'apps/mobile-app/ios/Autofill'
-✔️ Directory 'apps/mobile-app/ios/Autofill/en.lproj'
-❌ File 'apps/mobile-app/ios/Autofill/en.lproj/Localizable.strings'
-❌ Wrong parameters:
-<key: type, code: callbackValue, message: Unsupported type>
-✔️ Directory 'apps/mobile-app/android'
-✔️ Directory 'apps/mobile-app/android/app'
-✔️ Directory 'apps/mobile-app/android/app/src'
-✔️ Directory 'apps/mobile-app/android/app/src/main'
-✔️ Directory 'apps/mobile-app/android/app/src/main/res'
-✔️ Directory 'apps/mobile-app/android/app/src/main/res/values'
-✔️ File 'apps/mobile-app/android/app/src/main/res/values/strings.xml'
-````
-
diff --git a/docs/docs/misc/dev/database-operations.md b/docs/docs/misc/dev/database-operations.md
deleted file mode 100644
index ddf5e2829..000000000
--- a/docs/docs/misc/dev/database-operations.md
+++ /dev/null
@@ -1,68 +0,0 @@
----
-sidebar_position: 3
-sidebar_label: "Database operations"
----
-# Database operations
-This article contains tips for how to work with the AliasVault PostgreSQL database in both production and development environments.
-
-## Using install.sh helper methods (recommended)
-The `install.sh` script contains helper methods that makes it easy to export and import databases with a simple single command.
-
-### Export database
-```bash
-./install.sh db-export > aliasvault-db-export.sql.gz
-```
-
-### Import database
-```bash
-./install.sh db-import < aliasvault-db-export.sql.gz
-```
-
-> Tip: you can also use the optional parameters `--yes` (to skip confirmation prompt) and `--verbose` (to get more output on what the operation is doing).
-
----
-
-## Using docker commands
-Instead of using the `install.sh script, you can also use manual Docker commands.
-
-### Backup database to file
-To backup the database to a file, you can use the following command:
-
-```bash
-docker compose exec postgres pg_dump -U aliasvault aliasvault | gzip > aliasvault.sql.gz
-```
-
-### Import database from file
-To drop the existing database and restore the database from a file, you can use the following command:
-
-:::warning
-Executing this command will drop the existing database and restore the database from the file. Make sure to have a backup of the existing database before running this command.
-:::
-
-```bash
-docker compose exec postgres psql -U aliasvault postgres -c "DROP DATABASE aliasvault;" && \
-docker compose exec postgres psql -U aliasvault postgres -c "CREATE DATABASE aliasvault;" && \
-gunzip < aliasvault.sql.gz | docker compose exec -iT postgres psql -U aliasvault aliasvault
-```
-
-### Change master password
-By default during initial installation the PostgreSQL master password is set to a random string that is stored in the `./secrets/postgres_password` secret file.
-
-If you wish to change the master password, you can do so by running the following command:
-
-1. Open a terminal and navigate to the root of the AliasVault repository.
-2. Run the following command to connect to the PostgreSQL container:
- ```bash
- docker compose exec -it postgres psql -U aliasvault -d aliasvault
- ```
-3. Once connected to the database, you can change the master password by running the following command:
- ```sql
- ALTER USER aliasvault WITH PASSWORD 'new_password';
- ```
-4. Press Enter to confirm the changes.
-5. Exit the PostgreSQL shell by running `\q`.
-6. Manually update the `./secrets/postgres_password` secret file contents with the new password.
-7. Restart the AliasVault containers by running the following command:
- ```bash
- docker compose restart
- ```
diff --git a/docs/docs/misc/dev/index.md b/docs/docs/misc/dev/index.md
deleted file mode 100644
index 20ea70b0c..000000000
--- a/docs/docs/misc/dev/index.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-sidebar_position: 99
----
-# Development Guide
-
-Choose your platform to get started with AliasVault development:
-
-## Platform-Specific Dev Guides
-
-- [Linux/MacOS Development Setup](linux-macos-development.md)
-- [Windows Development Setup](windows-development.md)
-
-## Common Development Topics
-
-- [Browser extensions](browser-extensions.md)
-- [Database operations](database-operations.md)
-- Running GitHub Actions Locally
-- [Upgrading EF Server Model](upgrade-ef-server-model.md)
-- [Upgrading EF Client Model](upgrade-ef-client-model.md)
-- Enabling WebAuthn PFR in Chrome
diff --git a/docs/docs/misc/dev/linux-macos-development.md b/docs/docs/misc/dev/linux-macos-development.md
deleted file mode 100644
index b4f8f2f99..000000000
--- a/docs/docs/misc/dev/linux-macos-development.md
+++ /dev/null
@@ -1,171 +0,0 @@
----
-sidebar_position: 1
-sidebar_label: "Linux/MacOS development"
----
-# Setting Up AliasVault Development Environment on Linux/MacOS
-
-This guide will help you set up AliasVault for development on Linux or MacOS systems.
-
-## Prerequisites
-
-1. **Install .NET 10 SDK**
- ```bash
- # On MacOS via brew:
- brew install --cask dotnet-sdk
-
- # On Linux:
- # Follow instructions at https://dotnet.microsoft.com/download/dotnet/10.0
- ```
-
-2. **Install Docker**
- - Follow instructions at [Docker Desktop](https://www.docker.com/products/docker-desktop)
- - For Linux, you can also use the native Docker daemon
-
-## Setup Steps
-
-1. **Clone the Repository**
- ```bash
- git clone https://github.com/aliasvault/aliasvault.git
- cd aliasvault
- ```
-
-2. **Install dotnet CLI EF Tools**
- ```bash
- # Install dotnet EF tools globally
- dotnet tool install --global dotnet-ef
-
- # Add to your shell's PATH (if not already done)
- # For bash/zsh, add to ~/.bashrc or ~/.zshrc:
- export PATH="$PATH:$HOME/.dotnet/tools"
-
- # Verify installation
- dotnet ef
- ```
-
-3. **Start the dev database**
-
- `./scripts/dev.sh` is the single entry point for local development: it starts
- the dev database and runs the apps from source on a consistent, preconfigured
- set of ports (so the apps always find each other). Run it without arguments
- for an interactive menu, or use a subcommand directly:
- ```bash
- ./scripts/dev.sh db-start # start the dev database (db-stop to stop it)
- ```
-
-4. **Run Tailwind CSS compiler**
- ```bash
- # For Admin project
- cd apps/server/AliasVault.Admin
- npm run build:admin-css
-
- # For Client project
- cd apps/server/AliasVault.Client
- npm run build:client-css
- ```
-
-5. **Install Playwright for E2E tests**
- ```bash
- # Install Playwright CLI
- dotnet tool install --global Microsoft.Playwright.CLI
-
- # Install browsers
- pwsh apps/server/Tests/AliasVault.E2ETests/bin/Debug/net10.0/playwright.ps1 install
- ```
-
-6. **Configure Development Settings**
-
- When you start the client via `./scripts/dev.sh client`, this file is generated
- automatically with the correct `ApiUrl` for your ports — you can skip this step.
- Only create `wwwroot/appsettings.Development.json` in the Client project manually
- if you run the client some other way:
- ```json
- {
- "ApiUrl": "http://localhost:5100",
- "PrivateEmailDomains": ["example.tld"],
- "SupportEmail": "[email protected]",
- "UseDebugEncryptionKey": "true",
- "CryptographyOverrideType": "Argon2Id",
- "CryptographyOverrideSettings": "{\"DegreeOfParallelism\":1,\"MemorySize\":1024,\"Iterations\":1}"
- }
- ```
-
-7. **Install rustup & compile from Rust to WebAssembly**
- - Needed for AliasVault.Client module in case you want to run it directly from the code on your IDE (e.g. not using Docker)
- - Follow instructions at [rustup](https://rustup.rs) and install it.
- - Add `wasm32-unknown-unknown` and `wasm-pack`:
- ```bash
- # Add wasm32-unknown-unknown target to your Rust installation
- rustup target add wasm32-unknown-unknown
-
- # Install wasm-pack
- cargo install wasm-pack
- ```
- - Run AliasVault Rust Core Build Script:
- ```bash
- ./core/rust/build.sh --browser
- ```
-
-## Running the Application
-
-Use `./scripts/dev.sh` for everything — it starts the dev database and runs each
-app from source on its preconfigured port. Each invocation starts one app, so open
-a terminal per app (or use the VS Code tasks, which fan out one call per app):
-
-```bash
-./scripts/dev.sh db-start # start the dev database first
-./scripts/dev.sh api # then the API
-./scripts/dev.sh client # the Blazor client (writes its dev appsettings for you)
-./scripts/dev.sh admin # the admin web app
-./scripts/dev.sh # no argument → interactive menu
-./scripts/dev.sh ports # print the resolved port map
-```
-
-You can still run an individual project directly from your IDE (VS Code, Rider, etc.)
-if you prefer; `./scripts/dev.sh ports` shows which ports it expects.
-
-## Troubleshooting
-
-### Database Issues
-If you encounter database connection issues:
-
-1. **Check Database Status**
- ```bash
- docker ps | grep postgres-dev
- ```
-
-2. **Check Logs**
- ```bash
- docker logs aliasvault-dev-postgres-dev-1
- ```
-
-3. **Restart Database**
- ```bash
- ./scripts/dev.sh db-stop
- ./scripts/dev.sh db-start
- ```
-
-### Common Issues
-
-1. **Permission Issues**
- ```bash
- # Fix script permissions
- chmod +x install.sh
- ```
-
-2. **Port Conflicts**
- - Run `./scripts/dev.sh ports` to see the ports in use (defaults: API `5100`, database `5109`)
- - If those ports are taken, bump `AV_INSTANCE` in `dev.env` to shift the whole block
-
-## Additional Notes
-
-- Keep your .NET SDK and Docker up to date
-- The development database runs on port 5109 by default (configurable via `dev.env`)
-- Use the debug encryption key in development for easier testing
-- Store sensitive data in environment variables or user secrets
-
-## Support
-
-If you encounter any issues not covered in this guide, please:
-1. Check the [GitHub Issues](https://github.com/aliasvault/aliasvault/issues)
-2. Search for existing solutions
-3. Create a new issue if needed
\ No newline at end of file
diff --git a/docs/docs/misc/dev/mobile-apps/android.md b/docs/docs/misc/dev/mobile-apps/android.md
deleted file mode 100644
index 84f957d19..000000000
--- a/docs/docs/misc/dev/mobile-apps/android.md
+++ /dev/null
@@ -1,63 +0,0 @@
----
-sidebar_position: 1
-sidebar_label: "Android"
----
-# Android
-This article covers Android specific parts of the React Native AliasVault app codebase.
-
-Install OpenJDK for Android dev:
-
-```
-brew install openjdk@17
-
-# Add to path
-sudo ln -sfn /opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-17.jdk
-
-# Test if Java works on CLI
-java --version
-```
-
-Make sure NDK is installed:
-
-1. Open Android Studio.
-2. Go to: `Preferences > Appearance & Behavior > System Settings > Android SDK > SDK Tools tab`.
-3. Check NDK (Side by side).
-4. Click Apply or OK to install it.
-
-If getting `node` errors in Android studio, close and re-open Android Studio from CLI via:
-
-```
-open -a "Android Studio"
-```
-
-## Test on real device
-In order to test on a real device in debug mode, make sure to forward the port 8081 from local dev machine to phone. Without this an error regarding expo bundler can appear.
-
-```bash
-adb reverse tcp:8081 tcp:8081
-```
-
-## Unit tests
-The Android project contains unit tests that test the `VaultStore` native Kotlin implementation. The `VaultStore` logic is responsible for handling vault encryption/decryption, contains the SQLite client and acts as a proxy for all queries made by the React Native and autofill components.
-
-In order to run the Android unit tests:
-
-```
-./gradlew :app:testDebugUnitTest --tests "net.aliasvault.app.*"
-```
-
-You can also open up the project in Android Studio, navigate to the `VaultStoreTest.kt` file and run/debug individual tests.
-
-## Linting
-Linting is ran automatically during normal Android app build. You can however also run the linting checks manually:
-
-### Kotlin
-```bash
-./gradlew lintCheck
-```
-
-### Auto fix linting issues
-To automatically fix linting issues (where possible), run this command:
-```bash
-./gradlew lintFormat
-```
\ No newline at end of file
diff --git a/docs/docs/misc/dev/mobile-apps/index.md b/docs/docs/misc/dev/mobile-apps/index.md
deleted file mode 100644
index 6aae36906..000000000
--- a/docs/docs/misc/dev/mobile-apps/index.md
+++ /dev/null
@@ -1,36 +0,0 @@
----
-sidebar_position: 4
----
-# React Native Expo
-
-## MacOS:
-Install watchman
-
-```
-brew install watchman
-```
-
-Run iOS on Simulator:
-
-```
-npx expo run:ios
-```
-
-## React Native Turbo Module VaultManager
-The AliasVault React Native app uses the Turbo Module method for implementing the native VaultManager functionality which allows the app to store the AliasVault vault and encryption key safely on the native level enabling the use of low-level keychain secure storage methods.
-
-In order to update the Native Turbo Module scheme, edit the specs file in: `specs/NativeVaultManager.ts`. Afterwards:
-- For iOS, run pod install (see instructions below). Then make sure to implement the new or changed methods in the actual NativeVaultManager implementation of which the files are located in the `ios/NativeVaultManager` directory.
-
-## (Re)generate native turbo module spec file
-
-### iOS: run Pod install
-1. Go to root of mobile-app directory
-2. Run `npx pod-install` (don't run `pod install` directly from ios directory as this can cause errors)
-
-### Android: run custom gradlew command
-1. Go to mobile-app/android directory and run the gradlew codegen command:
-```bash
-cd mobile-app/android
-./gradlew generateCodegenArtifactsFromSchema
-```
\ No newline at end of file
diff --git a/docs/docs/misc/dev/release/_category_.json b/docs/docs/misc/dev/release/_category_.json
deleted file mode 100644
index 94a8f4f1b..000000000
--- a/docs/docs/misc/dev/release/_category_.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "label": "Release",
- "position": 99
-}
diff --git a/docs/docs/misc/dev/release/git-versioning-strategy.md b/docs/docs/misc/dev/release/git-versioning-strategy.md
deleted file mode 100644
index 17496d82c..000000000
--- a/docs/docs/misc/dev/release/git-versioning-strategy.md
+++ /dev/null
@@ -1,57 +0,0 @@
----
-sidebar_position: 3
-sidebar_label: "Git versioning strategy"
----
-# Git versioning strategy
-
-This document describes the **official release workflow** for AliasVault.
-
-## Branch Semantics
-
-### `main`
-- Represents the **next version line**
-- Contains **only pre-release versions**
-- Example versions:
- - `0.26.0-alpha`
- - `0.26.0-beta`
-- Never tagged for stable releases
-
----
-
-### `XXXX-*` (GitHub issue branches)
-- Branch from:
- - `main` for next-version development, or
- - a release tag for hotfixes
-- Contains **only code fixes**
-- No version changes
-- No release notes
-- May contain many commits
-
-Landing rules:
-- If branched from `main`: merge or rebase back into `main`
-- If branched from a tag: **cherry-pick fixes into `main`**
-- May be merged into a `release/*` branch for packaging
-
----
-
-### `release/*`
-- Used only to **package a stable release**
-- Contains:
- - fixes (cherry-picked back into main)
- - release notes (cherry-picked back into main)
- - version bump
-- Never merged into `main`
-- Deleted after tagging
-
----
-
-## Versioning Rules
-
-### Development versions
-- Live only on `main`
-- Always pre-release (`-alpha`, `-beta`, etc.)
-
-### Stable versions
-- Live only on `release/*` branches
-- Always tagged
-- Never merged back into `main`
diff --git a/docs/docs/misc/dev/release/index.md b/docs/docs/misc/dev/release/index.md
deleted file mode 100644
index f23ec991e..000000000
--- a/docs/docs/misc/dev/release/index.md
+++ /dev/null
@@ -1,118 +0,0 @@
----
-sidebar_position: 99
----
-# Publish new release
-
-Follow the steps in the checklist below to prepare a new release.
----
-
-# Release preparation checklist
-
-## Bump versions
-All clients and server apps contain a version definition that needs to be updated with every release. This version is used for communication between components to ensure they are compatible with each other. Versions are also used for official publication on the app stores.
-
-For bumping the version for all projects in one go, you can use the interactive script located in:
-```bash
-./scripts/bump_version.sh
-```
-
-> If you prefer to update versions manually instead of using the interactive script, see the [Manual versioning](manual-versioning) page for detailed steps.
-
-## Write changelogs
-When a new version of the mobile apps and/or browser extensions is released, write changelogs and commit them to:
-- iOS app: `./fastlane/metadata/ios/en-US/changelogs/[versionCode].txt`.
- > Filename should equal the `versionCode` in build.gradle.
-- Android app: `./fastlane/metadata/android/en-US/changelogs/[versionCode].txt`.
- > Filename should equal the `versionCode` in build.gradle.
-- Browser extensions: `./fastlane/metadata/browser-extension/en-US/changelogs/[semver].txt`.
- > Filename should equal the semver of the release (e.g. `0.20.0`).
-
-## Update documentation
-- [ ] Update /docs instructions for any relevant changes to functionality or self-host installation process
-- [ ] Update README screenshots if applicable
-- [ ] Update README current/upcoming features
-
----
-
-# Release flow
-Follow the steps below to publish a new release to the various channels.
-
-## Create a new release on GitHub
-The creation of the new release tag will cause the `install.sh` script to see the new version via GitHub and prompt the user to update when `install.sh update` is run.
-
-1. Create a new release on GitHub with a new tag in semver format, e.g. `0.12.0`.
-2. Add a description to the release and generate the changelog.
-3. Publish the release.
-
-### Publish new Docker Images
-The creation of the new release tag will automatically trigger the GitHub Actions workflow `Publish Docker Images` which will build the docker images and push them to the GitHub Container Registry. After publishing, the images will then be available for the installation script to pull during the update. Do take note that this publish step may take up to 15 minutes to complete. Between the creation of the release tag and the completion of the publish step, the installation script will not be able to pull the new images (yet) and can throw errors, this is expected. After the publish is completed, users can update their self-hosted installation by following the [update guide](/installation/script/update/)
-
-#### To locally build and publish the all-in-one Docker image:
-GitHub Actions has had issues in the past with building the all-in-one Docker image for arm64 because of unknown timeouts. To locally build for both amd64 and arm64 and push manually, run the following:
-
-**Docker Hub**
-```bash
-# Login to Docker Hub
-docker login
-
-# Build and push all-in-one image
-# Note: replace 0.22.0 below with the actual tag of the version that you're building and pushing
-docker buildx build --platform linux/amd64,linux/arm64/v8 \
- -f dockerfiles/all-in-one/Dockerfile \
- -t aliasvault/aliasvault:0.22.0 \
- -t aliasvault/aliasvault:latest \
- --push .
-```
-
-**Ghcr.io**
-```bash
-# Login to ghcr.io
-docker login ghcr.io
-
-# Build and push all-in-one image
-# Note: replace 0.22.0 below with the actual tag of the version that you're building and pushing
-docker buildx build --platform linux/amd64,linux/arm64/v8 \
- -f dockerfiles/all-in-one/Dockerfile \
- -t ghcr.io/aliasvault/aliasvault:0.22.0 \
- -t ghcr.io/aliasvault/aliasvault:latest \
- --push .
-```
-
-## Publish new browser extension version
-The GitHub Actions workflow `Browser Extension Build` will build the browser extension(s) and publish the archive to the GitHub Actions Artifacts page and also upload the archives to the release.
-
-> Note: this step is only required if the browser extension has been updated.
-
-1. Download the browser extension archives from the newly published release. Note: it can take a few minutes for the artifacts to be available after the release has been published.
-2. Upload the Chrome archive to the Chrome Web Store.
-3. Upload the Firefox archive (normal + sources) to the Firefox Add-ons page.
-4. Upload the Edge archive to the Microsoft Edge Add-ons page.
-5. Submit the Safari extension to Apple for review:
- 1. Navigate to the `apps/browser-extension` directory.
- 2. Build the safari extension locally via `npm run build:safari`, which will output the build files to `dist/safari-mv2`. **Note: it's important to always rebuild, as otherwise stale build files from a previous build might get included in the Safari binary by accident!**
- 3. Open the `apps/browser-extension/safari-xcode/AliasVault.xcodeproj` project in Xcode and submit the extension via the "Archive" and then "Distribute App" option.
-
-## Publish new Mobile App version
-1. Submit the iOS app to Apple for review:
- 1. Open the `apps/mobile-app/ios/AliasVault.xcworkspace` project in Xcode and submit the extension via the "Archive" and then "Distribute App" option.
-2. Submit the Android app to Google Play Console for review:
- 1. Run the gradle build in the `apps/mobile-app/android` folder:
-```bash
-./gradlew app:bundleRelease
-```
- 2. The resulting .aab file will be available in the following location.
-```bash
-apps/mobile-ap/android/app/build/outputs/bundle/release
-```
- 3. Take this file and upload it to the Google Play Console.
-
-### F-Droid automatic build and publish
-Note: The AliasVault GitHub repo is connected to the F-Droid alternative Android App Store. When a new Git release is published, F-Droid will automatically pull the latest changes, read the Fastlane metadata to retrieve the changelog, and build the app itself. This process is fully automatic, and publishing can take 2-3 days.
-
-The AliasVault Android app build is configured by the following file which is part of the official `fdroiddata` repo on GitLab:
-[https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/net.aliasvault.app.yml](https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/net.aliasvault.app.yml)
-
-If any changes were made to the Android app build process or if any new third party (expo) packages have been installed, make sure it still
-works with the F-Droid build process. This can be tested either locally via `fdroid build`, or it can be done by creating a new test commit in
-a forked `fdroiddata` repo on GitLab and making the `net.aliasvault.app.yml` point to the latest main branch. This way you can test whether
-the build itself works properly with the latest version before actually publishing a new release.
diff --git a/docs/docs/misc/dev/release/manual-versioning.md b/docs/docs/misc/dev/release/manual-versioning.md
deleted file mode 100644
index e47047966..000000000
--- a/docs/docs/misc/dev/release/manual-versioning.md
+++ /dev/null
@@ -1,33 +0,0 @@
----
-sidebar_position: 2
-sidebar_label: "Manual versioning"
----
-# Manual Versioning Steps
-
-Alternatively, you can do it manually by following these steps:
-
-## Versioning client and server
-- [ ] Update ./apps/server/Shared/AliasVault.Shared.Core/AppInfo.cs and update major/minor/patch to the new version. This version will be shown in the client and admin app footer. This version should be equal to the git release tag.
-- [ ] Update ./apps/server/Shared/AliasVault.Shared.Core/AppInfo.cs with the minimum supported client versions.
- - Only required if new API output breaks earlier client versions and/or this version of the client/API will upgrade the client vault model to a new major version.
-- [ ] Update ./install.sh `@version` number in header ONLY if the install script content has changed since the last release. Increment the number by 1. This allows the install script to self-update when running the `./install.sh update` command on default installations. Note: This is a simple build number (not semver) that is independent of the release version - only increment it when install.sh actually changes.
-
-## Versioning browser extensions
-- [ ] Update `./apps/browser-extension/wxt.config.ts` with the new version for the extension. This will be shown in the browser extension web stores. This version should be equal to the git release tag.
-- [ ] Update `./apps/browser-extension/safari-xcode/AliasVault.xcodeproj/project.pbxproj` and set the version in `MARKETING_VERSION` and increase the build number in `CURRENT_PROJECT_VERSION`. This is the version that will be shown in the Safari Browser Extension App Store.
-- [ ] Update `./apps/browser-extension/src/utils/AppInfo.ts` with the new version for the extension. This version should be equal to the git release tag.
-- [ ] Update `./apps/browser-extension/src/utils/AppInfo.ts` with the minimum supported server version (in case of required API breaking changes).
-- [ ] Update `./apps/browser-extension/src/utils/AppInfo.ts` with the minimum supported client vault version (in case of required client vault model changes).
-
-## Versioning mobile apps
-- [ ] Update `./apps/mobile-app/app.json` with the new version for the mobile app. This version should be equal to the git release tag.
-- [ ] Update `./apps/mobile-app/utils/AppInfo.ts` with the new version for the mobile app. This version should be equal to the git release tag.
-- [ ] Update `./apps/mobile-app/utils/AppInfo.ts` with the minimum supported server version (in case of required API breaking changes).
-- [ ] Update `./apps/mobile-app/utils/AppInfo.ts` with the minimum supported client vault version (in case of required client vault model changes).
-- [ ] Update `./apps/mobile-app/ios/AliasVault.xcodeproj/project.pbxproj` and set the version in `MARKETING_VERSION` and increase the build number in `CURRENT_PROJECT_VERSION`. This is the version that will be shown in the iOS App Store.
-- [ ] Update `./apps/mobile-app/android/app/build.gradle` and set the version in `versionName` and increase the build number in `versionCode`.
-
-## Install script (docker images)
-If docker containers have been added or removed:
-- [ ] Verify that `.github/workflows/release.yml` contains references to all docker images that need to be published.
-- [ ] Update `install.sh` and verify that the `images=()` array that takes care of pulling the images from the GitHub Container Registry is updated.
\ No newline at end of file
diff --git a/docs/docs/misc/dev/release/release-checklist.md b/docs/docs/misc/dev/release/release-checklist.md
deleted file mode 100644
index f0815ed40..000000000
--- a/docs/docs/misc/dev/release/release-checklist.md
+++ /dev/null
@@ -1,61 +0,0 @@
----
-sidebar_position: 4
-sidebar_label: "Release Checklist"
----
-# Release Checklist
-
-Step-by-step guide for creating a new AliasVault release.
-
-## 1. Create release branch
-
-- **Feature release**: Branch from `main`
-
-```bash
-# Feature release
-git checkout main && git checkout -b release/X.Y.Z
-```
-
-- **Bug/hotfix release**: Branch from previous tag (e.g., `0.25.2`)
-
-```bash
-# Hotfix release
-git checkout 0.25.2 && git checkout -b release/0.25.3
-```
-
-## 2. Bump version and write release notes
-
-Run the version bump script which automatically bumps all versions and creates Fastlane changelog files:
-
-```bash
-./scripts/bump-version.sh
-```
-
-- Commit the release notes in its own commit first
-- **Cherry-pick the release notes commit to `main`**
-- Commit the version bump changes in a separate commit
-- The version bump commit stays only in the release branch
- - ***Not cherry-picked***, as the `main` branch is always targeting the next feature (pre)release
-
-## 3. Additional changes (optional)
-
-- If additional fixes are needed after testing, add them to the release branch
-- **Cherry-pick all fix commits back to `main`**
-
-## 4. Publish release
-
-- Create the release from GitHub Releases based on the release branch
-- Tag is created automatically
-
-## 5. Verify cherry-picks
-
-After release, verify all relevant changes were cherry-picked to `main`:
-
-```bash
-git range-diff <previous-tag>..release/<version> <previous-tag>..main
-# Example:
-git range-diff 0.25.2..release/0.25.3 0.25.2..main
-```
-
-**Expected output:**
-- Only the version bump commit should show as `<` (only in release branch)
-- All other commits should show as `=` (in both branches)
diff --git a/docs/docs/misc/dev/upgrade-ef-client-model.md b/docs/docs/misc/dev/upgrade-ef-client-model.md
deleted file mode 100644
index 26f30a36d..000000000
--- a/docs/docs/misc/dev/upgrade-ef-client-model.md
+++ /dev/null
@@ -1,90 +0,0 @@
----
-sidebar_position: 5
-sidebar_label: "Upgrade the AliasClientDb EF model"
----
-# Upgrade the AliasClientDb EF model
-
-This guide explains how to upgrade the AliasVault client database structure. The AliasVault client database is built and managed using Entity Framework code-first approach, where all SQL structure is maintained in code and then converted to SQL scripts for use across web apps, browser extensions, and mobile apps.
-
-## Overview
-
-The upgrade process involves four main steps:
-
-1. **Update .NET Entity Framework model** - Modify the EF model and create migrations
-2. **Generate SQL scripts** - Convert EF migrations to SQL scripts for cross-platform use
-3. **Add new migrations to VaultVersions** - Manually update the TypeScript version list
-4. **Rebuild vault library** - Compile and distribute the updated SQL scripts
-
----
-
-## 1. Update .NET Entity Framework Model
-
-### Step 1.1: Modify the EF Model
-Make changes to the AliasClientDb EF model in the `AliasClientDb` project.
-
-### Step 1.2: Create a New Migration
-Run the following command in the `AliasClientDb` project:
-
-```bash
-# Important: Migration name must be prefixed with the Semver version number of the release.
-# Example: If the release version is 1.0.0, use `1.0.0-<migration-name>`
-dotnet ef migrations add "1.0.0-<migration-name>"
-```
-
-**Note:** Always prefix migration names with the release version number to ensure proper versioning across all client platforms.
-
-### Step 1.3: Add `// <auto-generated>` flag
-Open the generated migration .cs file and manually add this header to the file:
-
-```csharp
-// <auto-generated>
-```
-
-Without this the AliasClientDb project build will fail as the auto generated code fails certain code style checks.
-
----
-
-## 2. Generate SQL Scripts
-
-### Step 2.1: Run the SQL Generation Script
-Execute the SQL generation script to convert EF migrations to SQL scripts:
-
-```bash
-apps/server/Databases/AliasClientDb/Scripts/run-all.sh
-```
-
-### Step 2.2: Verify Output
-The script will:
-- Create individual SQL scripts for each migration
-- Convert these to TypeScript versions
-- Save the results in `core/vault/src/sql` directory
-
----
-
-## 3. Add New Migrations to VaultVersions
-
-### Step 3.1: Update VaultVersions.ts
-Manually update the `core/vault/src/sql/VaultVersions.ts` file to include the new migration(s) with the proper fields.
-
-This step ensures that the TypeScript version list is synchronized with the generated SQL scripts and maintains proper version tracking across all client platforms. This list is also used by the client app to detect if there are new migrations that should be applied, and what information to show to the user.
-
----
-
-## 4. Rebuild Vault Library
-
-### Step 4.1: Compile and Distribute
-The vault TypeScript library is consumed by web apps, browser extensions, and mobile apps for vault creation and updates. After generating the SQL scripts, rebuild the library:
-
-```bash
-core/build-and-distribute.sh
-```
-
-### Step 4.2: Verify Distribution
-Ensure the updated library is properly distributed to all consuming applications.
-
----
-
-## Testing and Deployment
-
-### Manual Testing
-On the next login of any client app, users will be prompted (required) to upgrade their database schema to the latest version. **Always manually test that the migration works as expected** before releasing.
diff --git a/docs/docs/misc/dev/upgrade-ef-server-model.md b/docs/docs/misc/dev/upgrade-ef-server-model.md
deleted file mode 100644
index e402287b9..000000000
--- a/docs/docs/misc/dev/upgrade-ef-server-model.md
+++ /dev/null
@@ -1,35 +0,0 @@
----
-sidebar_position: 6
-sidebar_label: "Upgrade the AliasServerDb EF model"
----
-# Upgrade the AliasServerDb EF model
-
-## Create new migration
-The below command allows you to create a new EF migration based on the existing database structure as defined in the EF mode classes.
-
-```bash
-cd apps/server/Databases/AliasServerDb
-dotnet ef migrations add NewMigrationDescription
-```
-
-When (re)starting the API, any new migrations are automatically applied to the database.
-
-## Remove migration
-In order to remove one or more added migrations, run the following command:
-
-```bash
-dotnet ef migrations remove
-```
-
-> Note: if you get an error stating the migration has already been applied, first rollback the database following the instructions below.
-
-# Rollback AliasServerDb database to previous migration
-
-To rollback the database and undo one or more applied migrations, run the command below and replace the `ChangeDeviceIdentifierToTextfield` with the name of the target migration to revert back to.
-
-So e.g. if target migration is called: `20250922173722_ChangeDeviceIdentifierToTextField.cs` then run this command:
-
-```bash
-cd apps/server/Databases/AliasServerDb
-dotnet ef database update ChangeDeviceIdentifierToTextField
-```
diff --git a/docs/docs/misc/dev/windows-development.md b/docs/docs/misc/dev/windows-development.md
deleted file mode 100644
index f715604c3..000000000
--- a/docs/docs/misc/dev/windows-development.md
+++ /dev/null
@@ -1,140 +0,0 @@
----
-sidebar_position: 2
-sidebar_label: "Windows development"
----
-# Setting Up AliasVault Development Environment on Windows
-
-This guide will help you set up AliasVault for development on Windows using WSL (Windows Subsystem for Linux).
-
-## Prerequisites
-
-1. **Install WSL**
- - Open PowerShell as Administrator and run:
- ```powershell
- wsl --install
- ```
- - This will install Ubuntu by default
- - Restart your computer after installation
-
-2. **Install Visual Studio 2022**
- - Download from [Visual Studio Downloads](https://visualstudio.microsoft.com/downloads/)
- - Required Workloads:
- - ASP.NET and web development
- - .NET WebAssembly development tools
- - .NET cross-platform development
-
-3. **Install .NET 10 SDK**
- - Download from [.NET Downloads](https://dotnet.microsoft.com/download/dotnet/10.0)
- - Install both Windows and Linux versions (you'll need both)
-
-## Setup Steps
-
-1. **Clone the Repository**
- ```bash
- git clone https://github.com/aliasvault/aliasvault.git
- cd aliasvault
- ```
-2. **Configure WSL**
- - Open WSL terminal
- - Edit WSL configuration:
- ```bash
- sudo nano /etc/wsl.conf
- ```
- - Add the following configuration:
- ```ini
- [automount]
- enabled = true
- options = "metadata,umask=22,fmask=11"
- mountFsTab = false
-
- [boot]
- systemd=true
- ```
- - Save the file (Ctrl+X, then Y)
- - Restart WSL from PowerShell:
- ```powershell
- wsl --shutdown
- ```
-
-3. **Setup Development Database**
- - Open a new WSL terminal in the AliasVault directory
- - `./scripts/dev.sh` is the single entry point for local development: it starts
- the dev database and runs the apps from source on a consistent, preconfigured
- set of ports. Start the database with:
- ```bash
- ./scripts/dev.sh db-start
- ```
- - Verify the database is running:
- ```bash
- docker ps | grep postgres-dev
- ```
-
-4. **Run the Application**
- - Open the solution in Visual Studio 2022
- - Set WebApi as the startup project
- - Press F5 to run in debug mode
- - Alternatively, run the apps from WSL with `./scripts/dev.sh` (one app per
- terminal, e.g. `./scripts/dev.sh api`); `./scripts/dev.sh ports` shows the
- ports each app uses
-
-## Troubleshooting
-
-### Database Connection Issues
-If the WebApi fails to start due to database connection issues:
-
-1. **Check Database Status**
- ```bash
- docker ps | grep postgres-dev
- ```
-
-2. **Check Database Logs**
- ```bash
- docker logs aliasvault-dev-postgres-dev-1
- ```
-
-3. **Permission Issues**
- If you see permission errors, try:
- ```bash
- sudo mkdir -p ./database/postgres
- sudo chown -R 999:999 ./database/postgres
- sudo chmod -R 700 ./database/postgres
- ```
-
-4. **Restart Development Database**
- ```bash
- ./scripts/dev.sh db-stop
- ./scripts/dev.sh db-start
- ```
-
-### WSL Issues
-If you experience WSL-related issues:
-
-1. Make sure you have the latest WSL version:
- ```powershell
- wsl --update
- ```
-
-2. Verify WSL is running correctly:
- ```powershell
- wsl --status
- ```
-
-3. If problems persist, try resetting WSL:
- ```powershell
- wsl --shutdown
- wsl
- ```
-
-## Additional Notes
-
-- Always run the development database before starting the WebApi project
-- Make sure you're using the correct .NET SDK version in both Windows and WSL
-- If you modify the WSL configuration, always restart WSL afterward
-- For best performance, store the project files in the Linux filesystem rather than the Windows filesystem
-
-## Support
-
-If you encounter any issues not covered in this guide, please:
-1. Check the [GitHub Issues](https://github.com/aliasvault/aliasvault/issues)
-2. Search for existing solutions
-3. Create a new issue if needed
diff --git a/docs/docs/misc/index.md b/docs/docs/misc/index.md
deleted file mode 100644
index 6772ba07b..000000000
--- a/docs/docs/misc/index.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-sidebar_position: 7
----
-# Miscellaneous
-
-Miscellaneous guides and documentation.
diff --git a/docs/docs/mobile-apps/android/index.md b/docs/docs/mobile-apps/android/index.md
deleted file mode 100644
index b1c0ea163..000000000
--- a/docs/docs/mobile-apps/android/index.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-sidebar_position: 1
----
-# Android app
-In order to install the Android iOS app, see the options below.
-
-## Download from App Store
-You can download the AliasVault mobile app via the Google Play store.
-
-1. Go to the [Google Play Store](https://play.google.com/store/apps/details?id=net.aliasvault.app)
-2. Click on the "Install" button
-3. The app will be installed. Open the app and follow the instructions.
-
-## Build from Source
-If you wish to install the mobile app from source instead, see the [build-from-source](build-from-source.md) documentation. This will allow you to make changes to the mobile app and/or to use a specific version of the mobile app.
\ No newline at end of file
diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts
index 1da731aba..daa199897 100644
--- a/docs/docusaurus.config.ts
+++ b/docs/docusaurus.config.ts
@@ -54,6 +54,7 @@ const config: Config = {
plugins: [
[
+ // Redirects old jekyll pages to the new docusaurus pages, as well as handling redirects for future moved pages.
'@docusaurus/plugin-client-redirects',
{
redirects: [
@@ -93,7 +94,92 @@ const config: Config = {
'/installation/update/v0.23.0.html',
],
},
+ // private-vs-public-email moved from /misc into /installation.
+ {
+ to: '/installation/private-vs-public-email',
+ from: [
+ '/misc/private-vs-public-email',
+ '/misc/private-vs-public-email.html',
+ ],
+ },
+ // The /misc landing and dev/release docs were removed; point any
+ // stale links at the closest surviving pages.
+ {
+ to: '/',
+ from: ['/misc', '/misc.html'],
+ },
+ {
+ to: '/contributing/development/',
+ from: [
+ '/misc/dev/release',
+ '/misc/dev/release.html',
+ '/misc/dev/release/git-versioning-strategy',
+ '/misc/dev/release/git-versioning-strategy.html',
+ '/misc/dev/release/manual-versioning',
+ '/misc/dev/release/manual-versioning.html',
+ '/misc/dev/release/release-checklist',
+ '/misc/dev/release/release-checklist.html',
+ ],
+ },
+ // The Linux/macOS and Windows dev pages were merged into a single
+ // "development-setup" page.
+ {
+ to: '/contributing/development/development-setup',
+ from: [
+ '/contributing/development/linux-macos-development',
+ '/misc/dev/linux-macos-development',
+ '/misc/dev/linux-macos-development.html',
+ '/contributing/development/windows-development',
+ '/misc/dev/windows-development',
+ '/misc/dev/windows-development.html',
+ ],
+ },
+ // Dev database operations is covered by the self-host install docs.
+ {
+ to: '/installation/script/advanced/database',
+ from: [
+ '/contributing/development/database-operations',
+ '/misc/dev/database-operations',
+ '/misc/dev/database-operations.html',
+ ],
+ },
+ {
+ to: '/contributing/development/',
+ from: [
+ '/contributing/development/add-new-language',
+ '/misc/dev/add-new-language',
+ '/misc/dev/add-new-language.html',
+ '/contributing/development/upgrade-ef-client-model',
+ '/misc/dev/upgrade-ef-client-model',
+ '/misc/dev/upgrade-ef-client-model.html',
+ '/contributing/development/upgrade-ef-server-model',
+ '/misc/dev/upgrade-ef-server-model',
+ '/misc/dev/upgrade-ef-server-model.html',
+ ],
+ },
],
+ // Sections that moved keep their old URLs working. Each entry maps a
+ // new path prefix back to where it used to live:
+ // - /misc/dev/* tree → /contributing/development/*
+ // - /browser-extensions/* → /installation/browser-extensions/*
+ // - /mobile-apps/* → /installation/mobile-apps/*
+ createRedirects(existingPath) {
+ const moves: [string, string][] = [
+ ['/contributing/development', '/misc/dev'],
+ ['/installation/browser-extensions', '/browser-extensions'],
+ ['/installation/mobile-apps', '/mobile-apps'],
+ ];
+ for (const [newPrefix, oldPrefix] of moves) {
+ if (existingPath.startsWith(newPrefix)) {
+ const oldPath = existingPath.replace(newPrefix, oldPrefix);
+ // Directory/index routes end with "/"; don't append ".html" there.
+ return oldPath.endsWith('/')
+ ? [oldPath]
+ : [oldPath, `${oldPath}.html`];
+ }
+ }
+ return undefined;
+ },
},
],
],
@@ -129,9 +215,27 @@ const config: Config = {
items: [
{
type: 'docSidebar',
- sidebarId: 'docsSidebar',
+ sidebarId: 'installSidebar',
+ position: 'left',
+ label: 'Self-host Install',
+ },
+ {
+ type: 'doc',
+ docId: 'architecture',
+ position: 'left',
+ label: 'Architecture',
+ },
+ {
+ type: 'docSidebar',
+ sidebarId: 'contributingSidebar',
+ position: 'left',
+ label: 'Contributing',
+ },
+ {
+ type: 'doc',
+ docId: 'contact',
position: 'left',
- label: 'Documentation',
+ label: 'Help',
},
{
href: 'https://aliasvault.net',
@@ -152,8 +256,8 @@ const config: Config = {
title: 'Docs',
items: [
{label: 'Self-host Install', to: '/installation/'},
- {label: 'Browser Extensions', to: '/browser-extensions/'},
- {label: 'Mobile Apps', to: '/mobile-apps/'},
+ {label: 'Browser Extensions', to: '/installation/browser-extensions/'},
+ {label: 'Mobile Apps', to: '/installation/mobile-apps/'},
{label: 'Architecture', to: '/architecture/'},
],
},
diff --git a/docs/sidebars.ts b/docs/sidebars.ts
index 5d4586586..f770e3d97 100644
--- a/docs/sidebars.ts
+++ b/docs/sidebars.ts
@@ -1,17 +1,57 @@
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
/**
- * The sidebar is generated automatically from the folder structure under
- * `docs/`. Ordering and category labels are controlled by `_category_.json`
- * files and the `sidebar_position` frontmatter on each page.
+ * One sidebar per top-level navbar tab (see `navbar.items` in
+ * docusaurus.config.ts), instead of a single combined "Documentation" sidebar
+ * listing every section at once.
+ *
+ * The client-app guides (browser extensions, mobile apps) live under
+ * `installation/` so they nest as collapsible categories in this sidebar —
+ * they're primarily about building/running locally, which is mainly relevant to
+ * self-hosters.
+ *
+ * Ordering and labels within a section come from `_category_.json` files and the
+ * `sidebar_position` frontmatter on each page. The single-page sections
+ * (Architecture, Help & Support) live at the docs root and are linked directly
+ * from the navbar, so they don't need their own sidebar.
*/
const sidebars: SidebarsConfig = {
- docsSidebar: [
+ // The two server install methods (script + docker-compose) and the
+ // private-vs-public-email explainer live under a "Self-host Install" group.
+ // The client-app guides are lifted out into their own top-level groups so
+ // they read as siblings rather than nested under the server install.
+ installSidebar: [
{
- type: 'autogenerated',
- dirName: '.',
+ type: 'category',
+ label: 'Self-host Install',
+ link: {type: 'doc', id: 'installation/index'},
+ collapsed: false,
+ items: [
+ {
+ type: 'category',
+ label: 'Install Script',
+ items: [{type: 'autogenerated', dirName: 'installation/script'}],
+ },
+ {
+ type: 'category',
+ label: 'Docker Compose',
+ items: [{type: 'autogenerated', dirName: 'installation/docker-compose'}],
+ },
+ 'installation/private-vs-public-email',
+ ],
+ },
+ {
+ type: 'category',
+ label: 'Browser Extensions',
+ items: [{type: 'autogenerated', dirName: 'installation/browser-extensions'}],
+ },
+ {
+ type: 'category',
+ label: 'Mobile Apps',
+ items: [{type: 'autogenerated', dirName: 'installation/mobile-apps'}],
},
],
+ contributingSidebar: [{type: 'autogenerated', dirName: 'contributing'}],
};
export default sidebars;
diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css
index 5e10b9e21..5a178cdfb 100644
--- a/docs/src/css/custom.css
+++ b/docs/src/css/custom.css
@@ -48,10 +48,20 @@
--ifm-table-border-color: #e3e8ef;
--av-card-bg: #ffffff;
--av-border: #e3e8ef;
+ --av-sidebar-bg: #f7f8fb; /* subtle contrast against the white content column */
+ --av-menu-expanded-bg: rgba(20, 30, 50, 0.05); /* open category header fill */
+
+ /* Collapsible / FAQ header bar tints (matching the marketing accordion). */
+ --av-collapsible-header-hover: #f4f5f8;
+ --av-collapsible-header-open: #f0f2f9;
}
-/* Dark mode — warm near-black surfaces matching the website. */
-[data-theme='dark'] {
+/* Dark mode — dark-blue surfaces matching the marketing website.
+ * Selector is `html[data-theme='dark']` (not just `[data-theme='dark']`) to
+ * match Infima's own specificity — otherwise Infima's `html[data-theme='dark']`
+ * defaults (e.g. --ifm-background-color: #1b1b1d) win and the content area
+ * stays neutral near-black instead of the brand dark blue (#121723). */
+html[data-theme='dark'] {
--ifm-color-primary: #f49541;
--ifm-color-primary-dark: #f2882a;
--ifm-color-primary-darker: #d68338;
@@ -62,7 +72,7 @@
--ifm-background-color: #121723; /* website body (dark:bg-black) */
--ifm-background-surface-color: #1d2430; /* website `dark` */
- --ifm-navbar-background-color: rgba(23, 28, 40, 0.85); /* bg-color-dark */
+ --ifm-navbar-background-color: rgba(33, 41, 54, 0.85); /* web app header #212936 */
--ifm-footer-background-color: #0e131d;
--ifm-color-content: #d8dce6;
--ifm-color-content-secondary: #959cb1; /* body-color-dark */
@@ -74,6 +84,11 @@
--av-card-bg: #1d2430;
--av-border: #2a313f;
+ --av-sidebar-bg: #212936; /* raised panel matching the web app header/sidebar */
+ --av-menu-expanded-bg: rgba(255, 255, 255, 0.05); /* open category header fill */
+
+ --av-collapsible-header-hover: rgba(255, 255, 255, 0.03);
+ --av-collapsible-header-open: rgba(255, 255, 255, 0.05);
}
/* ---------------------------------------------------------------- Navbar -- */
@@ -90,8 +105,10 @@
font-size: 1.1rem;
}
+/* The logo SVG includes the "AliasVault" wordmark, so its height drives the
+ * whole brand size (there is no separate navbar title text). */
.navbar__logo {
- height: 2rem;
+ height: 2.75rem;
}
.navbar__link {
@@ -105,12 +122,15 @@
/* --------------------------------------------------------------- Sidebar -- */
+/* Sidebar sits on a slightly raised surface so it reads as a distinct panel
+ * against the content column. */
.theme-doc-sidebar-container {
border-right: 1px solid var(--av-border);
+ background-color: var(--av-sidebar-bg);
}
-[data-theme='dark'] .menu {
- background-color: var(--ifm-background-color);
+.menu {
+ background-color: var(--av-sidebar-bg);
}
/* Breathing room around the menu and rounded, app-like items. */
@@ -119,8 +139,18 @@
font-weight: 500;
}
+/* Nested items get a vertical guide line + indent so an expanded category's
+ * children read as a group, clearly distinct from the next top-level item. */
.menu__list .menu__list {
+ margin-left: 1rem;
padding-left: 0.5rem;
+ border-left: 1px solid var(--av-border);
+}
+
+/* A touch more breathing room above each top-level category separates one
+ * collapsed/expanded group from the next. */
+.menu > .menu__list > .menu__list-item:not(:first-child) {
+ margin-top: 0.15rem;
}
.menu__link {
@@ -136,8 +166,24 @@
border-radius: 8px;
}
+/* An expanded category's header keeps a persistent tint (distinct from the
+ * flat closed items) so it's obvious which group is currently open. */
+.menu__list-item:not(.menu__list-item--collapsed) > .menu__link--sublist {
+ background-color: var(--av-menu-expanded-bg);
+}
+
/* --------------------------------------------------------------- Content -- */
+/* Standalone doc pages (Architecture, Help & Support) have no sidebar, so
+ * Docusaurus renders no breadcrumb nav above the article. On the sidebar
+ * sections the breadcrumb adds ~2.5rem of vertical space before the H1 (its
+ * own row height plus a 0.8rem bottom margin); without it the heading sits
+ * tight against the navbar. Re-create that top spacing when the article has
+ * no breadcrumb so every page starts with the same breathing room. */
+article:not(:has(> nav.theme-doc-breadcrumbs)) > .theme-doc-markdown {
+ margin-top: 2.5rem;
+}
+
/* Comfortable reading column with real margins, instead of full-bleed. */
.theme-doc-markdown {
max-width: 860px;
@@ -178,6 +224,90 @@
border: 1px solid var(--av-border);
}
+/* ----------------------------------------------------- Collapsibles / FAQ -- */
+
+/* Native <details> styled like the marketing FAQ accordion: a bordered card
+ * with a tinted header bar, a chevron on the right, and a divider above the
+ * muted answer text. Docusaurus ships <details> as `details.alert.alert--info`
+ * (a blue info box), so we neutralise that here. Scoped to doc content. */
+.theme-doc-markdown details {
+ --docusaurus-details-decoration-color: var(--av-border);
+ margin-bottom: 1rem;
+ padding: 0;
+ border: 1px solid var(--av-border);
+ border-radius: 12px;
+ overflow: hidden;
+ background: var(--av-card-bg);
+ box-shadow: none;
+}
+
+.theme-doc-markdown details > summary {
+ margin: 0;
+ padding: 1rem 3rem 1rem 1.5rem;
+ font-weight: 600;
+ font-size: 1.02rem;
+ color: var(--ifm-heading-color);
+ background-color: transparent;
+ transition: background-color 150ms ease;
+}
+
+.theme-doc-markdown details > summary:hover {
+ background-color: var(--av-collapsible-header-hover);
+}
+
+.theme-doc-markdown details[open] > summary {
+ background-color: var(--av-collapsible-header-open);
+}
+
+/* Move the disclosure arrow to the right edge and enlarge it slightly. */
+.theme-doc-markdown details > summary::before {
+ left: auto;
+ right: 1.5rem;
+ top: 50%;
+ transform: translateY(-50%) rotate(0deg);
+ transform-origin: center;
+ border-width: 0.4rem;
+ border-color: transparent transparent transparent var(--ifm-color-content-secondary);
+}
+
+.theme-doc-markdown details[open] > summary::before,
+.theme-doc-markdown details[data-collapsed='false'] > summary::before {
+ transform: translateY(-50%) rotate(90deg);
+}
+
+/* Answer area: muted body text sitting directly under the header bar, with no
+ * divider line or top-margin gap (header's own padding provides separation). */
+.theme-doc-markdown details > div {
+ margin-top: 0;
+ padding: 0 1.5rem 1.25rem;
+ border-top: none;
+ color: var(--ifm-color-content-secondary);
+}
+
+.theme-doc-markdown details > div > :last-child {
+ margin-bottom: 0;
+}
+
+/* ------------------------------------------------------------ Admonitions -- */
+
+/* Brand the informational admonitions (:::info / :::note) with the AliasVault
+ * orange instead of Docusaurus' default blue/grey, matching the marketing
+ * site's callouts (border-primary + faint primary fill). `.theme-admonition`
+ * keeps this off the FAQ <details>, which share the `alert--info` class. */
+.theme-admonition.alert--info,
+.theme-admonition.alert--secondary {
+ --ifm-alert-border-color: var(--ifm-color-primary);
+ --ifm-alert-background-color: rgba(244, 149, 65, 0.1);
+ --ifm-alert-background-color-highlight: rgba(244, 149, 65, 0.15);
+ --ifm-alert-foreground-color: var(--ifm-color-content);
+}
+
+[data-theme='dark'] .theme-admonition.alert--info,
+[data-theme='dark'] .theme-admonition.alert--secondary {
+ --ifm-alert-background-color: rgba(244, 149, 65, 0.06);
+ --ifm-alert-background-color-highlight: rgba(244, 149, 65, 0.1);
+}
+
/* ---------------------------------------------------------------- Buttons -- */
/* Pill-shaped buttons, matching the website's rounded CTAs. */
diff --git a/docs/src/pages/index.module.css b/docs/src/pages/index.module.css
index e580c6ce2..7827df61a 100644
--- a/docs/src/pages/index.module.css
+++ b/docs/src/pages/index.module.css
@@ -56,11 +56,78 @@
border-color: var(--ifm-color-primary);
}
+/* When a card is itself a link (e.g. the Explore the docs cards), keep the
+ regular text styling rather than the default link color/underline. */
+a.featureCard,
+a.featureCard:hover {
+ display: block;
+ color: inherit;
+ text-decoration: none;
+}
+
.featureEmoji {
font-size: 2rem;
margin-bottom: 0.75rem;
}
+/* Generic content section. */
+.section {
+ padding: 4rem 0;
+}
+
+.sectionAlt {
+ background: var(--ifm-background-surface-color);
+ border-top: 1px solid var(--ifm-toc-border-color);
+ border-bottom: 1px solid var(--ifm-toc-border-color);
+}
+
+.sectionTitle {
+ font-size: 2rem;
+ font-weight: 800;
+ letter-spacing: -0.01em;
+ text-align: center;
+ margin-bottom: 0.75rem;
+}
+
+.sectionIntro {
+ max-width: 720px;
+ margin: 0 auto 2.5rem;
+ text-align: center;
+ font-size: 1.1rem;
+ color: var(--ifm-color-content-secondary);
+}
+
+/* Centered prose column (e.g. the privacy explainer). */
+.prose {
+ max-width: 760px;
+ margin: 0 auto;
+ font-size: 1.05rem;
+ color: var(--ifm-color-content-secondary);
+}
+
+.prose p:last-child {
+ margin-bottom: 0;
+}
+
+/* Two-up content cards (Getting Started / Contribute). */
+.contentCard {
+ height: 100%;
+ padding: 1.75rem;
+ border: 1px solid var(--ifm-toc-border-color);
+ border-radius: 12px;
+ background: var(--ifm-background-surface-color);
+}
+
+.contentCard h3 {
+ margin-top: 0;
+}
+
+.contentCard ul {
+ margin-bottom: 0;
+ padding-left: 1.1rem;
+ color: var(--ifm-color-content-secondary);
+}
+
.cta {
padding: 4rem 0 5rem;
text-align: center;
diff --git a/docs/src/pages/index.tsx b/docs/src/pages/index.tsx
index 2b1fb6552..a187e696b 100644
--- a/docs/src/pages/index.tsx
+++ b/docs/src/pages/index.tsx
@@ -16,27 +16,27 @@ type Feature = {
const FEATURES: Feature[] = [
{
emoji: '🔐',
- title: 'Secure Passwords',
+ title: 'Zero-Knowledge Encryption',
description:
- 'Store and manage passwords with zero-knowledge, client-side encryption. Your master password never leaves your device.',
+ 'Your entire vault is encrypted client-side before it reaches the server. Your master password never leaves your device.',
},
{
emoji: '📧',
- title: 'Email Aliases',
+ title: 'Built-in Email Server',
description:
- 'Generate a unique email address for every service using the built-in email server, and read messages straight from the app.',
+ 'Generate virtual email addresses for each identity. Emails sent to these addresses are instantly visible in the AliasVault app.',
},
{
emoji: '🎭',
title: 'Virtual Identities',
description:
- 'Create and manage separate online identities, each with its own aliases, for different purposes.',
+ 'Create separate identities for different purposes, each with its own email aliases.',
},
{
emoji: '🏠',
title: 'Self-Hosted',
description:
- 'Run AliasVault on your own infrastructure with Docker — a managed install script or a single all-in-one container.',
+ 'Run AliasVault on your own infrastructure with Docker: a managed install script or a single all-in-one container.',
},
{
emoji: '🔓',
@@ -83,11 +83,19 @@ function HomepageHeader() {
function HomepageFeatures() {
return (
- <section className={styles.features}>
+ <section className={styles.section}>
<div className="container">
+ <Heading as="h2" className={styles.sectionTitle}>
+ Key Features
+ </Heading>
+ <p className={styles.sectionIntro}>
+ Unique features that make AliasVault stand out from other password managers:
+ </p>
<div className="row">
{FEATURES.map((feature) => (
- <div key={feature.title} className={clsx('col col--4', styles.feature)}>
+ <div
+ key={feature.title}
+ className={clsx('col col--4', styles.feature)}>
<div className={styles.featureCard}>
<div className={styles.featureEmoji}>{feature.emoji}</div>
<Heading as="h3">{feature.title}</Heading>
@@ -101,16 +109,122 @@ function HomepageFeatures() {
);
}
+type DocArea = {
+ emoji: string;
+ title: string;
+ description: string;
+ to: string;
+};
+
+const DOC_AREAS: DocArea[] = [
+ {
+ emoji: '🖥️',
+ title: 'Self-hosting',
+ description: 'Install and run your own AliasVault server with Docker.',
+ to: '/installation/',
+ },
+ {
+ emoji: '🧩',
+ title: 'Browser extensions',
+ description: 'Set up the extension for Chrome, Firefox, Edge or Safari.',
+ to: '/installation/browser-extensions/',
+ },
+ {
+ emoji: '📱',
+ title: 'Mobile apps',
+ description: 'Get AliasVault on iOS and Android.',
+ to: '/installation/mobile-apps/',
+ },
+ {
+ emoji: '🏗️',
+ title: 'Architecture',
+ description: 'Understand how AliasVault is built and secured.',
+ to: '/architecture/',
+ },
+];
+
+function ExploreDocs() {
+ return (
+ <section className={clsx(styles.section, styles.sectionAlt)}>
+ <div className="container">
+ <Heading as="h2" className={styles.sectionTitle}>
+ Explore the documentation
+ </Heading>
+ <p className={styles.sectionIntro}>
+ Jump straight to what you need, whether you&apos;re setting up a server
+ or connecting your apps.
+ </p>
+ <div className="row">
+ {DOC_AREAS.map((area) => (
+ <div key={area.title} className={clsx('col col--3', styles.feature)}>
+ <Link to={area.to} className={styles.featureCard}>
+ <div className={styles.featureEmoji}>{area.emoji}</div>
+ <Heading as="h3">{area.title}</Heading>
+ <p>{area.description}</p>
+ </Link>
+ </div>
+ ))}
+ </div>
+ </div>
+ </section>
+ );
+}
+
+function GettingStartedAndContribute() {
+ return (
+ <section className={styles.section}>
+ <div className="container">
+ <div className="row">
+ <div className="col col--6">
+ <div className={styles.contentCard}>
+ <Heading as="h3">🚀 Getting Started</Heading>
+ <p>
+ Ready to get started with AliasVault? Spin up your own instance
+ with Docker in minutes, then connect the browser extension and
+ mobile apps.
+ </p>
+ <p>
+ <Link to="/installation/">Read the server installation guide →</Link>
+ </p>
+ </div>
+ </div>
+ <div className="col col--6">
+ <div className={styles.contentCard}>
+ <Heading as="h3">🤝 Want to Contribute?</Heading>
+ <p>Help make AliasVault better for everyone:</p>
+ <ul>
+ <li>
+ <strong>🌍 Translate the UI</strong>: help translate
+ AliasVault into your language.
+ </li>
+ <li>
+ <strong>👤 Add Name Dictionaries</strong>: provide names for
+ the identity generator.
+ </li>
+ </ul>
+ <p>
+ <Link to="/contributing/">See all ways to contribute →</Link>
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+ );
+}
+
export default function Home(): ReactNode {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={`${siteConfig.title} Documentation`}
- description="AliasVault — open-source, self-hostable password and identity manager with built-in email aliasing.">
+ description="AliasVault: open-source, self-hostable password and identity manager with built-in email aliasing.">
<HomepageHeader />
<main>
<HomepageFeatures />
- <section className={styles.cta}>
+ <ExploreDocs />
+ <GettingStartedAndContribute />
+ <section className={clsx(styles.cta, styles.sectionAlt)}>
<div className="container">
<Heading as="h2">Ready to get started?</Heading>
<p>
diff --git a/docs/src/theme/NotFound/Content/index.tsx b/docs/src/theme/NotFound/Content/index.tsx
new file mode 100644
index 000000000..71d94da0c
--- /dev/null
+++ b/docs/src/theme/NotFound/Content/index.tsx
@@ -0,0 +1,63 @@
+import type {ReactNode} from 'react';
+import clsx from 'clsx';
+import Link from '@docusaurus/Link';
+import Translate from '@docusaurus/Translate';
+import type {Props} from '@theme/NotFound/Content';
+import Heading from '@theme/Heading';
+
+export default function NotFoundContent({className}: Props): ReactNode {
+ return (
+ <main className={clsx('container margin-vert--xl', className)}>
+ <div className="row">
+ <div className="col col--8 col--offset-2">
+ <Heading as="h1" className="hero__title">
+ <Translate id="theme.NotFound.title">
+ This page slipped behind the vault door
+ </Translate>
+ </Heading>
+ <p>
+ <Translate id="theme.NotFound.p1">
+ We couldn&apos;t find that page. It may have moved as the docs were
+ reorganized, or the link that brought you here is out of date.
+ </Translate>
+ </p>
+ <p>
+ <Translate id="theme.NotFound.p2">
+ Try one of these instead:
+ </Translate>
+ </p>
+ <ul>
+ <li>
+ <Link to="/">Documentation home</Link>
+ </li>
+ <li>
+ <Link to="/installation/">Self-host install guide</Link>
+ </li>
+ <li>
+ <Link to="/installation/browser-extensions/">Browser extensions</Link>
+ </li>
+ <li>
+ <Link to="/installation/mobile-apps/">Mobile apps</Link>
+ </li>
+ <li>
+ <Link to="/contributing/">Contributing</Link>
+ </li>
+ </ul>
+ <p>
+ Still stuck? Open an issue on{' '}
+ <Link href="https://github.com/aliasvault/aliasvault/issues">
+ GitHub
+ </Link>{' '}
+ or reach out via the <Link to="/contact/">help &amp; support</Link>{' '}
+ page.
+ </p>
+ <div className="margin-top--lg">
+ <Link className="button button--primary button--lg" to="/">
+ Back to the docs
+ </Link>
+ </div>
+ </div>
+ </div>
+ </main>
+ );
+}