ai-agent

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…
13,389 stars515 forksJavaScriptUpdated 8/11/2026100% free · open source
What it does

DataLoader provides a consistent API to fetch data from various backends, reducing requests through batching and caching, thus improving application performance.

When to use it
  • When your application needs to fetch data from multiple APIs or databases
  • When you want to reduce the number of requests to external services
  • When you need to implement caching to improve application performance
Ready-to-paste prompt
const DataLoader = require('dataloader'); const batchLoadFn = (keys) => Promise.all(keys.map((key) => fetch(`https://api.example.com/${key}`))); const loader = new DataLoader(batchLoadFn); const data = await loader.load('user123');
Heads up: Make sure to handle the case where the batch loading function returns an array of values that is not the same length as the input array of keys, as DataLoader expects a 1:1 correspondence between keys and values
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/dataloader && curl -fsSL https://workflowstacks.com/api/skills/dataloader/claude-skill -o ~/.claude/skills/dataloader/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Dataloader works
Codeflow
Free to inspect

Dataloader is a small JavaScript project (~1.6k lines across 6 code files, plus 5 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit a month ago, MIT license, has a test suite.

Size
Small codebase
~1.6k lines · 6 code files · 13 min skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Node.js
No API keys detected
JavaScript 99%Shell 1%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    src/index.js
    Where the program starts running
  3. 3
    package.json
    Dependencies and the commands it exposes
  4. 4
    examples/CouchDB.md
    A worked example — copy this to get going
What's in each folder
src/Core code — the actual logic7 files
examples/Examples you can copy6 files
resources/Folder2 files
flow-typed/Folder1 files
.github/CI / automation (GitHub Actions)4 files
.changeset/Tool / agent settings2 files
READMEHas testsDocumentedCI checksExamples includedMIT licenseUpdated this month
Quick Actions
Details
Creator
graphql
Language
JavaScript
Category
ai-agent
Published
9/10/2015

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.