st-refresher
v1.0.1
Published
Keep your free-tier Streamlit apps alive — ping, watch, and manage app URLs from the CLI
Maintainers
Readme
st-refresher
Keep your free-tier Streamlit apps alive — CLI tool for refreshing sleeping Streamlit apps.
npm install -g st-refresherCommands
ping
Ping a Streamlit URL once, watch it, or call an API server.
st-refresher ping https://myapp.streamlit.app # ping once
st-refresher ping https://myapp.streamlit.app -w 300 # watch every 300s
st-refresher ping http://localhost:3000 -u myuser # refresh all via API
st-refresher ping http://localhost:3000 -u myuser -i 0 # refresh app 0 via API
st-refresher ping # refresh all saved appsadd / delete / list
Manage apps in the local config file (~/.streamlit-auto-refresher).
st-refresher add https://myapp.streamlit.app -n "My App"
st-refresher list
st-refresher delete "My App"
st-refresher delete https://myapp.streamlit.apprefresh
Refresh saved apps from the config file.
st-refresher refresh # refresh all
st-refresher refresh "My App" # refresh one by nameschedule / unschedule
Windows Task Scheduler integration — runs st-refresher refresh at user logon.
st-refresher schedule
st-refresher unscheduleHow it works
- Launches headless Chrome via Puppeteer
- Navigates to the URL and looks for the "Yes, get this app back up!" button
- Clicks it to wake the app
- Falls back to HTTP GET if Puppeteer fails
