{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/3"}],"enrichment":{"capability":"Executes arbitrary JavaScript code from within a Streamlit application and returns the result to Python, enabling browser-side operations like API calls and DOM manipulation.","skillfed_tags":["streamlit-component","browser-automation","javascript-bridge"],"use_cases":["Make browser-based API calls (e.g., fetch from external services) that would otherwise be blocked by CORS in a pure Python backend.","Access browser-specific data like geolocation, local storage, or device information and pass it back to your Streamlit app.","Execute client-side validation or transformation logic without a round-trip to the server.","Integrate third-party JavaScript libraries that need to run in the browser context within your Streamlit UI.","Prototype or debug JavaScript behavior directly within a Streamlit application without building a separate frontend."],"what_it_does":"Streamlit-javascript is a Streamlit component that bridges Python and browser-side JavaScript execution. It lets you run arbitrary JavaScript code in the user's browser from within a Streamlit app and capture the result back in Python. This is useful when you need to perform operations that only the browser can do\u2014like making cross-origin API calls, accessing browser APIs, or manipulating the DOM\u2014without leaving your Streamlit application.\n\nThe package wraps a single function, `st_javascript()`, that takes a JavaScript code string and executes it in the browser session. The return value flows back to Python as a variable you can use in your app logic. It depends only on Streamlit itself, so installation is straightforward. However, the package has not been updated since May 2022, and the last commit was in April 2025, which means it may not be fully tested against recent Streamlit versions.","worth_installing":"Yes, if you need browser-side JavaScript execution in Streamlit and can tolerate aging maintenance. The package is simple, has no known vulnerabilities, and carries a permissive license. However, verify compatibility with your Streamlit version before relying on it in production, and be aware that browser security policies may limit what the JavaScript can do."},"id":"streamlit-javascript","links":{"html":"https://skillfed.io/packages/streamlit-javascript","md":"https://skillfed.io/packages/streamlit-javascript.md","pypi":"https://pypi.org/project/streamlit-javascript/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2022-05-13","license_spdx":null,"license_treatment":"permissive","name":"streamlit-javascript","python_support":"supports_current","summary":"component to run javascript code in streamlit application"},"popularity":{"monthly_downloads":295501,"position":7921,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.5"}
