# PiotrDabkowski/Js2Py

JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python🚀 Try it online:

Repository: https://github.com/PiotrDabkowski/Js2Py
Canonical: https://ross.abutalabs.com/products/js2py
Homepage: http://piter.io/projects/js2py
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-05-06T12:15:15+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4353, "days_push": 849, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2570, forks 281 (observed 2026-08-28T04:07:01.348453+00:00)

## What it is
Js2Py is a pure Python JavaScript translator and interpreter that can evaluate JavaScript code from Python or translate JS files into Python modules. It fully supports ECMAScript 5.1 with experimental ES6 support via Babel translation.

## Use cases
- run javascript code from python
- translate a js file to a python module
- execute node modules like crypto-js inside python
- evaluate javascript expressions without node installed
- embed a js interpreter in a python app

## When to choose
- you need to run small-to-medium JavaScript snippets or libraries from Python with no external runtime
- you want a pure-Python, pip-installable JS engine
- you need to convert a JS library into importable Python code

## When to avoid
- you need full, reliable ES6+ support or modern JS features
- performance matters - translated code is slow
- you need to run huge JS codebases with edge cases like very high argument counts

## Facets
- artifact type: library
- maturity: maintenance
- function: interpreter, parser, compiler
- domain: programming-languages, parsers, developer-tools
- platform: python, cross-platform
- tags: javascript, transpiler, ecmascript, pure-python, js-execution

## Member repositories
- PiotrDabkowski/Js2Py (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:01.348453+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:23:18.587401+00:00, confidence not recorded.
  - readme: https://github.com/PiotrDabkowski/Js2Py (fetched 2026-08-28T04:07:01.348453+00:00, sha d7a211374cb4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
