
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
indexed-table
Advanced tools
indexed-table is a lightweight in-memory DataFrame for JavaScript. At less than 3 KB minified, it's between 100 and 1000 times smaller than more full-featured DataFrame libraries like Arquero, https://sql.js.org/, or Danfo.
You can install indexed-table via npm:
npm install indexed-table
First, import the IndexedTable class:
import { IndexedTable } from "indexed-table";
To create a new IndexedTable, use the IndexedTable.create method:
const myTable = IndexedTable.create([
{ person: "Alice", activity: "hiking", rating: 5 },
{ person: "Alice", activity: "swimming", rating: 3 },
{ person: "Bob", activity: "hiking", rating: 2 },
{ person: "Bob", activity: "swimming", rating: 4 },
{ person: "Bob", activity: "running", rating: 5 },
{ person: "Charlie", activity: "swimming", rating: 5 },
{ person: "Charlie", activity: "running", rating: 1 },
]);
IndexedTable methods return new tables, allowing you to chain multiple operations together:
const results = myTable
.where({ person: "Bob" })
.select("activity", "rating");
The where method filters myTable to only include rows where the person is Bob. The select method then returns a new table with only the activity and rating columns.
IndexedTable supports the creation of indexes on any combination of fields:
myTable.createIndex("activity", "rating");
After creating the index, queries that filter on the activity and rating fields will be faster.
You can also delete indexes:
myTable.deleteIndex("activity", "rating");
IndexedTable supports the imposition of uniqueness constraints on any combination of fields:
myTable.uniquenessConstraint("person", "activity");
Imposing a uniqueness constraint creates an index on the given columns automatically. Using the deleteIndex method on a combination of columns that has a uniqueness constraint removes both the index and the constraint.
You can insert new records with the insert method:
myTable.insert({ person: "Charlie", activity: "hiking", rating: 4 });
If you insert a record that would violate a uniqueness constraint, existing records are deleted as necessary to accommodate the new record:
myTable.insert({ person: "Alice", activity: "hiking", rating: 4 });
The single method can be used to retrieve a single value from the table. For example, to get Bob's rating for hiking:
const rating = myTable
.where({ person: "Bob", activity: "hiking" })
.select("rating")
.single();
You can think of a IndexedTable like a souped-up Javascript Map. It:
These capabilities are especially useful as an alternative to the pattern of storing the same data in multiple Map objects to support a variety of different lookup patterns that you need in your application. DataFrame libraries are seldom used for this purpose because they are large and their ergonomics are not well-suited to it. IndexedTable is small enough to be used in place of Map whenever it would be convenient.
IndexedTable is not a replacement for a relational database. It does not provide features like transactions, joins, aggregations, sorting, and many other features that relational databases provide.
Likewise, IndexedTable is not a replacement for a full-featured DataFrame library. It achieves its small size by omitting many features that are important for data analysis but not necessary for use cases that are doable but cumbersome with a Map.
In summary, here are the options mentioned in this README in increasing order of size and complexity:
Map, built-in - a two-column store that supports fast lookup of values based on keys.IndexedTable, 3 KB - a multi-column store that supports fast lookup of data based on any combination of columns.DataFrame, ~100 KB - a multi-column store that includes a wide variety of statistically useful features, typically including the ones provided by IndexedTable.DataFrame library and many additional features.This library is tested with Jest. Please see the test files for detailed usage examples.
The library is documented with JSDoc. This means that you can look to the source code for detailed documentation of each available method, and you can also read docstrings in any IDE that supports JSDoc.
This library is licensed under the MIT license. See the LICENSE file for more details.
FAQs
A tabular data structure that supports indexing
We found that indexed-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.