
Security News
vlt 1.5.0 Adds Agent Skills Management
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.
@salve-software/react-native-nitro-jsdom
Advanced tools
A headless HTML/DOM environment for React Native.
A headless HTML/DOM environment for React Native
React Native has no native equivalent of jsdom. When you need to parse an HTML document, manipulate its DOM, or run arbitrary JavaScript inside it, without rendering anything on screen, your only option today is a WebView, a visual component that ties your business logic to the UI layer and drags in a full browser engine just to evaluate a script.
react-native-nitro-jsdom solves this by providing a real, isolated HTML + JS sandbox, powered by Nitro Modules, that runs entirely off-screen and off the React tree.
import { JSDOM } from 'react-native-nitro-jsdom'
const dom = JSDOM.create(`
<html>
<body>
<div id="result">0</div>
</body>
</html>
`)
await dom.evaluate(`
document.getElementById('result').textContent = String(2 + 2)
`)
const value = await dom.evaluate(`document.getElementById('result').textContent`)
// → "4"
dom.dispose()
JSDOM.create() spins up its own QuickJS runtime, not a shared Hermes instance. No leaking globals between sandboxes.querySelector, textContent, dataset, and more mirror jsdom's DOM shape, though usage differs: everything runs through the async evaluate(), not jsdom's synchronous object access.dispose() to deterministically free the Lexbor document and QuickJS runtime, no waiting on GC.| Component | Requirement |
|---|---|
| React Native | 0.76.0 or higher, with the New Architecture (Fabric + TurboModules) enabled |
| Node.js | 18.0.0 or higher |
react-native-nitro-modules | Required peer dependency |
yarn add react-native-nitro-jsdom react-native-nitro-modules
For iOS, install pods:
cd ios && pod install && cd ..
For Android, the package auto-links. Run a Gradle sync if needed.
See the Compatibility page for platform details (iOS, Android, visionOS) and Expo notes.
Full docs, architecture, and API reference: salve-software.github.io/react-native-nitro-jsdom
We welcome contributions! See CONTRIBUTING.md for setup instructions, branch/commit conventions, and the PR process.
This project is licensed under the MIT License, see LICENSE for details.
Made by Salve Software
FAQs
A headless HTML/DOM environment for React Native.
We found that @salve-software/react-native-nitro-jsdom demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.

Security News
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.

Security News
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.