web-sqlite-js (CDN)

Minimal example showing how to load web-sqlite-js from a CDN in a plain HTML page.

Goal

Use the CDN build with no bundler and confirm basic CRUD works in the browser.

What this page does

  1. Loads the prebuilt module from https://cdn.jsdelivr.net/npm/web-sqlite-js@1.0.5/dist/index.js.
  2. Opens a local database file named local.sqlite3.
  3. Creates a notes table, inserts a sample row, and queries all rows.
  4. Shows the query result below.

Note: Serve this page with COOP/COEP headers so SharedArrayBuffer works.

Result

Loading...