Skip to content

00nx/phantomjs

 
 

Repository files navigation

PhantomJS — Scriptable Headless WebKit

⚠️ Notice: PhantomJS development is suspended until further notice.
For more details, see issue #15344.


PhantomJS is a headless WebKit — a full browser with no GUI — scriptable using JavaScript.
The last stable release is 2.1.


📌 Use Cases

  • Headless web testing — Run fast, automated tests without needing a visible browser.
  • Page automationAccess and manipulate pages with the DOM API or libraries like jQuery.
  • Screen capture — Programmatically capture web content — HTML, CSS, SVG, Canvas.
  • Network monitoring — Automate performance analysis, monitor page loading, and export as HAR.

✨ Features

  • Cross-platform — Windows, macOS, Linux, and other Unices.
  • Native web standards — DOM, CSS, JavaScript, Canvas, SVG — no emulation.
  • Pure headless on Linux — No X11 needed. Ideal for CI/CD. Runs on EC2, Heroku, Iron.io.
  • Quick startDownload, unpack, run.

❓ Questions?

PhantomJS is free and open-source, distributed under the BSD license.
It includes third-party code — see third-party.txt for license details.

credits for @ariyahidayat with help from many contributors.


⏸️ Note: For new headless automation, consider Puppeteer or Playwright.

About

Scriptable Headless Browser

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C++ 39.3%
  • JavaScript 29.4%
  • C 24.4%
  • Python 5.8%
  • HTML 0.7%
  • Shell 0.2%
  • Other 0.2%