# PhantomJS to Headless Chrome: Archived, Replaced | gen2.dev

> PhantomJS development was suspended in 2018 and the repository is archived. Headless Chrome and Playwright drive real browser engines instead.

Source: https://gen2.dev/successors/phantomjs/

---

Successor Map · Testing

# PhantomJS to headless Chrome and Playwright: real browsers without a window

PhantomJS development was suspended in 2018 and the repository was archived in 2023. Scripts and tests that needed a browser with no window now run real browser engines headless, through Chrome, Puppeteer or Playwright.

![Slide: PhantomJS on the left, an arrow, and headless Chrome and Playwright on the right.](https://gen2.dev/img/successor-phantomjs.png)

Status of the old tool

Abandoned

Effort to move

Mechanical

gen2.dev's view

Move now

Sources checked

2026-11-28

## Key facts

Gen 1

![PhantomJS logo](https://gen2.dev/icons/tech/phantomjs.png)PhantomJS

Gen 2

![Playwright logo](https://gen2.dev/icons/tech/playwright.png)Headless Chrome, driven by Puppeteer or Playwright

Kind of tool

[Testing](https://gen2.dev/successors/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](#sources)

## Gen 1 and Gen 2 side by side

npm registry

![PhantomJS logo](https://gen2.dev/icons/tech/phantomjs.png)Gen 1

![Playwright logo](https://gen2.dev/icons/tech/playwright.png)Gen 2

Package

[phantomjs-prebuilt](https://www.npmjs.com/package/phantomjs-prebuilt)

[puppeteer](https://www.npmjs.com/package/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](https://gen2.dev/guide/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

1.  [ariya/phantomjs README - GitHub](https://github.com/ariya/phantomjs) - 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.
2.  [Archiving the project: suspending the development, issue 15344 - ariya/phantomjs (March 3, 2018)](https://github.com/ariya/phantomjs/issues/15344) - The maintainer's announcement, giving the lack of active contribution as the reason.
3.  [Eric Bidelman - Getting Started with Headless Chrome - Chrome for Developers](https://developer.chrome.com/blog/headless-chrome) - Headless mode shipped in Chrome 59 for Mac and Linux and Chrome 60 for Windows; compares it to PhantomJS and introduces Puppeteer.
4.  [Installation - Playwright documentation](https://playwright.dev/docs/intro) - Playwright supports Chromium, WebKit and Firefox on Windows, Linux and macOS, and runs tests headless by default.
5.  [phantomjs-prebuilt - npm](https://www.npmjs.com/package/phantomjs-prebuilt) - latest version, release dates, license and last week's downloads, read on November 29, 2026
6.  [puppeteer - npm](https://www.npmjs.com/package/puppeteer) - 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.

## How to do the move

The pattern that fits this kind of replacement:

[The cutover](https://gen2.dev/guide/cutover/)

[All successor entries](https://gen2.dev/successors/)

Also moving to Playwright:

-   [Protractor](https://gen2.dev/successors/protractor/)
-   [Selenium Grid](https://gen2.dev/successors/selenium/)

## More in Testing

-    [![Enzyme logo](https://gen2.dev/icons/tech/enzyme.png) Enzyme to React Testing Library Still active A real project Move when convenient](https://gen2.dev/successors/enzyme/)
-    [![Jest logo](https://gen2.dev/icons/tech/jest.png) Jest to Vitest Still active Mechanical Leave it](https://gen2.dev/successors/jest/)
-    [![JMeter logo](https://gen2.dev/icons/tech/jmeter.png) JMeter to k6 Still active A real project Leave it](https://gen2.dev/successors/jmeter/)
-    [![Karma logo](https://gen2.dev/icons/tech/karma.png) Karma to Jest, Web Test Runner or Vitest Deprecated A real project Move when convenient](https://gen2.dev/successors/karma/)
-    [![nose logo](https://gen2.dev/icons/tech/nose.png) nose to pytest Maintenance only Mechanical Move when convenient](https://gen2.dev/successors/nose/)
-    [![Protractor logo](https://gen2.dev/icons/tech/protractor.png) Protractor to Playwright or Cypress Abandoned A real project Move now](https://gen2.dev/successors/protractor/)
-    [![Selenium Grid logo](https://gen2.dev/icons/tech/selenium.png) Selenium Grid to Playwright Still active A real project Leave it](https://gen2.dev/successors/selenium/)

[All testing](https://gen2.dev/successors/testing/)
