qmetrics.net

DataLoader

JavaScript batching and caching layer for backend data loads

Frameworks & PlatformsDesktop/CLI app

DataLoader is a Node.js utility for the data-fetching layer. It batches concurrent loads and memoizes results within a request.

Overview

DataLoader gives applications a consistent API over remote data sources such as databases or web services. It coalesces many individual key lookups into fewer backend round-trips by batching loads that occur in the same event-loop turn, and it caches values for the lifetime of a loader instance.

Each DataLoader is constructed with a batch function that receives an array of keys and returns a promise of values in matching order. Callers use load and loadMany on single keys; the library schedules batch execution and can use custom batch schedulers when default timing is not ideal.

Caching is per-request memoization, not a shared application cache like Redis. Typical usage creates a new DataLoader when an HTTP request begins and discards it when the request ends so different users do not see each other's cached rows. Cache can be cleared after mutations, disabled entirely, or backed by a custom map such as an LRU for long-lived loaders.

The design originated from Facebook's Loader pattern and is widely used with graphql-js services, though it applies to any Node.js code that benefits from batched, cached key-value fetching.

Key features

  • Batch coalescing in one event-loop frame
  • Per-request memoization cache
  • Configurable batch schedule function
  • load and loadMany APIs
  • Optional cache disable or custom cache map
  • Cache clear after mutations
  • Error caching per key
  • maxBatchSize and batch toggle options

Use cases

  • GraphQL resolver N+1 query reduction
  • Batched database ID lookups in APIs
  • Per-request caching in Express handlers
  • Consistent loading across decoupled app modules
  • Reference pattern for other language ports

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT