crcn/sift.js
Use Mongodb queries in JavaScript observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5360
- days_rel: n/a
- days_push: 808
- n_releases_24m: 0
Adoption not part of the score
1702 stars · 101 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Sift.js is a tiny JavaScript library that lets you use MongoDB query operators (like $in, $gt, $regex, $elemMatch) to filter arrays and test values in-memory. It works in Node.js and the browser, supports custom operations, and offers tree-shaking to omit unused operators from bundles.
Use cases
- filter arrays of objects with mongodb-style queries in javascript
- use $in, $gt, $regex operators on in-memory data
- build a query filter function for client-side collections
- test single values against a mongo-like query
- filter data without a database
- create custom query operators for filtering
When to choose
- you want MongoDB query syntax for filtering in-memory arrays in Node or the browser
- you need a small, tree-shakeable filtering utility with no database dependency
- you want to share query logic between server and client code
When to avoid
- you need actual MongoDB database queries against a real database
- you need indexing or query optimization for large datasets
- you prefer a different query syntax like JSONata or lodash predicates
Facets
library · maturity stable
parser developer-tools developer-tools web-development frontend browser cross-platform mongodb-queries filtering query-language javascript nodejs
1 source
- readme: https://github.com/crcn/sift.js · fetched 2026-08-28 · 9ef411f20040
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| crcn/sift.js | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem