{"categories":[{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content"}],"enrichment":{"capability":"Adds a frontend timer to Streamlit apps that triggers periodic script reruns without blocking the server or requiring an infinite loop.","skillfed_tags":["streamlit-component","dashboard","abandoned"],"use_cases":["Building a live dashboard that updates metrics or stats at regular intervals without blocking the Streamlit server.","Displaying real-time data feeds or sensor readings at regular intervals in a web app.","Creating a monitoring application that polls for status changes without an infinite loop in the script.","Refreshing a Streamlit app at a fixed cadence while allowing users to interact with controls between refreshes.","Limiting the total number of refreshes to prevent unbounded resource consumption in long-running apps."],"what_it_does":"Streamlit Autorefresh is a custom Streamlit component that places a timer in the browser frontend to periodically trigger app reruns on a fixed interval. Instead of using an infinite loop in your script (which blocks the server and complicates shutdown), you call st_autorefresh() once with an interval in milliseconds and an optional refresh limit, and the browser handles the timing. The function returns a counter tracking how many times the refresh has fired, letting you conditionally execute different logic at different refresh counts.\n\nThe component is designed for dashboards and real-time stats applications where you want regular updates without tying up server resources. You can optionally debounce refreshes when users interact with the app, and you should use a unique key to maintain state across reruns. The trade-off is that it shifts timing work to the browser and relies on frontend timers, which are not perfectly precise.","worth_installing":"No\u2014the package is abandoned (last release 2023-06-25, no commits since). While it has low install friction and no known vulnerabilities, the lack of maintenance means it may break with future Streamlit versions, and the unclear license creates legal ambiguity. For new projects, consider native Streamlit refresh patterns or actively maintained alternatives."},"id":"streamlit-autorefresh","links":{"html":"https://skillfed.io/packages/streamlit-autorefresh","md":"https://skillfed.io/packages/streamlit-autorefresh.md","pypi":"https://pypi.org/project/streamlit-autorefresh/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2023-06-25","license_spdx":null,"license_treatment":"unclear","name":"streamlit-autorefresh","python_support":"supports_current","summary":"Simple way to autorefresh your Streamlit apps"},"popularity":{"monthly_downloads":764368,"position":5123,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.1"}
