{"id":29092212,"url":"https://github.com/ettorecaputo/streamlit-annotator","last_synced_at":"2026-04-24T22:32:25.403Z","repository":{"id":301442716,"uuid":"1009090533","full_name":"EttoreCaputo/streamlit-annotator","owner":"EttoreCaputo","description":"st-annotator is a Streamlit component usefull to annotate text, expecially for NLP and Argument Mining purposes.","archived":false,"fork":false,"pushed_at":"2025-06-26T22:06:53.000Z","size":4190,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T23:17:29.725Z","etag":null,"topics":["annotator","argument","mining","nlp","streamlit","streamlit-components"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/st-annotator/","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/EttoreCaputo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2025-06-26T15:01:22.000Z","updated_at":"2025-06-26T22:10:42.000Z","dependencies_parsed_at":"2025-06-26T23:17:36.258Z","dependency_job_id":"0951e5db-a9d6-40b7-be4e-165f18d23063","html_url":"https://github.com/EttoreCaputo/streamlit-annotator","commit_stats":null,"previous_names":["ettorecaputo/streamlit-annotator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EttoreCaputo/streamlit-annotator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EttoreCaputo%2Fstreamlit-annotator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EttoreCaputo%2Fstreamlit-annotator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EttoreCaputo%2Fstreamlit-annotator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EttoreCaputo%2Fstreamlit-annotator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EttoreCaputo","download_url":"https://codeload.github.com/EttoreCaputo/streamlit-annotator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EttoreCaputo%2Fstreamlit-annotator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262389457,"owners_count":23303341,"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":["annotator","argument","mining","nlp","streamlit","streamlit-components"],"created_at":"2025-06-28T07:04:00.148Z","updated_at":"2026-04-24T22:32:25.398Z","avatar_url":"https://github.com/EttoreCaputo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Streamlit Annotator\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\n**Download the package from PyPI:**\n\n[![PyPI version](https://badge.fury.io/py/st-annotator.svg)](https://badge.fury.io/py/st-annotator)\n\n\n\n\u003c/td\u003e\n\u003ctd\u003e\n\n**Try the demo on Streamlit Cloud:**\n\n[![Open in Streamlit](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://st-annotator.streamlit.app)\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n# Install with pip\n\n```\npip install st-annotator\n```\n\nst-annotator is a Streamlit component usefull to annotate text, expecially for NLP and Argument Mining purposes.\nBased on the original project [Streamlit Annotation Tools](https://github.com/streamlit/annotation-tools) of [rmarquet21](https://github.com/rmarquet21).\n\n\n![](docs/example.png)\n\n### Features:\n- 📍 Smart positioning that stays within screen bounds\n- 📊 Shows text content, label category, position, and all custom metadata\n- 🎨 Matches your custom color scheme\n- ⚡ Instant display on hover, disappears on mouse leave\n- 🔧 Supports strings, numbers, booleans, lists, and objects\n\n### New Features\n- Key parameter to text_annotator function\n- A special button to show all the annotations together\n- **🆕 Hover Popup with Metadata**: Hover over annotations to see detailed information including custom metadata\n\n\n\n\n### Metadata Support\nYou can now add custom metadata to each annotation that will appear in a hover popup:\n\n```python\nlabels = {\n    \"Sentiment\": [\n        {\n            \"start\": 0,\n            \"end\": 20,\n            \"label\": \"This is amazing!\",\n            \"metadata\": {\n                \"confidence\": 0.95,\n                \"emotion\": \"Joy\",\n                \"intensity\": \"High\",\n                \"source\": \"Customer feedback\"\n            }\n        }\n    ]\n}\n```\n\n# Quick Start\n\nRun the example.py file:\n\n```\nstreamlit run examples/example.py\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fettorecaputo%2Fstreamlit-annotator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fettorecaputo%2Fstreamlit-annotator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fettorecaputo%2Fstreamlit-annotator/lists"}