Show HN: jsrun – Isolated JavaScript Runtime in Python via Embedded V8

Share This Post

Hi HN! I built jsrun, a Python library that embeds the V8 (https://v8.dev) engine to run JavaScript inside Python

https://github.com/imfing/jsrun

Python does not have great options for sandboxed or isolated code execution, and I was hoping for something similar to the Cloudflare Workers model that provides lightweight isolates

jsrun provides:
– a fully isolated JavaScript runtime backed by V8
– each runtime spins up a V8 isolate in <5ms, runs on its own thread with GIL released, keeping JavaScript execution isolated Python
– ability to expose Python functions and data directly to the JS environment

built with Rust/PyO3, shipped as wheels with no extra dependencies

It would be good for cases like code playground, user scripting, AI generated code execution, or anywhere that needs a JS runtime inside a Python application

Would love any feedback, ideas!


Comments URL: https://news.ycombinator.com/item?id=45956165

Points: 1

# Comments: 0

Source: github.com

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Windows Securitym Hackers Feeds

FunkSec – Alleged Top Ransomware Group Powered by AI

Article URL: https://research.checkpoint.com/2025/funksec-alleged-top-ransomware-group-powered-by-ai/ Comments URL: https://news.ycombinator.com/item?id=45956208 Points: 1 # Comments: 0 Source: research.checkpoint.com

Do You Want To Boost Your Business?

drop us a line and keep in touch

We are here to help

One of our technicians will be with you shortly.