Most devs have had to build a star rating component from scratch at least once.
Web Awesome ships it as one tag:
<wa-rating>
Half-stars, custom icons, accessible out of the box. Try it here:
https://codepen.io/editor/team/webawesome/pen/01a08cc3-720b-7cce-b267-a78562b64929

Also posted to Bluesky.