Installation
DaloyJS targets Node.js ≥ 24.0.0 (active LTS) and is distributed on the public npm registry as @daloyjs/core. The package has no peer dependencies, so npm, yarn, pnpm, and bun can all install it directly. We recommend pnpm together with the hardened .npmrc defaults below for supply-chain reasons, but it is not required. The engines.pnpm entry in package.json is advisory metadata, while engines.node communicates the supported runtime and may warn or fail depending on your package manager and engine-strict settings.
- 01fastestScaffoldpnpm create daloy@latest
- 02orInstall into a projectpnpm add @daloyjs/core zod
- 03hardenAdd .npmrc defaultsstrict-peer-dependencies, frozen lockfile
- 04confirmVerify the importnode -e import('@daloyjs/core')
Fastest path: scaffold a project
Use the official generator, it sets up a hardened .npmrc, strict TypeScript, and a working route in one command.
Package links: create-daloy on npm and @daloyjs/core on npm.
See Scaffold a project for templates and flags.
Or install into an existing project
Prerequisites
- Node.js 24.0.0 or newer (active LTS).
- A package manager. Any of these works, pnpm 11.x or newer is recommended for supply-chain hardening, but
npm,yarn, andbuninstall@daloyjs/corecleanly because the package has no peer dependencies.
To enable pnpm via Corepack:
Install DaloyJS
The framework package published to npm is @daloyjs/core.
Hardened .npmrc
Drop this .npmrc in your project root to make pnpm reject unsafe installs by default:
Read the rationale in Security and the pnpm motivation guide.
Verify
Run this from the project root after installing, it works the same under pnpm, npm, yarn, or bun because it shells straight to node:
Next
Continue with Getting started to write your first route.