tensorflowjs
What it is and what it does
tensorflowjs is a Python package that bridges TensorFlow models and TensorFlow.js, the JavaScript machine-learning library. It provides command-line tools and a Python API to convert TensorFlow SavedModels and other formats into a format that TensorFlow.js can load and run in browsers or Node.js environments. The package includes a CLI converter (tensorflowjs_converter) and an interactive wizard (tensorflowjs_wizard) to guide users through the conversion process.
The package depends on a large stack of machine-learning libraries—tensorflow, tf-keras, jax, jaxlib, flax, and tensorflow-decision-forests—making it a heavy install. It is intended for developers and researchers who need to deploy trained TensorFlow models to web or JavaScript environments. The dormant maintenance status (no release in 662 days) suggests the package may not be actively developed, though the conversion logic itself may be stable enough for existing workflows.
Use it for:
- Convert a trained TensorFlow SavedModel to TensorFlow.js format for inference in a web browser.
- Deploy a Keras model to a Node.js server using the converted TensorFlow.js format.
- Automate model conversion workflows with the tensorflowjs_converter CLI in a build pipeline.
- Use the interactive wizard to guide non-technical team members through model conversion without writing code.
- Integrate TensorFlow model serving into a full-stack JavaScript application by converting and bundling models.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts TensorFlow models to TensorFlow.js format for browser and Node.js deployment, with CLI tools and a wizard for model conversion workflows.
Yes, if you need to deploy TensorFlow models to JavaScript environments and can tolerate dormant maintenance. The low install friction and permissive license are favorable, but the 662-day gap since the last release and lack of repository metadata raise questions about active support. Verify compatibility with your TensorFlow and TensorFlow.js versions before committing to production use.
Install
tensorflowjs on PyPI
pip
pip install tensorflowjsuv
uv add tensorflowjspoetry
poetry add tensorflowjsInstalling tensorflowjs
Before you install
Low install friction with a pure-Python wheel. Maintenance is dormant—no release in 662 days—which may signal stalled development or stable-enough code; the large runtime dependency tree (tensorflow, jax, flax, and others) means setup requires resolving a complex ecosystem.
License in practice
Apache 2.0 permissive license allows commercial and private use with minimal restrictions; you may use, modify, and distribute the package provided you include the license notice.
Quickstart
pip install tensorflowjs
python -c "from tensorflowjs import converters; help(converters.convert_tf_saved_model)"
Requires TensorFlow and its full dependency stack (including jaxlib, flax) to be installed and functional; model conversion workflows typically need a working TensorFlow environment.
Verify before relying
- Whether the 662-day gap since last release reflects active maintenance or abandonment; no repo or commit data available.
- Actual Python version support—classifiers list Python 2 and 3 but requires_python is unspecified.
- Whether the package works with current TensorFlow and TensorFlow.js versions, given the dormant maintenance status.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 10 — flax, importlib_resources, jax, jaxlib, tensorflow, tf-keras, tensorflow-decision-forests, six, tensorflow-hub, packaging |
| Maintenance | dormant — 662 days since the last release |
| First released | |
| Downloads | 3,979,871/month — #2,431 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tensorflowjs-4.22.0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
tf2onnxConverts TensorFlow, Keras, TensorFlow.js, and…
permissive · top 15,000 on PyPI
onnxmltoolsConverts machine learning models from multiple…
permissive · top 5,000 on PyPI
onnxconverter-commonProvides common utilities and functions for…
permissive · top 5,000 on PyPI
tensorflow-probabilityTensorFlow Probability provides probabilistic…
permissive · top 5,000 on PyPI
tensorflow-estimatorTensorFlow Estimator provides a high-level API…
permissive · top 5,000 on PyPI
litert-converterConverts machine learning models to LiteRT…
permissive · top 15,000 on PyPI
ai-edge-model-explorerVisualizes and debugs machine learning model…
permissive · top 15,000 on PyPI
tensorflow-serving-apiProvides Python client APIs to communicate with…
permissive · top 5,000 on PyPI