{"repo":"whitphx/stlite","free":true,"listed":false,"github":"https://github.com/whitphx/stlite","clone":"git clone https://github.com/whitphx/stlite.git","description":"Streamlit-Lite; In-browser Streamlit 🎈🚀","language":"TypeScript","stars":1654,"topics":["pyodide","python","streamlit","wasm","web-assembly","webassembly","hacktoberfest","in-browser","serverless"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"Stlite: In-browser Streamlit Serverless Streamlit Running Entirely in Your Browser This project is tested with BrowserStack. Streamlit is a Python web app framework for the fast development of data apps. This project is to make it run completely on web browsers with the power of Pyodide, WebAssembly (Wasm)-ported Python. Try it out online ( Stlite Sharing ) Visit Stlite Sharing. Create a desktop app ( @stlite/desktop ) See @stlite/desktop . Integrate Stlite into your React app ( @stlite/react ) See @stlite/react . Use Stlite on your web page ( @stlite/browser ) [!NOTE] Since 0.76.0, @stlite/mountable is renamed to @stlite/browser , and the API is changed. See the Migration guide for the details. You can use Stlite on your web page loading the script and CSS files via and tags as below. Here is a sample HTML file. In this sample, - Stlite is set up by loading the JavaScript and CSS files via and tags. - The Stlite runtime recognizes the tag and launches the Streamlit app defined in it. --- Stlite also provides the \"more raw\" API with which you call the mount() JavaScript function explicitly to mount a Streamlit app on a specific element in the DOM. In this sample, - Stlite 's mount() function is imported within the tag. You also need to load the CSS file via tag as well. - mount() mounts the Streamlit app on the element as specified via the second argument. The app script is passed via the first argument. [!NOTE] If you use backticks inside your Streamlit code (e.g. writing ma","default_branch":null,"files":null,"tree":[],"storefront":"/r/whitphx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/whitphx/stlite/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}