single-user-cache

JSON →
library 2.1.0 ·javascript
verified Jun 7, 2026

A fast, lightweight cache and batching library for single-user GraphQL requests, inspired by DataLoader. Version 2.1.0 is stable, MIT-licensed, and ships TypeScript types. It creates per-request cache instances that batch multiple calls to the same loader into a single async function invocation. Benchmarks show it is 3x faster than DataLoader. Supports object keys via safe-stable-stringify, configurable caching and batch sizes. Published to npm, actively maintained by mcollina.