Back to Home11/17/2025, 6:06:15 PM

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

1 points
0 comments

Mood

thoughtful

Sentiment

positive

Category

tech

Key topics

JavaScript

Python

Sandboxing

V8 Engine

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!

The author introduces jsrun, a Python library that embeds the V8 engine to run isolated JavaScript code, and seeks feedback on its potential applications.

Snapshot generated from the HN discussion

Discussion Activity

No activity data yet

We're still syncing comments from Hacker News.

Generating AI Summary...

Analyzing up to 500 comments to identify key contributors and discussion patterns

Discussion (0 comments)

Discussion hasn't started yet.

ID: 45956165Type: storyLast synced: 11/17/2025, 6:09:04 PM

Want the full context?

Jump to the original sources

Read the primary article or dive into the live Hacker News thread when you're ready.