# metaBus
> metaBus (https://metabus.app) is a directory of browser-playable online spaces. Creators register a space by adding one static script tag (the Presence SDK). The tag is both the live-visitor counter and the proof of site ownership.
This file tells AI coding agents how to install the metaBus Presence SDK correctly. Human guide: https://metabus.app/guide/sdk (Korean) · https://metabus.app/en/guide/sdk (English).
## The tag
```html
```
- `SITE_ID` is the public id shown on the registration page (format `mb__`). Copy it exactly.
- Optional attributes: `data-badge` = `bottom-right` (default) | `bottom-left` | `top-right` | `top-left` | `none`; `data-badge-link` = `on` (default) | `off`; `data-lang` = `ko` (default) | `en`. Any other `data-*` is ignored.
- SRI-pinned variant: `https://sdk.metabus.app/presence.v1..js` with `integrity` and `crossorigin="anonymous"`. It never receives automatic patches.
## Install rules (must follow)
1. Put the tag statically inside `` of the HTML document the server returns for the registered URL.
2. Never inject it at runtime (`useEffect`, `componentDidMount`, `document.createElement`, `document.head.appendChild`, tag managers, `next/script` in the Next.js App Router). Verification reads the raw HTML without executing JavaScript, so runtime injection fails with `TAG_NOT_FOUND` even though the SDK itself runs.
3. Do not put it inside ``, HTML comments, `` or `