Badge Playground
Badge System
Xray Checker includes a badge system that allows you to embed proxy status indicators anywhere. Badges are perfect for:
- Status pages
- Dashboards
- Documentation
- README files
- Monitoring displays
Interactive Builder
Use this playground to configure and preview your badge. Enter your Xray Checker URL and a proxy’s Stable ID to get started.
Preview
Dark
Light
Enter Base URL and Stable ID to see preview
Generated URL
- Embed Code
- URL Parameters Reference
| Parameter | Values | Default | Description |
|---|---|---|---|
stableId | {id} | required | Proxy stable ID from API |
theme | dark, light | dark | Color theme |
variant | default, flat, pill, dot | default | Badge style |
size | sm, md, lg | md | Badge size |
rounded | none, sm, md, lg, full | md | Corner rounding |
showName | true, false | true | Show proxy name |
showLatency | true, false | true | Show latency value |
transparent | true, false | false | Transparent background |
width | number or CSS value | auto | Custom width |
height | number or CSS value | auto | Custom height |
Getting Stable ID
Each proxy has a unique stableId that persists across restarts. Get it from the API:
curl https://your-xray-checker.com/api/v1/public/proxiesResponse includes stableId for each proxy:
{ "success": true, "data": [ { "stableId": "a1b2c3d4e5f67890", "name": "US-Server-1", "online": true, "latencyMs": 150 } ]}Examples
Basic Badge
https://your-server.com/?stableId=abc123Light Theme Pill
https://your-server.com/?stableId=abc123&theme=light&variant=pillStatus Dot Only
https://your-server.com/?stableId=abc123&variant=dotCompact Without Latency
https://your-server.com/?stableId=abc123&size=sm&showLatency=falseCustom Size for Dashboard
https://your-server.com/?stableId=abc123&width=200&height=40Transparent Background
https://your-server.com/?stableId=abc123&transparent=trueEmbedding
HTML iframe
<iframe src="https://your-server.com/?stableId=abc123&theme=light&variant=pill" width="200" height="50" frameborder="0"></iframe>Markdown (GitHub)
Note: GitHub doesn’t support iframes. Use a status image service or link instead:
[](https://your-server.com)Page Customization
You can also customize the full dashboard page using URL parameters:
| Parameter | Description |
|---|---|
hideHeader=true | Hide header with logo and controls |
hideStats=true | Hide statistics cards |
hideServersHeader=true | Hide “Servers” heading and buttons |
hideControls=true | Hide search, filters, and sorting |
hideProxies=true | Hide proxy list |
hideStatusInfo=true | Hide technical info footer |
hideFooter=true | Hide page footer |
hideBackground=true | Transparent background |
Example: Minimal Embed
https://your-server.com/?hideHeader=true&hideFooter=true&hideBackground=true&hideControls=trueThis shows only the proxy cards on a transparent background - perfect for embedding.