Storage Subsystem

Persistent data management layer for cookies, LocalStorage, SessionStorage, IndexedDB, and the unified HTTP cache.

Capabilities

IndexedDB Implementation

Full implementation of the async transactional object store database API using SQLite under the hood.

Key-Value Stores

Sync and async key-value mappings managing LocalStorage and SessionStorage across origins.

Cookie Jar

RFC6265 compliant cookie management handling SameSite policies, HTTPOnly flags, and secure traits.

Disk Cache

LRU-based HTTP resource caching to filesystem mapping, reducing bandwidth and improving load times.

Quota Management

Granular storage limits enforced per origin to prevent abuse (e.g., persistent vs temporary limits).

Incognito Volatility

In-memory overrides for all storage classes during private browsing mode; securely wiped on exit.

Data Topography

┌────────────────────────────────────────────────────────┐
User Profile Directory
~/.config/zeprabrowser/Default/
└───────────────────────────┬────────────────────────────┘

┌───────────────────────────▼────────────────────────────┐
Cookies (SQLite)
├─ host_key, name, value, path, expires_utc, secure

Local Storage (LevelDB)
├─ partitioned by: https://example.com/

IndexedDB (SQLite/LevelDB hybrid)
├─ /IndexedDB/https_example.com_0.indexeddb/

Cache (Custom Block Format)
├─ /Cache/Cache_Data/index
├─ /Cache/Cache_Data/data_0, data_1 (Block files)
└────────────────────────────────────────────────────────┘
ZepraBrowser Storage Subsystem© 2026 KetiveeAI
HomeDocsCommunityBlog