# 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.

Repository: https://github.com/graphql/dataloader
Canonical: https://ross.abutalabs.com/products/dataloader
Language: JavaScript
License: MIT
License Family: permissive
Topics: nodejs, dataloader, graphql, batch
Last push: 2026-08-11T14:10:51+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 8, longevity 100
- inputs: {"age_days": 4010, "days_push": 22, "days_rel": 638, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 13384, forks 516 (observed 2026-08-28T04:11:03.231775+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: caching, middleware, http-client
- domain: backend, web-development, databases, apis
- platform: -
- tags: dataloader, batching, request-coalescing, graphql, per-request-cache, promise-based, nodejs, javascript

## Member repositories
- graphql/dataloader (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:03.231775+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:20.160235+00:00, confidence not recorded.
  - readme: https://github.com/graphql/dataloader (fetched 2026-08-28T04:11:03.231775+00:00, sha 01ba28c3100e)
  - registry_npm: https://registry.npmjs.org/dataloader (fetched 2026-08-29T08:08:32.375817+00:00, sha 6bcecee2ec8c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
