Streamlit over Starlette is a Game-Changer

Streamlit 1.53 saw the release of experimental Starlette support replacing Tornado. But it came with an even bigger surprise: contrary to Tornado, you have ...

Streamlit over Starlette is a Game-Changer
Fanilo Andrianasolo
1.9K views β€’ Feb 2, 2026
Streamlit over Starlette is a Game-Changer

About this video

Streamlit 1.53 saw the release of experimental Starlette support replacing Tornado.

But it came with an even bigger surprise: contrary to Tornado, you have full access to the Starlette backend in the Streamlit framework. You are free to serve custom endpoints, MCP objects and FastAPI apps directly from the Streamlit server.

In this video I share all the new use cases unlocked by this

00:00 Intro
00:19 Setup Starlette backend
02:07 Add Custom Endpoints in Streamlit
03:42 Streamlit is a Starlette App now
04:39 Serve static assets with Streamlit
06:23 Optimize Streamlit SEO
07:30 Mount FastAPI in Streamlit
09:00 Configure Starlette websockets
11:58 Mount FastMCP in Streamlit
13:52 Secure Streamlit
15:18 Send Cookies to Streamlit
16:55 Whitelist IPs to App
18:37 React to Startup / Shutdown events
20:40 Handle background events
22:17 Use error HTML pages
23:55 Install Streamlit 1.53

---

πŸ—£οΈ Stay up to date with the Data Web App Ecosystem

- πŸ“‘ Follow my socials ➑ https://andfanilo.com
- πŸ“§ Get my latest updates in your inbox ➑ https://andfanilo.com/newsletter
- πŸ’° Buy me a coffee to stay awake while editing ➑ https://www.buymeacoffee.com/andfanilo

πŸ”— Links

- Code: https://github.com/andfanilo/streamlit-starlette-demo/tree/main/apps

πŸ”§ My tools (Affiliate links to support me)

- πŸ“• Streamlit Official Book - https://amzn.to/3QuRPwl
- πŸ“· Main Camera - https://amzn.to/3QvTosB
- πŸ“· Main Lens - https://amzn.to/3svYCwq
- πŸŽ™οΈ Microphone - https://amzn.to/47l5ewA
- 🎡 Music & Sound Effects - https://www.epidemicsound.com/referral/a2p22s

---

πŸͺΆ It's been a long time since I last had fun with After Effects...something Remotion Agent Skills won't commoditize for me (I hope)

⚠️ Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. Thank you for supporting my channel so I can continue providing you with free content!

#streamlit #python #datascience #dataapps

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

1.9K

Likes

64

Duration

24:30

Published

Feb 2, 2026

User Reviews

4.5
(1)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.