LocalStorage vs. IndexedDB vs. Cookies vs. OPFS vs. WASM-SQLite | RxDB - JavaScript Database
Briefly

Cookies were first introduced by netscape in 1994. They store small pieces of key-value data primarily for session management, personalization, and tracking. However, due to their limited storage capacity and overhead of being sent with every HTTP request, their use is now constrained to specific scenarios.
The advent of technologies such as localStorage, IndexedDB, and OPFS has transformed data storage in browsers, allowing for more complex and larger-scale operations, especially suitable for local first apps that provide zero-latency interactions even offline.
Read at Rxdb
[
|
]