danpaz/bodybuilder
An elasticsearch query body builder :muscle: observed · 2026-08-28
Health v2 · maintenance only
51/100
- Activity 63
- 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: 4040
- days_rel: n/a
- days_push: 224
- n_releases_24m: 0
Adoption not part of the score
1245 stars · 127 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Bodybuilder is a small JavaScript library for building Elasticsearch query bodies with a simple, chainable, predictable API. It supports the full Elasticsearch query DSL including queries, filters, aggregations, and suggestions, with compatibility options for Elasticsearch 1.x.
Use cases
- build complex elasticsearch queries programmatically
- construct elasticsearch query DSL without writing raw JSON
- compose nested queries and aggregations in JavaScript
- generate elasticsearch filter and aggregation bodies
- maintain readable elasticsearch query code in Node.js apps
When to choose
- you write Elasticsearch queries in JavaScript/Node.js and want a fluent builder instead of hand-written JSON
- you need to dynamically compose queries, filters, and aggregations at runtime
- you want a lightweight dependency with full query DSL coverage
When to avoid
- you use a different search engine than Elasticsearch
- your queries are static and simple enough to write as plain JSON objects
- you need a client that also handles connections and requests (bodybuilder only builds bodies, it does not send them)
Facets
library · maturity stable
search-engine developer-tools developer-tools apis cross-platform elasticsearch query-builder querydsl dsl search nodejs javascript
4 sources
- readme: https://github.com/danpaz/bodybuilder · fetched 2026-08-28 · 402165e1e231
- homepage: http://bodybuilder.js.org · fetched 2026-08-29 · 1b438d504cc6
- site_page: https://bodybuilder.js.org/docs · fetched 2026-08-29 · 3564eadea324
- registry_npm: https://registry.npmjs.org/bodybuilder · fetched 2026-08-29 · 731f3b560455
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| danpaz/bodybuilder | main | 51 |
For agents
markdown · JSON · MCP: product_card(name="danpaz/bodybuilder")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem