Scan your whole stack
From OX Research Newsroom
Are you using @tallyui/storage-sqlite?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v5.6.0
@tallyui/storage-sqlite was last scanned on 28 Nov 2026 at version 5.6.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 5.6.0 LATEST | 28 Nov 2026 | No rules fired |
| 5.5.0 | 27 Nov 2026 | No rules fired |
| 5.4.0 | 27 Nov 2026 | No rules fired |
| 5.3.0 | 26 Nov 2026 | Not shown |
| 5.2.0 | 26 Nov 2026 | Not shown |
Findings for v5.6.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 5.6.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
RxDB Premium SQLite storage for TallyUI: a synchronous SQLite handle
(expo-sqlite) on native, and SQLite-wasm on opfs-sahpool in one dedicated
worker on the web (ADR-061 in docs/DECISIONS.md).
rxdb-premium needs a licence key to install (ADR-031). Locally, set
RXDB_PREMIUM=<token>, see docs/CONTRIBUTING.md; in CI it comes from the
RXDB_PREMIUM secret. expo-sqlite and @sqlite.org/sqlite-wasm are both
optional peer dependencies: a native app installs only the first, a web app
only the second.
3.0.0 moves to RxDB and RxDB Premium 17.5.0 (with @tallyui/pos and
@tallyui/database 3.0.0). See ADR-069 in docs/DECISIONS.md.
rxdb and rxdb-premium to exactly 17.5.0.toggleOnDocumentVisible to true: a replication no longer
keeps a hidden tab awake, so a browser may throttle its pull (see the
changeset for the detail).SQLiteDatabase from openDatabaseSync, checked at
compile time by typecheck/expo-handle.ts. The peer range allows 15, which
isn't checked.node:sqlite DatabaseSync wrapped like src/node-sqlite.test-helper.ts.getRxStorageSQLiteWasm takes workerInput; the worker opens its own
SQLite-wasm opfs-sahpool handle, so callers do not supply a database handle.Any handle with execSync, getAllSync, and runSync matching the minimal
SQLiteDatabase interface works with getRxStorageSQLite.
getRxStorageSQLiteWasm (from @tallyui/storage-sqlite/web) runs SQLite-wasm
on opfs-sahpool inside one dedicated worker, reached through RxDB Premium's
getRxStorageWorker in mode 'one'. createSyncAccessHandle, which
opfs-sahpool needs, exists only inside a dedicated worker, and opfs-sahpool
holds exclusive OPFS access handles for the whole origin — so the app must
run exactly one live tab, one dedicated worker per store (ADR-061 in
docs/DECISIONS.md); a second tab cannot open storage at all, and the
recovery from a dead or hung worker is a reload.
The app supplies the worker itself, as workerInput:
import { getRxStorageSQLiteWasm } from '@tallyui/storage-sqlite/web';
const storage = getRxStorageSQLiteWasm({ workerInput /* see below */ });
Pass a module-worker factory as workerInput:
const storage = getRxStorageSQLiteWasm({
workerInput: () =>
new Worker(new URL('@tallyui/storage-sqlite/web-worker', import.meta.url), { type: 'module' }),
});
and exclude the wasm package from dependency pre-bundling, so Vite emits
sqlite3.wasm as a static asset instead of trying to bundle it:
// vite.config.ts
export default defineConfig({
optimizeDeps: { exclude: ['@sqlite.org/sqlite-wasm'] },
});
Metro cannot bundle a module worker, so a Metro app prebuilds the
@tallyui/storage-sqlite/web-worker entry, together with sqlite3.wasm,
into the app's public/ folder, as part of the app's own build:
npm install --save-dev esbuild
npx tallyui-build-sqlite-worker public/
Add the built files to the app's .gitignore (they link rxdb-premium code
under the app's own licence, so they must never be committed or published):
public/tallyui-sqlite-worker.js
public/sqlite3.wasm
and pass the built file's string URL as workerInput:
const storage = getRxStorageSQLiteWasm({ workerInput: '/tallyui-sqlite-worker.js' });
WCPOS next prebuilds its own worker the same way, as part of its own build
step.
workerOptions (the module type and the worker's debug name) only applies
when workerInput is a string or URL — RxDB Premium then constructs the
Worker itself. When workerInput is a function, as in the Vite example,
the function creates the Worker, so workerOptions is ignored; pass
{ type: 'module' } (and a name, if wanted) to the constructor call inside
the function instead.
If the worker's start-up fails, every storage call rejects instead of hanging. Each error carries its cause's name and message in its own message, since the cause itself doesn't cross the worker channel. Three failures have their own predicate, and their own sentence for the cashier:
isStorageUnavailableError (a
StorageUnavailableError). The browser gives the page no usable OPFS:
navigator.storage.getDirectory() fails, or sync access handles are
missing. This is what happens in a private window: Safari Private
Browsing (WebKit's ephemeral storage, #293) refuses OPFS. No other tab is
involved, and neither closing tabs nor reloading helps.isStorageHeldError (a StorageWorkerStartError
whose message says another tab holds the database). OPFS is reachable, but
another tab holds the opfs-sahpool database (WebKit's InvalidStateError,
Chromium's NoModificationAllowedError).isRxdbRemoteVersionMismatch from @tallyui/core
(RxDB's RM1, #280). After an upgrade the browser may still have the old
worker cached, and RxDB refuses it; a reload loads the matching worker.Any other start failure is a generic StorageWorkerStartError ("SQLite
worker start failed", with its cause). isStorageWorkerStartError is true
for any failed start except storage unavailable; use the three predicates
above to choose the wording, in this order:
import { isRxdbRemoteVersionMismatch } from '@tallyui/core';
import { isStorageHeldError, isStorageUnavailableError } from '@tallyui/storage-sqlite/web';
try {
await db.addCollections({ /* ... */ });
} catch (error) {
if (isStorageUnavailableError(error)) {
showMessage(
"This till can't save sales in a private window.",
'Open it in a normal Safari window (or another browser) and sign in again. Nothing has been lost: no sale was taken here.'
);
} else if (isStorageHeldError(error)) {
showMessage('This till is already open in another tab. Close the other tab, then reload this one.');
} else if (isRxdbRemoteVersionMismatch(error)) {
showMessage('This till needs a quick reload to finish updating. Reload the page.');
} else {
throw error; // or the app's own generic failure message
}
}
A second tab must never open storage while the first one holds it; see
ADR-061 in docs/DECISIONS.md for the accepted take-over flow (a
BroadcastChannel hand-over with a timeout, and a parked "POS is open in
another tab" screen), which is a separate job from this package.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.