Skip to main content

Storage Architecture

Auk stores all data as plain JSON files on your local file system, providing complete transparency and control.

Plain Text JSON

Human-readable JSON format for all data

Git-Friendly

Text files work perfectly with version control

Portable

Easy to backup, move, and share

No Database

No database setup or maintenance required

Directory Structure

Workspace Root

Each workspace has its own directory:

File Formats

Collection File

Collections are stored as JSON:

Environment File

Environments store variables:

History File

Request history is stored by month:

Settings File

Workspace configuration:

File Operations

Atomic Writes

Auk uses atomic file operations to prevent corruption:
1

Write to Temporary File

Data is first written to a temporary file:
2

Validate JSON

JSON is validated before committing
3

Atomic Rename

Temporary file is atomically renamed:
4

Cleanup

Old temporary files are cleaned up

File Locking

Prevents concurrent write conflicts:
  • Created before write operations
  • Released after completion
  • Prevents simultaneous writes
  • Timeout after 30 seconds

File Watching

Auk monitors files for external changes:
  • Detects modifications by other tools
  • Reloads data automatically
  • Prompts for conflict resolution if needed
  • Works with external editors

Storage Locations

Default Locations

Custom Locations

You can store workspaces anywhere:

Performance Considerations

File Size Limits

Recommended limits for optimal performance:

Large Collections

For large collections, consider splitting:

History Management

History is automatically managed:
  • Monthly Files - One file per month
  • Auto-Cleanup - Old history deleted after retention period
  • Compression - Old files can be compressed

Data Integrity

Validation

All files are validated on read/write:
  • JSON Schema - Validates structure
  • Version Check - Ensures compatibility
  • Checksum - Detects corruption

Backup Before Write

Auk creates backups before modifications:

Recovery

If corruption is detected:
  1. Auto-Recovery - Attempt to repair
  2. Backup Restore - Restore from backup
  3. Git Restore - Restore from Git history
  4. Manual Edit - Edit JSON directly

External Access

Direct File Editing

You can edit files directly with any text editor:
Auk will detect changes and reload automatically. Ensure JSON is valid before saving.

Scripting

Automate with scripts:

Import/Export

Easy data portability:

Security

File Permissions

Auk sets restrictive permissions:

Secret Variables

Environment variables marked as secret:
  • Not displayed in UI by default
  • Can be excluded from Git
  • Encrypted at rest (coming soon)

Git Ignore

Recommended .gitignore:

Next Steps

Data Location

Find your workspace data

Backup & Restore

Backup and recovery strategies

Git Sync

Version control with Git

Data Security

Secure your API data (coming soon)