@kanmon-hq/kura-ui

Web Components UI suite for Kura LLM Gateway & Token Broker
376
Install
npm install @kanmon-hq/kura-ui
Latest Version:0.0.2
Vue:3
License:MPL-2.0
Last Updated:Oct 19, 2026
Links: GitHub  ·  npm
Maintainer: northfield.t

@kanmon-hq/kura-ui

Kura LLM Gateway & Token Broker 向けの組み込み型 Web Components UI ライブラリ。
Vue 3、React、Next.js、Vanilla HTML などあらゆるフロントエンド環境に単一のカスタム要素として簡単に組み込み可能です。

特徴

  • ⚡ Web Components (Custom Elements): <kura-console> タグで即座にマウント可能
  • 🛡️ Shadow DOM スコープ保護: ホストアプリケーションの CSS と干渉しない完全隔離スタイリング
  • 📊 トークン & コスト計測: 全テナント横断のトークン消費量・Prompt/Completion 内訳・推計コスト集計
  • 💳 2段階クレジット上限管理: サービス全体(親枠)およびテナント個別(子枠)の月次コスト上限統制

インストール

npm からインストール (推奨)

npm install @kanmon-hq/kura-ui

GitHub Packages からインストール

プロジェクト直下の .npmrc に以下を設定してインストールします:

@kanmon-hq:registry=https://npm.pkg.github.com
npm install @kanmon-hq/kura-ui

使い方 (Vue 3 / React)

Vue 3

<script setup lang="ts">
import '@kanmon-hq/kura-ui'

const tenants = [
  { id: 'tenant-corp-a', name: '企業 A' },
  { id: 'tenant-corp-b', name: '企業 B' }
]
</script>

<template>
  <kura-console
    api-base-url=""
    admin-key="your-admin-master-key"
    service-id="itcp-service"
    :tenants-json="tenants"
  />
</template>

React

import React, { useEffect } from 'react'

export function KuraAdminPage() {
  useEffect(() => {
    import('@kanmon-hq/kura-ui')
  }, [])

  return (
    <kura-console
      api-base-url={process.env.NEXT_PUBLIC_KURA_API_URL}
      admin-key="secret"
      service-id="itcp-service"
    />
  )
}

ライセンス

MPL-2.0

Related Packages

@kanmon-hq/tollgate-ui

Web Components UI suite for Tollgate API Gateway & Key Broker

901 0
@kanmon-hq/portico-ui

Web Components UI suite for Portico FastMCP Hub & Gateway

316 0
@unframed/vue

Vue components for Unframed web components, with v-model and typed props.

951 1
@ds-mo/ui

CompoMo — composable web components styled with TokoMo design tokens

43,041 1
gcsa-ui

GCSA website UI kit — Vue 3 components + Web Components (SiteFooter, Logo, Mobil...

2,917

Version History

Version Released Vue License
0.0.2 ^3.5.13 MPL-2.0
0.0.1 ^3.5.13 Apache-2.0