{"id":15063774,"url":"https://github.com/okld/streamlit-discourse","last_synced_at":"2025-10-29T15:18:12.285Z","repository":{"id":57471760,"uuid":"322114886","full_name":"okld/streamlit-discourse","owner":"okld","description":"A streamlit component to embed Discourse topics in your applications.","archived":false,"fork":false,"pushed_at":"2021-05-24T23:31:23.000Z","size":133,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T10:12:05.267Z","etag":null,"topics":["demo","discourse","python","streamlit","streamlit-component","streamlit-discourse"],"latest_commit_sha":null,"homepage":"https://share.streamlit.io/okld/streamlit-gallery/main?p=discourse","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/okld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-16T22:14:54.000Z","updated_at":"2025-03-12T09:31:30.000Z","dependencies_parsed_at":"2022-08-30T13:50:51.952Z","dependency_job_id":null,"html_url":"https://github.com/okld/streamlit-discourse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okld%2Fstreamlit-discourse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okld%2Fstreamlit-discourse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okld%2Fstreamlit-discourse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okld%2Fstreamlit-discourse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okld","download_url":"https://codeload.github.com/okld/streamlit-discourse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208620,"owners_count":21065203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demo","discourse","python","streamlit","streamlit-component","streamlit-discourse"],"created_at":"2024-09-25T00:07:05.384Z","updated_at":"2025-10-29T15:18:12.192Z","avatar_url":"https://github.com/okld.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💬 Streamlit Discourse\n\n[![GitHub][github_badge]][github_link] [![PyPI][pypi_badge]][pypi_link] \n\n## Installation\n\n```sh\npip install streamlit-discourse\n```\n\n## Getting started\n\n```python\nfrom streamlit_discourse import st_discourse\n\n# https://discuss.streamlit.io/t/discourse-component/8061\n\ndiscourse_url = \"discuss.streamlit.io\"\ntopic_id = 8061\n\nst_discourse(discourse_url, topic_id)\n```\n\n## Tutorial\n\n### Embed Streamlit topics into your Streamlit Sharing apps\n\nLet's say you made a topic on this forum showcasing one of your apps.\nNow you want to integrate comments from your topic directly in it.\n\n1. The first step is to get your **Topic ID**.\n    You can find it in the URL of your topic.\n    For instance with this URL: https://discuss.streamlit.io/t/discourse-integration/8061, the Topic ID is 8061, located at the end.\n\n2. Now in your app, you just have to call `st_discourse(\"discuss.streamlit.io\", 8061)`\n\n\u003e :warning: If your app is **not** run from share.streamlit.io, you won't be able to embed comments from discuss.streamlit.io.\n\u003e The same thing applies when you run your app locally, you'll get an `Embedding error`.\n\u003e\n\u003e If your app is not hosted on Streamlit Sharing, please refer to the two next parts below.\n\n### Embed posts from another Discourse into your Streamlit apps\n\nWith this component, you can embed comments from other Discourse websites as well.\nHowever, those other Discourse must be configured to allow embedding for your Streamlit app domain.\n\nFor example, if you have a discourse hosted on mydiscourse.example.com, and your streamlit app on myapp.herokuapp.com, you must allow the host myapp.herokuapp.com in your discourse configuration.\n\nFor more information, please follow steps 1 to 3 described [here](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963#configuring-discourse-for-embedding-simple-setup).\n\n### Another way to embed comments into your Streamlit apps\n\nNot everyone has its own Discourse, or has admin rights to change embedding settings.\n\nIf you're just looking for an easy way to embed comments into your apps **not** hosted on Streamlit Sharing, a great alternative would be to use [Disqus](https://disqus.com/).\nYou can easily embed comments using [this component](https://share.streamlit.io/okld/streamlit-gallery/main?p=disqus) ([github](https://github.com/okld/streamlit-disqus)).\n\n## Demo\n\n[![Open in Streamlit][share_badge]][share_link]\n\n[![Preview][share_img]][share_link]\n\n[share_badge]: https://static.streamlit.io/badges/streamlit_badge_black_white.svg\n[share_link]: https://share.streamlit.io/okld/streamlit-gallery/main?p=discourse\n[share_img]: https://raw.githubusercontent.com/okld/streamlit-discourse/main/preview.png\n\n[github_badge]: https://badgen.net/badge/icon/GitHub?icon=github\u0026color=black\u0026label\n[github_link]: https://github.com/okld/streamlit-discourse\n\n[pypi_badge]: https://badgen.net/pypi/v/streamlit-discourse?icon=pypi\u0026color=black\u0026label\n[pypi_link]: https://pypi.org/project/streamlit-discourse\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokld%2Fstreamlit-discourse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokld%2Fstreamlit-discourse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokld%2Fstreamlit-discourse/lists"}