SQLite in Browsers

Discussions center on native SQLite support in web browsers, the deprecation of WebSQL in favor of IndexedDB, and alternatives like WASM-based SQLite implementations for client-side persistence.

📉 Falling 0.3x Databases
1,894
Comments
20
Years Active
5
Top Authors
#9053
Topic ID

Activity Over Time

2007
1
2008
3
2009
8
2010
54
2011
65
2012
68
2013
52
2014
116
2015
124
2016
57
2017
77
2018
83
2019
76
2020
132
2021
300
2022
195
2023
195
2024
167
2025
119
2026
2

Keywords

FF CPU CRDT Atomics.wait WebAssembly UI WASM IE6 SQL UX sqlite browser wasm sql database browsers db specification w3c web

Sample Comments

__jonas Aug 8, 2023 View on HN

Why not just use IndexedDB in the browser if you don’t want an SQL database?

recusive_story Dec 1, 2023 View on HN

Local to a webpage, do you feel building wrapper over indexedDB instead of sqlite would be better idea?

Touche Jan 29, 2014 View on HN

WebSQL has been deprecated for a few years now, you should go ahead and pick an IndexedDB library and start using it.

0x073 Feb 8, 2024 View on HN

Sad story, database could be native in browsers. Only because every browser adapt the same technology sqlite and w3c said no....

samwillis Oct 28, 2022 View on HN

WebSQL is dead, long live WASM SQLite.And in all seriousness, WASM is exactly the way this should be done. It doesn’t tie a db engine to a specific standardised version. It’s far more important to develop low level block storage apis like the OPFS that WASM SQLite is using.

philipyoungg May 20, 2021 View on HN

Does this mean we can use sqlite natively on the browser now?

xani_ Sep 7, 2022 View on HN

It would be probably other way around if browsers, that just use sqlite underneath, exposed it as offical API for storing data and not that abortion of a database called IndexedDB

jvm Oct 10, 2012 View on HN

Isn't WebSQL supposed to be replaced by IndexedDB?(which FF has btw)

ofriw Feb 25, 2025 View on HN

Have you tried using SQLite in the browser and have it play nice with a DB in the back?

axemclion May 18, 2012 View on HN

Well, WebSql is deprecated, so looks like IndexedDB is the future ..... the shim till then !!