A lightweight JavaScript library that provides an SQL-like query interface for filtering, grouping, and joining in-memory arrays of objects. Version 0.0.1 (current stable 0.1.0) offers a fluent API with methods like select(), from(), where(), groupBy(), having(), and execute(). It supports cross joins between multiple arrays and custom predicate functions. Unlike full SQL databases or query builders (e.g., alasql), SQL-js operates entirely in-memory with zero dependencies, making it ideal for trivial client-side data manipulation. Development appears slow with no recent releases.
npm install sql-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: import query, filter array using where with a predicate, and execute.
Use .select() without arguments; do not expect column projection.
Filter cross join results with .where() and custom predicates to simulate joins.
Pass a function that extracts the grouping key instead of a string.
Use `import { query } from 'sql-js'` and invoke `query()` to start the builder chain.Use `import { query } from 'sql-js'` instead of `import query from 'sql-js'`.Ensure .from() receives an array (or multiple arrays for cross join).
No dependency data recorded yet.