Is nightmare still maintained?
No — nightmare stopped being maintained around April 2019. The ecosystem moved to playwright, a separate project that took over the same job.
- Status
- No longer maintained
- Last maintained
- April 2019
- Use instead
playwright— on npm- Succession
- Replacement project
- Drop-in
- no — expect code changes
- Confidence
- medium
What should I use instead of nightmare?
The ecosystem moved to playwright, a separate project that took over the same job. playwright is not a drop-in replacement, so expect to change call sites.
How to migrate from nightmare to playwright
Nightmare's chained .goto().type().click().end() calls translate to awaited Playwright equivalents on a page object; .evaluate() maps almost directly to page.evaluate().
Why nightmare is on this list
Nightmare's README opens with "NOTICE: This library is no longer maintained.", the repository is archived, and the last release was 3.0.2 in April 2019. It drove an older Electron build, and the README carries a security warning about undiscovered Electron vulnerabilities. Playwright and Puppeteer cover the same browser-automation ground with current browser engines.
The succession is well supported, but it is not the only defensible choice.
nightmare alternatives
Beyond the primary recommendation, these are credible for nightmare's use case:
puppeteer— view on npm@playwright/test— view on npm
Check your own project for nightmare
npx dead-deps --all --min-state unmaintained
Run that in the directory holding your lockfile. If nightmare is anywhere in your tree — a direct dependency or buried under something else — it appears in the report with this verdict, this successor and the same evidence links, alongside anything else that has stopped moving. Nothing is uploaded; the scan reads your lockfile locally and queries public registry metadata.
Exit code 1 means something was flagged, which makes npx dead-deps --min-state deprecated usable as a CI gate. See how verdicts are produced.
Evidence
Every claim on this page traces to a primary source. Check them:
- Nightmare README: "NOTICE: This library is no longer maintained."github.com
- npm: nightmare, last published April 2019npmjs.com
Packages related to nightmare
- casperjsReplacement project: playwright · unmaintained since March 2018
- phantomjs-prebuiltReplacement project: puppeteer · unmaintained since March 2018
- protractorReplacement project: @playwright/test · unmaintained since April 2021
- puppeteer-firefoxAbsorbed elsewhere: puppeteer · unmaintained since January 2020
- enzymeReplacement project: @testing-library/react · unmaintained since December 2019
See the full index of covered packages, or read the methodology for how a verdict is reached and why a quiet package is not a dead one.