Is casperjs still maintained?
No — casperjs stopped being maintained around March 2018. The ecosystem moved to playwright, a separate project that took over the same job.
- Status
- No longer maintained
- Last maintained
- March 2018
- Use instead
playwright— on npm- Succession
- Replacement project
- Drop-in
- no — expect code changes
- Confidence
- medium
What should I use instead of casperjs?
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 casperjs to playwright
CasperJS step chains map onto plain async/await scripts; casper.start().then(...) becomes await page.goto(...) followed by ordinary awaited actions.
Why casperjs is on this list
CasperJS is a scripting layer on top of PhantomJS, and PhantomJS development was suspended in March 2018. The CasperJS repository is archived and its own description begins "CasperJS is no longer actively maintained"; the last release was 1.1.4 in May 2017. Headless Chrome and headless Firefox now cover the same use cases with maintained drivers.
The succession is well supported, but it is not the only defensible choice.
casperjs alternatives
Beyond the primary recommendation, these are credible for casperjs's use case:
puppeteer— view on npm@playwright/test— view on npmcypress— view on npm
Check your own project for casperjs
npx dead-deps --all --min-state unmaintained
Run that in the directory holding your lockfile. If casperjs 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:
- casperjs/casperjs repository (archived, "no longer actively maintained")github.com
- PhantomJS README: development is suspended until further noticegithub.com
- PhantomJS issue 15344: archiving the project, suspending development (March 2018)github.com
Packages related to casperjs
- nightmareReplacement project: playwright · unmaintained since April 2019
- 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.