Stlite brings Streamlit to the browser by running Python entirely via Pyodide — a WebAssembly port of CPython. You can embed a full Streamlit app in a static web page, integrate it into a React app, bundle it as an Electron desktop application, or export it as a shareable URL — all without a Python server.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/whitphx/stlite/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
Learn what Stlite is, how it works, and which package fits your use case.
Quickstart
Embed your first Streamlit app in a browser page in under 5 minutes.
@stlite/browser
Use Stlite on any static web page via CDN script tag or the
mount() API.@stlite/react
Integrate Stlite as a React component in your Vite or React app.
@stlite/desktop
Package your Streamlit app as a standalone Electron desktop application.
CLI
Use the
stlite CLI to export apps as HTML files, shareable URLs, or offline bundles.How It Works
Stlite runs CPython inside your browser using Pyodide, a WebAssembly build of Python. The Streamlit frontend runs as normal in the browser, but instead of talking to a Python server over a WebSocket, it communicates with a Pyodide kernel running in a Web Worker. This means:- No server required — the entire app runs client-side
- No installation for end-users — just visit a URL
- Pyodide packages — install Python packages at runtime via
micropip - Full Streamlit API — most Streamlit widgets and features work as-is
Choose Your Integration
Static Web Page
Load from CDN with a
<script> tag. Zero build step required.React App
Drop in
<StliteAppWithToast> and call createKernel() in any React project.Desktop App
Bundle with Electron using
@stlite/desktop and ship a .exe or .app.Try It Online
Visit Stlite Sharing to write and run a Streamlit app directly in your browser — no installation needed.Stlite runs Python in the browser via WebAssembly. Some Python packages that rely on native C extensions may not be available. See the Limitations guide for details.