qmetrics.net

DataLoader

JavaScript batching and caching layer for backend data loads

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.

  • Planning and review agents
  • Skills and command library
  • Runtime hooks and memory
JavaScriptCLIDetails →
★ 316.2k⟳ 14 days agoMIT

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.

  • Declarative UI rendering
  • Encapsulated stateful components
  • JSX markup beside JavaScript logic
JavaScriptWebDetails →
★ 252.7k⟳ todayMIT

MarkItDown

Python utility converting office and media files to Markdown

MarkItDown converts many file types into Markdown for LLM and text analysis pipelines. It aims to preserve headings, lists, tables, and links rather than perfect human layout.

  • Multi-format file to Markdown conversion
  • Command-line and Python APIs
  • Optional Azure document services
PythonDocker, CLIDetails →
★ 199.7k⟳ yesterdayMIT

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

  • Unified PyTorch model definitions
  • Hugging Face Hub checkpoint loading
  • Pipeline task inference helpers
PythonCLIDetails →
★ 169.6k⟳ todayApache-2.0

Graphify

Codebase knowledge graph skill for AI coding assistants

Graphify maps a project’s code, docs, and media into a queryable local knowledge graph and installs as a skill for assistants such as Cursor and Claude Code.

  • Local tree-sitter AST code parsing
  • Queryable knowledge graph output
  • EXTRACTED and INFERRED edge tags
PythonLinux, macOS, Windows, CLIDetails →
★ 156.9k⟳ todayApache-2.0

Taste Skill

Agent skill for designed company sites and browser QA

Taste Skill packages art direction, asset scripts, and headless browser checks so coding agents produce company websites with consistent layout, imagery, and copy rules.

  • Agent-oriented website build workflow
  • Dealt palettes, type, and hero layouts
  • Licensed photograph and icon resolution
JavaScriptCLIDetails →
★ 125.4k⟳ 7 days agoMIT