Project

drupal-jsonapi-params

Write Drupal JSON:API queries as code instead of hand-built URLs. A TypeScript library for filters, sorting, includes and paging.

Drupal core ships JSON:API, and its query strings get long fast: nested filter groups, includes, sparse fieldsets, paging. drupal-jsonapi-params builds them with a small chainable API, and writes the shortest form the specification allows.

I started it in 2020. It is typed, tested and documented, has eight contributors on GitHub, and is downloaded about 50,000 times a month from npm (October 2026).