{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/18"}],"enrichment":{"capability":"Embeds and executes JavaScript code within Python using the quickjs-ng engine, allowing bidirectional calls between Python and JavaScript with resource limits and thread-safe execution patterns.","skillfed_tags":["javascript-embedding","sandboxing","scripting-engine"],"use_cases":["Execute untrusted or sandboxed JavaScript code with enforced memory and CPU time limits","Call JavaScript utility functions or libraries from a Python application without Node.js","Prototype or test JavaScript logic within a Python test suite or data pipeline","Embed a lightweight scripting layer in Python applications for user-provided expressions","Migrate from the archived quickjs package with minimal code changes"],"what_it_does":"quickjs-ng is a Python wrapper around the actively maintained quickjs-ng JavaScript engine, allowing you to evaluate JavaScript expressions and call JavaScript functions from Python, and vice versa. It is a drop-in replacement for the archived quickjs package, so existing code using `import quickjs` continues to work unchanged.\n\nThe package provides a Context object for isolated JavaScript execution, a Function helper for thread-safe calls from multiple threads, and resource controls (memory limits, CPU time limits, stack size). Each Context owns its own QuickJS runtime with no shared state; threading is handled either by creating one Context per thread or by using the Function wrapper, which manages a dedicated worker thread internally. Pre-built wheels are available for Linux, Windows, and macOS across CPython 3.10+ and PyPy 3.10/3.11.","worth_installing":"Yes, with conditions. The package is actively maintained, has no known vulnerabilities, and offers a clean API for JavaScript embedding. However, verify the actual license text before use in proprietary projects, since metadata shows 'unclear' despite the description mentioning MIT. Install friction is medium due to the C extension, but pre-built wheels cover common platforms. Suitable for sandboxed script execution, prototyping, and projects that need lightweight JavaScript evaluation without a full Node.js runtime."},"id":"quickjs-ng","links":{"html":"https://skillfed.io/packages/quickjs-ng","md":"https://skillfed.io/packages/quickjs-ng.md","pypi":"https://pypi.org/project/quickjs-ng/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-01","license_spdx":null,"license_treatment":"unclear","name":"quickjs-ng","python_support":"supports_current","summary":"Thin Python wrapper of quickjs-ng"},"popularity":{"monthly_downloads":128737,"position":11696,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.16.0.1"}
