This example demonstrates how to add a "Verified by Auths" badge and verification widget to your project using Auths.
# 1. Fork this repo
# 2. Enable GitHub Pages (Settings > Pages > Source: GitHub Actions)
# 3. Push to main — the badge site deploys automatically| Path | Purpose |
|---|---|
docs/index.html |
Live verification widget demo page (all 3 display modes) |
docs/badge.svg |
Static "Verified by Auths" badge for README embedding |
.github/workflows/verify-commits.yml |
CI commit verification |
.github/workflows/deploy-badge-site.yml |
Deploy verification page to GitHub Pages |
Add this to your README:
[](https://your-org.github.io/your-repo/)Add the <auths-verify> web component to your HTML page:
<script type="module" src="https://unpkg.com/@auths-dev/verify/dist/auths-verify.mjs"></script>
<!-- Badge mode (compact) -->
<auths-verify repo="your-org/your-repo" forge="github" mode="badge"></auths-verify>
<!-- Detail mode (expanded) -->
<auths-verify repo="your-org/your-repo" forge="github" mode="detail"></auths-verify>
<!-- Tooltip mode (hover to expand) -->
<auths-verify repo="your-org/your-repo" forge="github" mode="tooltip"></auths-verify>The <auths-verify> web component does NOT render in GitHub README files. GitHub strips custom HTML elements and <script> tags from Markdown. The widget works on:
- GitHub Pages sites
- Personal/project websites
- Documentation platforms (Docusaurus, MkDocs, etc.)
- Any HTML page you control
For GitHub READMEs, use the static SVG badge instead.
| Mode | Description |
|---|---|
badge |
Compact badge showing verified/unverified status |
detail |
Expanded view with signer info and verification details |
tooltip |
Badge that expands on hover to show details |
- The
<auths-verify>widget loads a WASM module that performs cryptographic verification in the browser - It fetches the repository's signing data from
refs/auths/in the git repo - Verification happens entirely client-side — no backend required
- The static SVG badge is a simple image for environments that don't support JavaScript
- GitHub Pages enabled on your repository
- Auths CLI for commit signing (
brew install auths-dev/auths-cli/auths)