Key facts
| Gen 1 | |
|---|---|
| Gen 2 | |
| Kind of tool | Testing |
| Status of Gen 1 | Abandoned The maintainer announced the suspension of development on March 3, 2018, and GitHub shows the repository was archived on May 30, 2023. |
| Effort to move | Mechanical: same ideas, different calls |
| What breaks | Pages render in a current browser engine instead of an old WebKit, so screenshots, PDFs and anything tuned to PhantomJS output will change. |
| Should you move? | Move now PhantomJS development has been suspended since 2018 and its repository is read-only, so its browser engine receives no fixes of any kind. This is gen2.dev's view, not the maintainers'. |
| Sources checked | 2026-11-28, 4 sources |
Gen 1 and Gen 2 side by side
| npm registry | ||
|---|---|---|
| Package | phantomjs-prebuilt | puppeteer |
| Latest version | 2.1.16 | 25.19.0 |
| Latest release | Nov 2, 2017 | Nov 25, 2026 |
| First release | Jan 27, 2016 | Mar 23, 2013 |
| License | Apache-2.0 | Apache-2.0 |
| Downloads, last week | 361,610 | 14,380,303 |
Read from each package registry on November 29, 2026. Downloads include automated installs such as build servers, so compare them as a trend, not a head count. The registry marks the latest phantomjs-prebuilt release as deprecated.
What Gen 1 was
PhantomJS was, in the words of its README, "a headless WebKit scriptable with JavaScript." It was a browser engine with no window. You handed it a script, and it loaded pages, ran their JavaScript, took screenshots, printed PDFs and ran test suites on servers that had no display.
It was never one of the browsers people actually used, and that became its weakness.
What replaced it
The real browsers learned to run without a window. Headless mode shipped in Chrome 59 for Mac and Linux and in Chrome 60 for Windows. The Chrome team's introduction said, "Headless Chrome is similar to tools like PhantomJS." It named the main difference in one line: "Phantom uses an older version of WebKit as its rendering engine while Headless Chrome uses the latest version of Blink."
On March 3, 2018 the PhantomJS maintainer opened an issue titled "Archiving the project: suspending the development." It said, "Due to the lack of active contribution, I am going to archive this project soon." The README still reads that development "is suspended until further notice." The repository was archived on May 30, 2023. The last version the README names is 2.1.
Today the scripting layer is a library that drives a real browser. Puppeteer is a Node library developed by the Chrome team. Playwright "supports Chromium, WebKit and Firefox on Windows, Linux and macOS," and runs tests headless by default.
What moving involves
There is no converter. What you do depends on how PhantomJS was being used.
- As the browser under a test runner. The tests stay. The launcher and its configuration change to a headless real browser.
- As a script host. Screenshot, PDF and scraping scripts are rewritten against the Puppeteer or Playwright API. The steps are the same as before: open a page, wait, read or capture. The calls are different, and they are asynchronous.
Inventory first. PhantomJS tends to hide in build scripts, report generators and scheduled jobs that nobody has opened in years.
What breaks
Rendering. The pages are now drawn by a current engine instead of an old WebKit. Screenshots, PDFs and visual baselines will differ. Most differences are the new output being right.
Workarounds. Polyfills and special cases added only so PhantomJS could run the code are now dead weight, and occasionally they are the thing that fails.
Infrastructure. A real browser is a larger install with its own system requirements. CI images and containers need updating before the first run.
Because output changes, treat the switch as a small cutover: produce both outputs once, compare them, then remove PhantomJS.
Should you move?
Yes, now. Development has been suspended since 2018 and the repository is read-only. A browser engine that loads web content and receives no fixes is a risk, and it falls further behind the web every year.
The one exception is a job that renders only your own trusted, unchanging pages and is about to be retired anyway. Even then, do not point it at anything from the outside.
Common questions
Is PhantomJS dead?
It is abandoned. The maintainer announced the suspension of development on March 3, 2018, and GitHub shows the repository was archived on May 30, 2023.
What replaced PhantomJS?
Headless Chrome, driven by Puppeteer or Playwright. Effort to move: Mechanical: same ideas, different calls
Should I move off PhantomJS?
gen2.dev's view: Move now. PhantomJS development has been suspended since 2018 and its repository is read-only, so its browser engine receives no fixes of any kind.
Sources
- ariya/phantomjs README - GitHub - Describes PhantomJS as a headless WebKit scriptable with JavaScript, says development is suspended until further notice, and shows the repository was archived on May 30, 2023.
- Archiving the project: suspending the development, issue 15344 - ariya/phantomjs (March 3, 2018) - The maintainer's announcement, giving the lack of active contribution as the reason.
- Eric Bidelman - Getting Started with Headless Chrome - Chrome for Developers - Headless mode shipped in Chrome 59 for Mac and Linux and Chrome 60 for Windows; compares it to PhantomJS and introduces Puppeteer.
- Installation - Playwright documentation - Playwright supports Chromium, WebKit and Firefox on Windows, Linux and macOS, and runs tests headless by default.
- phantomjs-prebuilt - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026
- puppeteer - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026
Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.

