Nadle
Gradle-inspired task runner for Node.js.
Why |
Installation |
Features |
Playground |
Configuration Reference

Features
- Type-safe task definitions — full TypeScript inference and compile-time checks
- Parallel execution — DAG-based scheduling with worker threads
- Built-in caching — input fingerprinting and output snapshots for incremental builds
- Monorepo-native — first-class support for multi-package workspaces
- Built-in tasks — ExecTask, PnpmTask, CopyTask, DeleteTask ready to use
- Smart CLI — abbreviation matching, auto-correction, dry run, summary mode
- Zero legacy — ESM-only, Node.js 22+, no backwards-compatibility baggage
Status
Nadle is pre-1.0: the nadle package is at 0.x and the companion packages are at 0.0.x. The public API is not frozen
until v1.0, as the roadmap says.
- Version policy. Releases are cut with release-please configured to bump the minor version for a
breaking change before 1.0. The changelog
lists breaking changes under their own heading: 0.4.0, 0.5.0 and 0.6.0 each have one. 0.6.0 replaced the
tasks.register(...).config() form with a single keyed spec object. Pin the exact version you use and read the
changelog before upgrading.
- Newest features. No feature is flagged experimental in the code. The most recently added ones, and so the
least used, are the plugin system,
--watch and --since (0.6.0) and the agent reporter (0.5.2).
- Good fit. TypeScript or JavaScript projects, single-package or pnpm, npm or yarn workspaces, that want a
task graph with local caching and a typed config on Node.js 22 or later.
- Not yet. A shared remote cache (the cache is local only), a frozen API, and
--since that also selects
dependent workspaces.
Quick Start
The fastest way is npm create nadle. It installs Nadle and turns the scripts in your package.json into tasks:
npm create nadle
npx nadle --list
To set it up by hand instead:
Install Nadle:
npm install -D nadle
Create a nadle.config.ts:
import { tasks } from "nadle";
tasks.register("hello", async () => {
console.log("Hello from Nadle!");
});
tasks.register("goodbye", async () => {
console.log("Goodbye!");
});
tasks.register("greet", {
group: "Greeting",
description: "Run all greeting tasks",
dependsOn: ["hello", "goodbye"]
});
Run it:
npx nadle greet
For Coding Agents
The package ships a short guide for coding agents: how to list tasks, run them with plain output and read
cache verdicts. It is at node_modules/nadle/agent-guide.md after installing.
Nadle Builds Itself
This repository uses Nadle as its own build system — see nadle.config.ts for a real-world example with caching, parallel execution, and monorepo task orchestration.
Credits
Thanks to:
- The Gradle team and community for inspiring Nadle’s API and dependency model.
- The Vitest team for their excellent testing framework and for the reporter logic we reuse.
Contribution
See Contributing Guide
License
MIT License © 2025-Present Nam Hoang Le
评论