Skip to content

Allow specifying custom website metadata #5673

@RubenVanEldik

Description

@RubenVanEldik

Problem

Streamlit apps are becoming more and more fully fledged web applications. However, the basic website metadata functionalities are still suboptimal, this causes the app to look kind of weird when shared online.

Solution

I would appreciate it if we could specify more web app manifest parameters via streamlit.config.yaml, so the webpage looks better in search engine results and when shared:

  • name
  • short_name
  • description
  • author
  • language
  • display (default should be standalone)
  • icons (ideally just a path to an image and Streamlit will convert it to the different required icon formats/sizes)
  • theme_color (default should be theme.primaryColor)
  • background_color (default should be theme.backgroundColor)

Personally, I really like how the Nuxt.js PWA module does this, for inspiration see https://pwa.nuxtjs.org/meta.

This could possibly be added to streamlit/config.yaml like this:

[server]
runOnSave = true

[theme]
base = "light"
primaryColor = "#dc2626"

[metadata]
name = "My super long app name"
short_name = "Short app name"
display = "standalone"
icon = "./icon.png" 

Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.

If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.

Views

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:configRelated to `config.toml` and config optionstype:enhancementRequests for feature enhancements or new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions