sqlmath is an SQLite extension providing data science superpowers: 500+ built-in SQL functions for statistics, machine learning (via LightGBM), signal processing, compression, cryptography, and arrays. Current stable version is v2026.4.31, released monthly. Unlike other SQL analytics tools, sqlmath runs fully in-browser via WebAssembly or as a Node.js / Python library, with zero server dependencies. It includes a live web demo at sqlmath.github.io.
npm install sqlmathNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize sqlmath with sql.js, create a table, insert data, and run aggregate statistical functions.
Use STDDEV_SAMP instead of STDEV_SAMP.
Remove separate import 'sqlmath/crypto'. All crypto functions are now available after initSqlMath().
Ensure sql.js and sqlmath are loaded in the worker thread, then call initSqlMath(db) on the worker's database.
Use import { initSqlMath } from 'sqlmath'Pass an instance of SQL.Database from sql.js: const db = new SQL.Database(); initSqlMath(db);
No dependency data recorded yet.