finds.dev← search

// the find

jeresig/env-js

★ 227 · JavaScript · updated Oct 2008

A pure-JavaScript browser environment.

env.js is a pure-JavaScript DOM and browser environment that runs on Rhino, John Resig's 2008 attempt to let jQuery's test suite run outside a real browser. It predates Node.js, jsdom, and every modern headless browser by years. Nobody should be adopting this in 2024.

Historically significant — this was the first serious attempt at a scriptable browser environment in pure JS. The single-file architecture (src/env.js) shows a clear, readable implementation of DOM fundamentals. It successfully ran jQuery's full test suite on Rhino, which was a genuine technical achievement for its time.

Last commit was 2008 — it is unmaintained and effectively abandoned. Rhino as the JS engine is a dead end; everything in this space moved to V8. jsdom, Playwright, and Puppeteer all do this better and are actively maintained. The HTML parser and DOM implementation are incomplete stubs of the actual spec, which will silently give wrong results on anything nontrivial.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →