{"library":"htmx-sqlite","type":"library","category":null,"description":"An htmx extension that enables SQLite database queries directly from HTML attributes using either HTTP remote databases or the Origin Private File System (OPFS) in the browser. Version 1.9.3 wraps the sqlite-wasm-http library to provide declarative CRUD operations via hx-get, hx-put, hx-post, hx-delete attributes, supporting bind parameters and streaming row-by-row responses. It emits custom htmx events for progress and completion. Currently experimental with limited real-world use; requires copying worker files and a .wasm binary to the server due to cross-domain Web Worker restrictions. Key differentiator: brings serverless SQLite to htmx without a backend, but is early-stage and may have caching issues with the default shared backend.","language":"javascript","status":"deprecated","version":"1.9.3","tags":["javascript","Htmx","extension","SQLite","OPFS"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install htmx-sqlite","imports":["Use via HTML attribute hx-ext=\"sqlite\" after including script tags for sqlite-wasm-http-main.js and htmx-sqlite/sqlite.min.js.","Copy dist/sqlite-wasm-http-main.js (and related workers) to your server, then include via <script src=\"...sqlite-wasm-http-main.js\"></script>","<body hx-ext=\"sqlite\" hx-db=\"http:/mydb.db\"> or hx-db=\"opfs:mydb.db\""]},{"cmd":"yarn add htmx-sqlite","imports":[]},{"cmd":"pnpm add htmx-sqlite","imports":[]}],"homepage":"https://github.com/jyrimatti/htmx-sqlite#readme","github":"https://github.com/jyrimatti/htmx-sqlite","docs":null,"changelog":null,"pypi":null,"npm":"htmx-sqlite","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}