qmetrics.net

Bodybuilder

Fluent JavaScript builder for Elasticsearch query DSL

Bodybuilder screenshot

Bodybuilder helps you compose Elasticsearch search request bodies—queries, filters, aggregations, and sorts—with a chainable JavaScript API.

Overview

Bodybuilder is a JavaScript library for constructing Elasticsearch query bodies programmatically. Instead of hand-assembling nested JSON for bool queries, filters, and aggregations, you create a builder instance, add clauses through predictable methods, and call build to obtain the request payload sent to Elasticsearch.

The API covers match and term queries, boolean combinations of filters and queries, nested aggregations via callback functions, phrase and term suggestions, sorting with field/direction or full sort objects, pagination via from and size, and arbitrary extra keys through raw options. Multiple filters merge using Elasticsearch boolean semantics, including must, should, and must_not style combinations exposed through dedicated chain methods.

The project aims to support the full Elasticsearch query DSL across versions, with a version flag when building for legacy 1.x DSL shape. Installation is via npm, and a small REPL script lets you experiment with constructions on the command line before wiring them into an application.

Bodybuilder suits Node or browser code that talks to Elasticsearch and wants readable, testable query construction rather than large inline JSON literals.

Key features

  • Chainable query construction
  • Filter and bool combinations
  • Aggregations with nesting
  • Phrase and term suggestions
  • Sort and pagination helpers
  • Raw option injection
  • Elasticsearch 1.x DSL mode
  • Included REPL for experiments

Use cases

  • Dynamic Elasticsearch searches
  • Complex filtered analytics queries
  • Aggregation-heavy dashboards
  • Search microservices in Node.js
  • Prototyping query DSL in REPL

Tags

Similar software

Elasticsearch Py

Official Python client library for Elasticsearch APIs

elasticsearch-py is the official Python package for talking to Elasticsearch clusters, with sync and async clients plus helpers.

★ 4.4k⟳ 4 days agoApache-2.0

Firestore Typesense Search

Firebase kit syncing Firestore to Typesense search

npm function kit deploys Cloud Functions that mirror Firestore collections into Typesense for fuzzy full-text search, faceting, and filters.

★ 183⟳ 1 month agoApache-2.0
Open Source Alternative to:Algolia

MarkItDown

Python utility converting office and media files to Markdown

MarkItDown converts many file types into Markdown for LLM and text analysis pipelines. It aims to preserve headings, lists, tables, and links rather than perfect human layout.

★ 198.7k⟳ 21 days agoMIT

OpenBB

Open-source data integration platform for analysts, quants and AI agents

Open Data Platform (ODP) by OpenBB connects proprietary, licensed and public data sources once, then exposes them to Python, OpenBB Workspace, Excel, MCP servers for AI agents, and REST APIs.

★ 75.8k⟳ 9 days agoApache-2.0

Docling

Document parsing toolkit for generative AI pipelines

Docling ingests PDFs, office files, media, email, and many other formats into a unified document model. It targets downstream RAG and agent workflows with local execution options.

★ 71.1k⟳ yesterdayMIT

Meilisearch

Full-text, semantic and hybrid search engine API

Meilisearch indexes documents and answers search queries over a REST API, with typo tolerance, filters, and hybrid semantic retrieval. Run it on Meilisearch Cloud or on your own servers.

★ 60k⟳ 2 days agoSource-available
Search EnginesSelf-hostable
Alternative to:AlgoliaTurbopuffer