Skip navigation
You can put SQLite in the browser now? Yeah, here's how ๐Ÿ‘€
0:00 / 1:18

You can put SQLite in the browser now? Yeah, here's how ๐Ÿ‘€

Ben Holmes

@BHolmesDev49K followers

Visit on X
1,027 likesDownloadOriginal post

45,307 views

You can put SQLite in the browser now? Yeah, here's how ๐Ÿ‘€

10 Comments

Comments from the original post on X (Twitter)

  • ~/qudo's profile picture

    @_qudo

    Is this April fools

    7 likes

  • Engid's profile picture

    @NickGideo

    SQLocal rolls off the tongue

    2 likes

  • Firtina Ozbalikci's profile picture

    @firtozb

    Yep, I use this for local first web apps, sharing the same drizzle schema for front and back end, works like a dream.

    2 likes

  • ryan's profile picture

    @dawescc

    iโ€™m sorry what

    1 like

  • Jean's profile picture

    @jemartel98

    or ?

    1 like

  • Ben Holmes's profile picture

    @BHolmesDev

    Ah, there's an important distinction: sql.js runs in memory, while the sqlite wasm build writes to a file. This persists data even when closing your web app

    11 likes

  • Ian Simmons's profile picture

    @isimmons33

    Did Electron and Tauri apps with their own local database just get super easy because of this? IDK but it looks exciting.

  • Manโ€™soour - (ู…ู†ุตูˆุฑ)'s profile picture

    @AmMansoour

    Use cases?

  • David Cozzi II's profile picture

    @davidcozziii

    If only there was this thing where SQLite was just baked into every browser. Probably could call it WebSQL. Sadly, we canโ€™t have nice things ๐Ÿ™

  • Jacob Wolf ๐Ÿ's profile picture

    @JacobWolf

    Recently started using this in CI for a side project: Same concept. Can be in memory or to IndexedDB. Really nice to have a Postgres-compatible API rather than having to adjust my code to write Postgres in prod & SQLite in CI.