---
title: '@svartz/auth/badge'
description: The `@svartz/auth/badge` entry point.
updated_at: '2026-11-19T21:17:45+01:00'
---

# @svartz/auth/badge

## Functions

- [formatReputation](https://svartz.dev/reference/api/auth/badge/formatreputation.md) — `score` as the badge shows it: whole points, grouped (`1,234`), and shortened past ten thousand (`12.3K`).
- [reputationBadgeHtml](https://svartz.dev/reference/api/auth/badge/reputationbadgehtml.md) — The badge as HTML, to follow an account's name after a space: `<span class="sv-reputation-badge" …>1,234</span>`. A screen reader reads the score whole, and so does its tooltip.
- [reputationBadgeParts](https://svartz.dev/reference/api/auth/badge/reputationbadgeparts.md) — The badge's parts: what only assistive technology reads, and what everyone sees. A score shown whole reads as "Reputation 1,234"; a shortened one is read in full, "Reputation 12,500", while `12.5K` is shown.
- [reputationLabel](https://svartz.dev/reference/api/auth/badge/reputationlabel.md) — What the badge says to assistive technology and in its tooltip: the score in full, named.

## Variables

- [REPUTATION_BADGE_CLASS](https://svartz.dev/reference/api/auth/badge/reputation_badge_class.md) — The badge's class: `.sv-reputation-badge`.
