---
title: "Discussion on \"Understanding IndexedDB. The complete guide.\" | Hashnode"
description: "Discussion on \"Understanding IndexedDB. The complete guide.\". Before we start\nI have been working with IndexedDB for more than 3 years. When I just started, I thought, huh, it's similar to MongoDB, easy-peasy. Quite fast I understood that:\n\nThe native API is not that easy to use, you need a handy wrapper like D..."
url: "https://hashnode.com/posts/indexeddb-guide/6578595ec0bc454bd8fe65bb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understanding IndexedDB. The complete guide.](https://blog.xnim.me/indexeddb-guide?utm_source=hashnode&utm_medium=feed)

Before we start I have been working with IndexedDB for more than 3 years. When I just started, I thought, huh, it's similar to MongoDB, easy-peasy. Quite fast I understood that: The native API is not that easy to use, you need a handy wrapper like D...

Dec 12, 2023 · 22 min read · blog.xnim.me  
Read the article

-   [#indexeddb](https://hashnode.com/tag/indexeddb)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Nik](https://hashnode.com/@xnim)

@xnim · London, UK

  
[View profile](https://hashnode.com/@xnim)

SWE@Meta, Whatsapp

Software engineer @Meta, WhatsApp, building secure, e2ee messaging experience for users. ex-HH.ru ex-Program committee member HolyJS conference

## Responses 5

Markdown supported · ⌘↵ to post

[Alina Olga](https://hashnode.com/@alinaolga727)

[Dec 12, 2024](https://hashnode.com/posts/indexeddb-guide/6578595ec0bc454bd8fe65bb/comment/675ad04962a25acde6a74cc9)

Hi, My name is Alina, i'm Ukrainian and a Medical Doctor. I have come to understand that this platform is a community that allows people to publish articles, stay connected with a global developers. I saw your profile and decided to contact you and thought I’d reach out you hoping we can be friends!. I'd love to hear about any great experiences you have. Looking forward to connecting!. Please reach out to me through (Alinaolga727 @ g m a i l . c o m ), I will equally tell you more about myself, Let's connect and share some experiences! have a wonderful day

[Nerdy Deeds](https://hashnode.com/@nerdydeeds)

[Dec 2, 2024](https://hashnode.com/posts/indexeddb-guide/6578595ec0bc454bd8fe65bb/comment/674e0b3905fc05168cd2460a)

[Nik](https://hashnode.com/@xnim): This is an outstanding guide. Arguably the most comprehensive I've seen (and one helluva lot better than the laughably-worthless offering by MDN).

I've personally used IndexedDB for several years, now, for tasks ranging from local storage for the client segment of an MPC encryption identity token to a 1:1 mirror of a full Jira implementation (to permit more granular queries against the dataset). Even wrote a full SQL-syntax abstraction layer over it, once, and am currently in the midst of writing a dynamic-hierarchy proxied abstraction layer over it as we speak.

All that said, I STILL learned quite a bit from this. I had no idea some of this was the case (and, while it has necessitated re-writing a swath of my library code, this is gonna prove invaluable for some of the querying algorithms). THANKS!

Sub'd and followed!

[Alina Olga](https://hashnode.com/@alinaolga727)

[Dec 12, 2024](https://hashnode.com/posts/indexeddb-guide/6578595ec0bc454bd8fe65bb/comment/674e0b3905fc05168cd2460a#reply-675ad068bc8be342f29b27ec)

Hi, My name is Alina, i'm Ukrainian and a Medical Doctor. I have come to understand that this platform is a community that allows people to publish articles, stay connected with a global developers. I saw your profile and decided to contact you and thought I’d reach out you hoping we can be friends!. I'd love to hear about any great experiences you have. Looking forward to connecting!. Please reach out to me through (Alinaolga727 @ g m a i l . c o m ), I will equally tell you more about myself, Let's connect and share some experiences! have a wonderful day

[Amna](https://hashnode.com/@Camilla34)

[Apr 11, 2024](https://hashnode.com/posts/indexeddb-guide/6578595ec0bc454bd8fe65bb/comment/66182d97e549bacdeeaad4ef)

Okay

[Alina Olga](https://hashnode.com/@alinaolga727)

[Dec 12, 2024](https://hashnode.com/posts/indexeddb-guide/6578595ec0bc454bd8fe65bb/comment/66182d97e549bacdeeaad4ef#reply-675ad061ef2442af99ce4fc9)

Hi, My name is Alina, i'm Ukrainian and a Medical Doctor. I have come to understand that this platform is a community that allows people to publish articles, stay connected with a global developers. I saw your profile and decided to contact you and thought I’d reach out you hoping we can be friends!. I'd love to hear about any great experiences you have. Looking forward to connecting!. Please reach out to me through (Alinaolga727 @ g m a i l . c o m ), I will equally tell you more about myself, Let's connect and share some experiences! have a wonderful day

[Aryan Singh](https://hashnode.com/@singharyan45)

[Feb 15, 2024](https://hashnode.com/posts/indexeddb-guide/6578595ec0bc454bd8fe65bb/comment/65ce30180dbcb6e7f2946858)

Hey Nik ! While you covered everything about indexedDB and I appreciate the amount of insights I have gained into this tech but, can you pls tell me in what cases shall I use indexedDB for my web app ?

[Nik](https://hashnode.com/@xnim)

[Apr 2, 2024](https://hashnode.com/posts/indexeddb-guide/6578595ec0bc454bd8fe65bb/comment/65ce30180dbcb6e7f2946858#reply-660c4fbaf55714f0f1530a41)

Hey! I can think of a number of use cases:

1.  Offline-first applications (e.g. Google Docs, where the document can be available offline, or todoist, where you might want to allow user to work with the app while user is offline)
    
2.  E2e encrypted apps: you need to store the keys somewhere and either derive them from password, or, store locally. E.g. WhatsApp.
    
3.  Dynamic caching -- if the performance in your app is extremely important, and fetching the data from the remote server is slow.
    

[Alina Olga](https://hashnode.com/@alinaolga727)

[Dec 12, 2024](https://hashnode.com/posts/indexeddb-guide/6578595ec0bc454bd8fe65bb/comment/65ce30180dbcb6e7f2946858#reply-675ad056a0e8d75f3ca74cc8)

Hi, My name is Alina, i'm Ukrainian and a Medical Doctor. I have come to understand that this platform is a community that allows people to publish articles, stay connected with a global developers. I saw your profile and decided to contact you and thought I’d reach out you hoping we can be friends!. I'd love to hear about any great experiences you have. Looking forward to connecting!. Please reach out to me through (Alinaolga727 @ g m a i l . c o m ), I will equally tell you more about myself, Let's connect and share some experiences! have a wonderful day

[Davina Methew](https://hashnode.com/@davinam)

[Dec 15, 2023](https://hashnode.com/posts/indexeddb-guide/6578595ec0bc454bd8fe65bb/comment/657c6244f7ee9350b5c74f4d)

Its complete guide.

[Alina Olga](https://hashnode.com/@alinaolga727)

[Dec 12, 2024](https://hashnode.com/posts/indexeddb-guide/6578595ec0bc454bd8fe65bb/comment/657c6244f7ee9350b5c74f4d#reply-675ad05d3e7dc8267e0238a3)

Hi, My name is Alina, i'm Ukrainian and a Medical Doctor. I have come to understand that this platform is a community that allows people to publish articles, stay connected with a global developers. I saw your profile and decided to contact you and thought I’d reach out you hoping we can be friends!. I'd love to hear about any great experiences you have. Looking forward to connecting!. Please reach out to me through (Alinaolga727 @ g m a i l . c o m ), I will equally tell you more about myself, Let's connect and share some experiences! have a wonderful day
