diff --git a/README.md b/README.md
index 9ec8990..6ceda3f 100644
--- a/README.md
+++ b/README.md
@@ -103,34 +103,6 @@ sqlite3InitModule({
});
```
-## Usage with the bundled `SQLiteClient` (with OPFS if available):
-
-> **Warning**
->
-> For this to work, you need to set the following headers on your server:
->
-> `Cross-Origin-Opener-Policy: same-origin`
->
-> `Cross-Origin-Embedder-Policy: require-corp`
-
-Import the `@sqlite.org/sqlite-wasm` library in your code and use it as such:
-
-```js
-import { SqliteClient } from '@sqlite.org/sqlite-wasm';
-
-// Must correspond to the path in your final deployed build.
-const sqliteWorkerPath = 'assets/js/sqlite-worker.js';
-// This is the name of your database. It corresponds to the path in the OPFS.
-const filename = '/test.sqlite3';
-
-const sqlite = new SqliteClient(filename, sqliteWorkerPath);
-await sqlite.init();
-
-await sqlite.executeSql('CREATE TABLE IF NOT EXISTS test(a,b)');
-await sqlite.executeSql('INSERT INTO test VALUES(?, ?)', [6, 7]);
-const results = await sqlite.executeSql('SELECT * FROM test');
-```
-
## Usage with vite
If you are using [vite](https://vitejs.dev/), you need to add the following
diff --git a/bin/index.js b/bin/index.js
index 96e9e95..d420400 100644
--- a/bin/index.js
+++ b/bin/index.js
@@ -38,14 +38,6 @@ async function main() {
const sqliteWasmLink = await getSqliteWasmDownloadLink();
await downloadAndUnzipSqliteWasm(sqliteWasmLink);
try {
- fs.copyFileSync(
- './node_modules/comlink/dist/esm/comlink.mjs',
- './src/comlink.mjs',
- );
- fs.copyFileSync(
- './node_modules/comlink/dist/esm/comlink.mjs.map',
- './src/comlink.mjs.map',
- );
fs.copyFileSync(
'./node_modules/module-workers-polyfill/module-workers-polyfill.min.js',
'./demo/module-workers-polyfill.min.js',
diff --git a/demo/comlink.js b/demo/comlink.js
deleted file mode 100644
index f008b4a..0000000
--- a/demo/comlink.js
+++ /dev/null
@@ -1,19 +0,0 @@
-import { SqliteClient } from '/src/sqlite-client.mjs';
-
-const sqliteClient = new SqliteClient('/db.sqlite3', '/src/sqlite-worker.mjs');
-
-await sqliteClient.init();
-
-await sqliteClient.executeSql('CREATE TABLE IF NOT EXISTS t(a,b)');
-
-for (let i = 20; i <= 25; ++i) {
- await sqliteClient.executeSql('INSERT INTO t(a,b) VALUES (?,?)', [i, i * 2]);
-}
-
-const rows = await sqliteClient.executeSql(
- 'SELECT a FROM t ORDER BY a LIMIT 3',
-);
-
-document.querySelector('.comlink').innerHTML = rows
- .map((row) => row.a)
- .join('
');
diff --git a/demo/index.html b/demo/index.html
index b2aa2fc..b71d4f2 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -5,7 +5,6 @@