Something went wrong. Try again.
ATProto app badge generator for static web pages colddark.world/tools/badger/index.html
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>cd.w/Badger</title> <style> body { max-width: 50ch; padding-inline: 1em; margin: auto; /* i like ubuntu :) */ font-family: Ubuntu, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; } h1 { text-align: center; } #inputs { width: 100%; display: flex; flex-direction: row; justify-content: center; gap: 1ch; } #id { width: 50ch; } .baby { font-size: small; font-style: italic; } code { user-select: all; } .sc { font-variant: small-caps; } #out { display: block; overflow-wrap: anywhere; } .line { display: block; overflow-x: scroll; white-space: nowrap; } :root { color-scheme: light dark; } .box { background-color: #eee; border: 0.5ch solid #ccc; border-radius: 1ch; margin: 1ch; padding: 1ch; } #messages { position: absolute; left: 1ch; bottom: 1ch; } @media (prefers-color-scheme: dark) { .box { background-color: #444; border-color: #222; } } .error { border-color: indianred; } </style> <script type="importmap"> { "imports": { "@atcute/cbor": "https://esm.sh/@atcute/atproto@3.1", "@atcute/cbor": "https://esm.sh/@atcute/cbor@2.3", "@atcute/cid": "https://esm.sh/@atcute/cid@2.4", "@atcute/client": "https://esm.sh/@atcute/client@4.2", "@atcute/microcosm": "https://esm.sh/@atcute/microcosm@1.0", "@atcute/oauth-browser-client": "https://esm.sh/@atcute/oauth-browser-client@3.0" } } </script> <script> /* @licstart The following is the entire license notice for the JavaScript code in this page.
Badger - Web application to detect ATProto applications and generate static HTML 'badges' for a user Copyright (C) 2026 Grant Mulholland <badger@colddark.world>
The JavaScript code in this page is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License (GNU GPL) as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The code is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you may distribute non-source (e.g., minimized or compacted) forms of that code without the copy of the GNU GPL normally required by section 4, provided you include this license notice and a URL through which recipients can access the Corresponding Source.
@licend The above is the entire license notice for the JavaScript code in this page. */ </script></head><body> <h1 id="title">Badger</h1> <noscript><p class="error box">This application requires JavaScript to run.</p></noscript> <div id="main" hidden="1"> <p> Provide your ATProto handle/DID, and you'll get static HTML you can copy-paste for a neat set of clickable badges for services detected. The resulting container will have the class <code>badger-outer</code>, and the text being <code>badger-label</code>. <br />(I personally don't recommend hiding the text.) </p> <form id="inputs"> <input type="text" id="id" placeholder="example.com // did:plc:example // did:web:example.com" /> <input type="submit" id="go" value="Go!" /> </form> <div id="result" class="box" hidden> <div id="initial-result" hidden> All set, just copy the code below into your own page! <br /> <details> <summary>Badge Code (click code to select all)</summary> <code id="out">(This is a placeholder... You shouldn't be able to see this!)</code> </details> <br /> Alternatively, you can publish them to your PDS: <button id="publish">Publish Web Tile (experimental)</button> <hr /> <span class="sc">preview</span> <div id="preview"></div> </div> <div id="tile-result" hidden> Your Web Tile's been published! <br /> Record URI: <code class="line" id="tile-uri"></code> <a id="tile-link"><button>View Tile</button></a> </div> </div> <p class="baby"> Copyright (C) 2026 Grant Mulholland <<a href="mailto:badger@colddark.world">badger@colddark.world</a>> <br /> Licensed under GNU <a href="https://www.gnu.org/licenses/gpl-3.0.html">GPL v3</a> - <a href="https://tangled.org/colddark.world/badger/tree/trunk">Source Code @ Tangled</a> </p> </div> <script src="badger.js" type="module"></script></body></html>