{"id":26495987,"url":"https://github.com/q-maze/streamlit-vis-network","last_synced_at":"2026-02-19T00:03:15.399Z","repository":{"id":272342319,"uuid":"916235296","full_name":"q-maze/streamlit-vis-network","owner":"q-maze","description":"Streamlit component that allows you to visualize networks using vis.js","archived":false,"fork":false,"pushed_at":"2025-03-19T14:06:17.000Z","size":2190,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-07T11:57:53.298Z","etag":null,"topics":["graphs","streamlit","streamlit-component","visualization"],"latest_commit_sha":null,"homepage":"","language":"Python","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/q-maze.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-13T17:54:14.000Z","updated_at":"2025-03-19T14:06:20.000Z","dependencies_parsed_at":"2025-01-13T20:28:19.633Z","dependency_job_id":"0d7caaee-3d2a-48b2-992b-94f5cfdeb2ea","html_url":"https://github.com/q-maze/streamlit-vis-network","commit_stats":null,"previous_names":["q-maze/streamlit-vis-network"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/q-maze/streamlit-vis-network","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q-maze%2Fstreamlit-vis-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q-maze%2Fstreamlit-vis-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q-maze%2Fstreamlit-vis-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q-maze%2Fstreamlit-vis-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/q-maze","download_url":"https://codeload.github.com/q-maze/streamlit-vis-network/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q-maze%2Fstreamlit-vis-network/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29599338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T22:25:43.180Z","status":"ssl_error","status_checked_at":"2026-02-18T22:25:42.766Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["graphs","streamlit","streamlit-component","visualization"],"created_at":"2025-03-20T11:20:09.493Z","updated_at":"2026-02-19T00:03:15.384Z","avatar_url":"https://github.com/q-maze.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# streamlit-vis-network\n\nStreamlit component that allows you to visualize networks using vis.js\n\n## Installation instructions\n\n```sh\npip install streamlit-vis-network\n```\n\n## Usage instructions\n\n```python\nimport streamlit as st\nfrom streamlit_vis_network import streamlit_vis_network\n\n# define nodes and edges as python dicts\nnodes = [{'id': 1, \"label\": \"node 1\"}, {'id': 2, \"label\": \"node 2\"}]\nedges = [{\"from\": 1, \"to\": 2, \"label\": \"edge\", \"id\": \"edge1\"}]\n\n# pass nodes and edges to component constructor\nselection = streamlit_vis_network(nodes, edges, height=500, width=500)\n\n# display selected node/edge\nif selection:\n    selected_nodes, selected_edges, positions = selection\n    if selected_nodes:\n        st.write(f\"Selected node: {selected_nodes[0]}\")\n    elif selected_edges:\n        st.write(f\"Selected edge: {selected_edges[0]}\")\n    else:\n        st.write(\"No current selection.\")\nelse:\n    st.write(\"No current selection.\")\n\n# show node positions\nif st.toggle(label=\"Show Node Positions\") and selection:\n    st.write(\"Node Positions\")\n    st.write(positions)\n```\n\n## Demo\n![til](function.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fq-maze%2Fstreamlit-vis-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fq-maze%2Fstreamlit-vis-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fq-maze%2Fstreamlit-vis-network/lists"}