SlimSQL is a lightweight in-memory SQL query engine for JavaScript, version 1.0.15. It allows running SQL queries directly on JavaScript arrays by registering them as virtual tables. It supports SELECT, JOINs, window functions (e.g., RANK), WHERE, GROUP BY, ORDER BY, and aggregation. Different from libraries like alasql, SlimSQL is minimal (43KB gzipped) with no dependencies, TypeScript types included, and focuses on basic SQL for data exploration. Release cadence is moderate; last update May 2023. Works in Node.js and browsers (ESM/CJS/UMD).
npm install slimsqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a SQLSession, registering a JavaScript array as a table, and querying with a basic SELECT with WHERE clause.
Ensure unique table names; use 'existsTableView' method to check.
Use only supported SQL features; read docs for limitations.
Use IS NULL / IS NOT NULL explicitly.
For large datasets, consider chunking or offloading to Web Workers (browser).
Add 'type':'module' to package.json or use require('slimsql') with CJS.Use import { SQLSession } from 'slimsql' instead of require.Method name is 'registTableView' (no 'er' after 'regist'). Use exact string: session.registTableView(...).
No dependency data recorded yet.