# @11ty/eleventy-dev-server

> A minimal, modern, generic, hot-reloading local web server to help web developers.

Latest version **2.0.8** (published 2025-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @11ty/eleventy-dev-server
pnpm add @11ty/eleventy-dev-server
yarn add @11ty/eleventy-dev-server
bun add @11ty/eleventy-dev-server
```

Provides the command `eleventy-dev-server`.

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.0.8 |
| Published | 2025-03-19 |
| First published | 2022-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 12 |
| Unpacked size | 50.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 109 |
| Author | Zach Leatherman |
| Maintainers | zachleat, fortawesome-admin |
| Keywords | eleventy, server, cli |

## Links

- npm: https://www.npmjs.com/package/@11ty/eleventy-dev-server
- Repository: https://github.com/11ty/eleventy-dev-server
- Homepage: https://github.com/11ty/eleventy-dev-server/
- Issues: https://github.com/11ty/eleventy-dev-server/issues
- Funding: https://opencollective.com/11ty
- npm.io page: https://npm.io/package/@11ty/eleventy-dev-server

## Dependencies (12)

- [ws](https://npm.io/package/ws.md) ^8.18.1
- [mime](https://npm.io/package/mime.md) ^3.0.0
- [send](https://npm.io/package/send.md) ^1.1.0
- [ssri](https://npm.io/package/ssri.md) ^11.0.0
- [debug](https://npm.io/package/debug.md) ^4.4.0
- [chokidar](https://npm.io/package/chokidar.md) ^3.6.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.8
- [morphdom](https://npm.io/package/morphdom.md) ^2.7.4
- [finalhandler](https://npm.io/package/finalhandler.md) ^1.3.1
- [please-upgrade-node](https://npm.io/package/please-upgrade-node.md) ^3.2.0
- [urlpattern-polyfill](https://npm.io/package/urlpattern-polyfill.md) ^10.0.0
- [@11ty/eleventy-utils](https://npm.io/package/@11ty/eleventy-utils.md) ^2.0.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2.0.8 (latest) — 2025-03-19
- 3.0.0-alpha.11 (canary) — 2026-08-19
- 3.0.0-alpha.10 — 2026-06-10
- 3.0.0-alpha.8 — 2026-04-09
- 3.0.0-alpha.6 — 2025-12-10
- 3.0.0-alpha.5 — 2025-12-05
- 3.0.0-alpha.4 — 2025-12-02
- 3.0.0-alpha.3 — 2025-08-01
- 3.0.0-alpha.2 — 2025-07-30
- 3.0.0-alpha.1 — 2025-07-29
- 2.0.7 — 2025-03-14
- 2.0.6 — 2025-01-15
- 2.0.4 — 2024-09-11
- 2.0.3 — 2024-09-04
- 2.0.2 — 2024-07-30
- … 21 more at https://npm.io/package/@11ty/eleventy-dev-server/versions

## README

<p align="center"><img src="https://www.11ty.dev/img/logo-github.svg" width="200" height="200" alt="11ty Logo"></p>

# eleventy-dev-server 🕚⚡️🎈🐀

A minimal, modern, generic, hot-reloading local web server to help web developers.

## ➡ [Documentation](https://www.11ty.dev/docs/watch-serve/#eleventy-dev-server)

- Please star [Eleventy on GitHub](https://github.com/11ty/eleventy/)!
- Follow us on Twitter [@eleven_ty](https://twitter.com/eleven_ty)
- Support [11ty on Open Collective](https://opencollective.com/11ty)
- [11ty on npm](https://www.npmjs.com/org/11ty)
- [11ty on GitHub](https://github.com/11ty)

[![npm Version](https://img.shields.io/npm/v/@11ty/eleventy-dev-server.svg?style=for-the-badge)](https://www.npmjs.com/package/@11ty/eleventy-dev-server)

## Installation

This is bundled with `@11ty/eleventy` (and you do not need to install it separately) in Eleventy v2.0.

## CLI

Eleventy Dev Server now also includes a CLI. The CLI is for **standalone** (non-Eleventy) use only: separate installation is unnecessary if you’re using this server with `@11ty/eleventy`.

```sh
npm install -g @11ty/eleventy-dev-server

# Alternatively, install locally into your project
npm install @11ty/eleventy-dev-server
```

This package requires Node 18 or newer.

### CLI Usage

```sh
# Serve the current directory
npx @11ty/eleventy-dev-server

# Serve a different subdirectory (also aliased as --input)
npx @11ty/eleventy-dev-server --dir=_site

# Disable the `domdiff` feature
npx @11ty/eleventy-dev-server --domdiff=false

# Full command list in the Help
npx @11ty/eleventy-dev-server --help
```

## Tests

```
npm run test
```

- We use the [ava JavaScript test runner](https://github.com/avajs/ava) ([Assertions documentation](https://github.com/avajs/ava/blob/master/docs/03-assertions.md))

## Changelog

* `v2.0.0` bumps Node.js minimum to 18.

---
_Source: https://npm.io/package/@11ty/eleventy-dev-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
