deanmao/node-chimera
FreeA new kind of headless webkit integration for nodejs; a great alternative to phantomjs.
About deanmao/node-chimera
Chimera is a headless webkit integration for Node.js that provides an alternative to PhantomJS. It creates isolated browser instances directly within the Node.js environment, eliminating the need for an external process. Key capabilities include custom user agents, cookie management, library injection (e.g., jQuery), image disabling, and sandboxed JavaScript execution. Installation is via npm, and it currently offers prebuilt binaries for 64-bit macOS and Linux. The perform method allows loading a URL, passing JSON-serializable variables, executing scripts inside the page, and returning control to Node.js via a callback. Chimera is suitable for web scraping, automated testing, and server-side page interaction.
Key Features
Pros & Cons
- Direct Node.js integration eliminates need for external process
- Easy installation via npm with prebuilt binaries
- Customizable browser instances with isolated state
- Supports injecting JavaScript libraries for enhanced page control
- Limited platform support – only prebuilt binaries for 64-bit macOS and Linux
- May require manual compilation for other operating systems or architectures
- Sandboxed environment restricts passing Node.js references directly; only JSON-serializable data allowed
- Documentation is minimal, primarily a single README with basic examples