graphql/dataloader
DataLoader is a generic utility to be used as part of your application's data fetching layer to provide a consistent API over various backends and reduce requests to those backends via batching and caching. observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 97
- 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: 4010
- days_rel: 638
- days_push: 22
- n_releases_24m: 1
Adoption not part of the score
13384 stars · 516 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
DataLoader is a JavaScript/Node.js utility that batches and caches data-loading requests to reduce round trips to backends like databases or web services. It is commonly used with GraphQL servers but works with any key-value data fetching layer.
Use cases
- batch database queries in a GraphQL resolver
- cache per-request data loads in a Node.js web server
- reduce N+1 query problems
- coalesce multiple fetches to a remote API into one request
- provide a consistent key-value loading API over various backends
When to choose
- you are building a GraphQL service with graphql-js and need batching
- your Node.js backend issues many small key-based lookups per request
- you want per-request memoization of data loads
When to avoid
- you need persistent or cross-process caching rather than per-request caching
- your data loads are not key-based or cannot be batched
- you are not in a JavaScript environment with Promise and Map support
Facets
library · maturity stable
caching middleware http-client backend web-development databases apis dataloader batching request-coalescing graphql per-request-cache promise-based nodejs javascript
2 sources
- readme: https://github.com/graphql/dataloader · fetched 2026-08-28 · 01ba28c3100e
- registry_npm: https://registry.npmjs.org/dataloader · fetched 2026-08-29 · 6bcecee2ec8c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| graphql/dataloader | main | 66 |
For agents
markdown · JSON · MCP: product_card(name="graphql/dataloader")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem