finds.dev

jeresig/env-js

A pure-JavaScript browser environment.

View on GitHubHomepage ↗

★ 227JavaScriptupdated Oct 2008

// the take

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.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
227
Forks
130
Language
JavaScript
Last commit
12 Oct 2008

// nearby

If env-js isn't quite it.

All repos →