Transcrypt

What Transcrypt is
Transcrypt compiles Python source code into JavaScript for browser applications. It converts a substantial subset of Python into JavaScript 6, with optional minification, and lets Python code call JavaScript functions and use browser DOM features and JavaScript libraries. Its examples include jQuery, React, Fabric.js, D3.js, Plotly.js, and Riot. The distribution also offers optional static type validation and consistency checks, plus multilevel source maps for debugging generated JavaScript from its Python source. Transcrypt can compile Python server code for Node.js and use Node libraries through require(). It is installed as a Python package with pip and is free under the Apache 2.0 license. The project is aimed at browser development and JavaScript libraries rather than desktop Python libraries. Because it precompiles code, Python exec and eval are unsupported, though JavaScript eval is supported. C and C++ libraries are not directly supported for browser use without special measures such as compiling them to asm.js.
Who it suits
Transcrypt suits Python developers building browser applications who want to work with JavaScript libraries and browser APIs. It can also target Node.js server code.
What it does well
- Free under the Apache 2.0 license
- Can call JavaScript functions from Python code
- Includes source maps for debugging generated JavaScript
- Can compile Python server code for Node.js
What to know first
- Python exec and eval are unsupported
- C and C++ libraries need special measures for browser use
- Focuses on browser development, not desktop Python libraries
Limits
The free plan is listed as free. Python exec and eval are unsupported, and C and C++ libraries are not directly supported for browser use without special measures.
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| Transcrypt | Free and open source · Apache 2.0 license · no obligation to donate | Free |
As transcrypt.org lists them, read 3 Oct 2026. The maker's own page has the final word.
Getting started
- Open the Transcrypt website.
- Install Transcrypt as a Python package with pip.
- Write application code using the supported Python subset.
- Compile the code into JavaScript for browser use.
Transcrypt is a Python-to-JavaScript compiler for browser and web-client applications. It is a strong fit for developers who want Python syntax alongside JavaScript libraries and browser APIs. Its appeal depends on accepting a precompiled Python subset and a JavaScript-first library ecosystem.
Overview
Transcrypt turns a substantial subset of Python into compact, readable JavaScript 6, with optional minification. This makes Python a viable authoring language for browser code, but it does not make the browser a runtime for arbitrary Python: code is compiled ahead of time, and exec and eval in Python are unsupported. JavaScript eval is supported. The Apache 2.0 license and free plan remove a cost barrier, while the compatibility limits deserve attention before committing a project to it.
Key features
- Python language support: Transcrypt supports modules, multiple inheritance, comprehensions, and async/await, among a fairly extensive subset of Python. Optional static type validation and consistency checks can help catch issues before output reaches the browser. It remains a subset, so code that depends on dynamic execution such as Python exec or eval will not carry over directly.
- JavaScript and browser interoperability: Transcrypt code can call JavaScript functions and use browser DOM functions and JavaScript libraries. Examples include jQuery, React, Fabric.js, D3.js, Plotly.js, and Riot. This is its defining practical strength for web-client teams that want Python authoring without giving up the JavaScript ecosystem.
- Debugging and output: Multilevel sourcemaps let developers trace generated JavaScript back to Python source, and the compiler can minify its JavaScript output. Together, these tools make the compile step more workable during development and deployment.
- Node.js target: Transcrypt can also compile Python server code for Node.js and use Node libraries through require(). That extends its reach beyond browser clients, though the project's stated focus remains browser development rather than desktop Python libraries.
Pricing
Transcrypt costs nothing. The free and open-source plan is under the Apache 2.0 license, with no obligation to donate. There is no paid tier to unlock a broader feature set, and no free-trial decision to make. Optional donations support the project; commercial support is available on demand.
Transcrypt — free: The plan includes the open-source compiler and CLI access. It suits individual developers and teams evaluating or building projects within Transcrypt's supported Python subset. The trade-off is not a cheaper tier's feature cap, but the compiler's language and library boundaries: Python exec and eval are unsupported, and C or C++ libraries are not directly supported for browser use without special measures such as compiling them to asm.js.
Platforms
Transcrypt is tested under Windows, Linux, and OSX, and its stated platforms include macOS, Windows, Linux, web, and self-hosted use. The recommended installation method is pip as a Python package. Its browser focus makes it a fit for web clients, while Node.js compilation provides a server-side target as well.
Who it's for
Choose Transcrypt if you want to write browser applications in Python, expect to use JavaScript libraries or browser DOM functions, and can keep your code within its precompiled subset. It is particularly relevant when Python is the preferred authoring language but JavaScript interoperability is still essential.
Look elsewhere if your application relies on Python's dynamic execution, desktop-oriented Python libraries, or direct use of C and C++ libraries in the browser. Those needs collide with the design choices that make Transcrypt focused and JavaScript-compatible.
Pros and cons
- Pro — Direct JavaScript access: Calling JavaScript functions and using browser APIs and libraries keeps the web ecosystem within reach while writing Python source.
- Pro — Useful development tools: Sourcemaps, optional checks, and minification address debugging and output needs around the compilation workflow.
- Pro — No license cost: The Apache 2.0 open-source plan is free, with no obligation to donate.
- Con — Not all Python transfers: Precompilation rules out Python exec and eval, which matters for code that depends on runtime execution.
- Con — JavaScript-centered library support: The project does not directly support C or C++ libraries for browser use, and it is not aimed at desktop Python libraries.
- Con — Support is community-oriented by default: The FAQ recommends Stack Overflow; commercial support is available on demand.
Alternatives
Code Transpilers is the broader category for comparing tools in this space.
- SWC is a free, open-source Rust-based developer toolchain; consider it instead if that toolchain is a better fit than Python-to-JavaScript compilation.
- Babel is a free, community-funded option with no paid tiers or usage limits stated; choose it if you want that JavaScript-transformation alternative rather than authoring web code in Python.
- ClojureScript is free, open source under the Eclipse Public License 1.0, and covers Linux, macOS, self-hosted, web, and Windows platforms; pick it if that alternative better suits your project.
- Google Web Toolkit is a free, open-source Apache 2.0 option; consider it if you prefer that alternative.
- Kotlin/JS is a free Kotlin compiler target for JavaScript configured with the Kotlin Multiplatform Gradle plugin; choose it if Kotlin is the language you want to compile to JavaScript.
- Cython is freely available under the Apache 2.0 license; consider it as another free, open-source option.
- Vala is free, with no paid plans or usage limits stated on its official pages; it is an alternative if you want to consider another free option.
- CoffeeScript is another free alternative.
Verdict
Transcrypt is worth choosing for developers who want Python to be the source language for browser applications while retaining direct access to JavaScript libraries and browser functions. Its free Apache 2.0 plan and useful compile-time tools strengthen that case. If your project depends on Python's dynamic execution or libraries written in C or C++, look for a tool whose runtime and library model supports those needs instead.
Verdict
Transcrypt offers a way to write browser applications in Python while using JavaScript libraries and tools. Its precompilation and library limits matter for projects that depend on Python exec, eval, or C and C++ libraries.
Questions
How much does Transcrypt cost?
The Transcrypt plan is listed as free. It is free and open source under the Apache 2.0 license.
Is there a free plan or trial?
Transcrypt has a free plan. There is no free trial.
What platforms does it support?
The listed platforms are Linux, macOS, self-hosted, web and Windows. Its documentation says it is tested under Windows, Linux and OSX.
Is Transcrypt open source?
Yes. It is licensed under Apache 2.0.
What does Transcrypt compile?
It compiles an extensive subset of Python into JavaScript for browser applications. It can also compile Python server code targeting Node.js.
How can users get help?
The FAQ recommends Stack Overflow. Commercial support is available on demand.
Facts from Transcrypt's own pages
- Browser development
- The project focuses on writing web client applications in Python that compile to JavaScript. · transcrypt.org, 3 Oct 2026
- Compatibility limit
- The documentation says Python exec and eval are unsupported because Transcrypt precompiles code; JavaScript eval is supported. · transcrypt.org, 3 Oct 2026
- Debugging
- Transcrypt provides multi-level source maps so developers can debug generated JavaScript from Python source code. · transcrypt.org, 3 Oct 2026
- Installation
- The site recommends installing Transcrypt with pip as a Python package. · transcrypt.org, 3 Oct 2026
- Integrations
- The examples page includes integrations or demos involving jQuery, React, Fabric.js, D3.js, Plotly.js, and Riot. · transcrypt.org, 3 Oct 2026
- Intended use
- The documentation says Transcrypt focuses on browser development and JavaScript libraries rather than desktop Python libraries. · transcrypt.org, 3 Oct 2026
- JavaScript access
- Transcrypt says JavaScript libraries can be used without restrictions or complications, and Python code can call JavaScript functions directly. · transcrypt.org, 3 Oct 2026
- JavaScript interoperability
- Transcrypt applications can use JavaScript libraries and browser DOM functions. · transcrypt.org, 3 Oct 2026
- JavaScript output
- Transcrypt generates JavaScript 6 and can minify the output. · transcrypt.org, 3 Oct 2026
- Language features
- Listed features include multiple inheritance, async/await, comprehensions, modules, optional static type checking, source maps, and built-in minification. · transcrypt.org, 3 Oct 2026
- Language tools
- The distribution includes optional static type validation, consistency checks, and minification tools. · transcrypt.org, 3 Oct 2026
- Library limit
- Transcrypt is designed for JavaScript libraries and does not directly support libraries written in C or C++. · transcrypt.org, 3 Oct 2026
- License and cost
- Transcrypt is free and open source under the Apache 2.0 license, and the FAQ says donations are optional. · transcrypt.org, 3 Oct 2026
- Limit
- Transcrypt does not directly support libraries written in C or C++ for browser use without special measures such as compiling them to asm.js. · transcrypt.org, 3 Oct 2026
- Node.js
- Transcrypt can compile Python to JavaScript for use on both the client and server with Node.js, subject to facilities available on each platform. · transcrypt.org, 3 Oct 2026
- Open source
- Transcrypt is licensed under the Apache 2.0 open source license. · transcrypt.org, 3 Oct 2026
- Operating systems
- The getting started documentation says Transcrypt is tested under Windows, Linux, and OSX. · transcrypt.org, 3 Oct 2026
- Purpose
- Transcrypt compiles Python source code into JavaScript for browser applications. · transcrypt.org, 3 Oct 2026
- Support
- The FAQ recommends Stack Overflow for help and says commercial support is available on demand. · transcrypt.org, 3 Oct 2026
- Supported systems
- The documentation says Transcrypt is tested under Windows, Linux, and OSX. · transcrypt.org, 3 Oct 2026
- What it does
- Transcrypt compiles a fairly extensive subset of Python into compact, readable JavaScript. · transcrypt.org, 3 Oct 2026
Where Transcrypt stands on Freedom251
- Code Transpilers#17 of 28