<!-- Before </body>, on every page that needs live updates --><scriptsrc="https://hibira.io/embed/v1.js"data-key="YOUR_APP_KEY"data-host="ws.hibira.io"async></script>
기본 제공 위젯 넣기
<!-- People on this page right now (turn on "Send subscriber counts" in the app settings) --><spandata-hibira-online="lobby">0</span> online
<!-- The newest "update" events on the news channel, newest first --><uldata-hibira-feed="news"data-event="update"data-limit="10"></ul><!-- A toast for each "alert" event: { "title": "...", "body": "...", "url": "..." } --><divdata-hibira-toast="alerts"data-event="alert"data-position="bottom-right"></div>
직접 작성한 코드에서 클라이언트 사용
// Runs as soon as the script has loaded, even if this code runs first.
(window.Hibira = window.Hibira || []).push((client) => {
client.subscribe('orders').bind('order-shipped', (data) => {
console.log('Order shipped', data);
});
});
에이전트 프롬프트
Claude Code, Cursor, GitHub Copilot 등 AI 코딩 에이전트에 붙여 넣으면 위 설정대로 Hibira를 내 HTML 프로젝트에 연동합니다.
YOUR_APP_KEY 등 자리 표시자는 대시보드의 값으로 바꾸세요. 에이전트가 환경 변수로 남겨 두게 한 뒤 나중에 채워도 됩니다.
또는 Hibira MCP 서버를 연결하면 에이전트가 앱을 만들고 자격 증명까지 직접 채웁니다. AI 코딩 에이전트 연결 →