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:
codepen.io/editor/team/...

The Web Awesome Cover Image