Brython vs Kotlin/JS
Brython
brython.infoKotlin/JS
kotlinlang.orgSide by side
| Figure | Brython | Kotlin/JS |
|---|---|---|
| Price from | — | Free |
| Free plan | — | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | Yes |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | — | Yes |
| iOS | Yes | — |
| Android | Yes | — |
| Self-hosted | Yes | — |
| Plans published | 0 | 1 |
| Spec score · Code Transpilers | 7.9 (#10) | 7.8 (#15) |
| Integrations | A CPython package installed with pip can be added to a Brython application with brython-cli add_package. | JetBrains provides Kotlin wrappers for React and other JavaScript frameworks, including support for React Redux, React Router, and styled-components. |
| Purpose | Brython implements Python 3 in the browser and lets developers run Python code in HTML pages. | Kotlin/JS transpiles Kotlin code, the Kotlin standard library, and compatible dependencies to JavaScript. |
Plans
In their own words
Kotlin/JS
Kotlin/JS is a Kotlin compiler target that converts Kotlin code, the Kotlin standard library, and compatible dependencies into JavaScript. Projects can target browsers or Node.js, including server-side and serverless applications. It supports ES5, ES2015, and ES2020 output, as well as ESM, CommonJS, UMD, and AMD modules. Projects use the Kotlin Multiplatform Gradle plugin for configuration, bundling, and JavaScript dependencies from npm. Kotlin/JS can share logic between web frontends and JVM backends, or across Android, iOS, and web clients. Kotlin wrappers are available for React and other JavaScript frameworks, including React Redux, React Router, and styled-components. Browser tests can use Karma or an experimental browser testing DSL; Node.js projects use Mocha. The documentation notes that Karma is deprecated and is not expected to receive new features or bug fixes. The Gradle plugin generates JavaScript source maps for builds. Kotlin/JS is open source and free at free, and is listed for Linux, macOS, web, and Windows.