🎉 Black Friday: 40% off Pro Yearly with code PRO40. Check the full offer here

🎉 Black Friday: 40% off Pro Yearly with code PRO40. Check the full offer here

🎉 Black Friday: 40% off Pro Yearly with code PRO40. Check the full offer here

INDUSTRIES

自動車

航空・宇宙

金融

ゲーム

メドテック

IoT

デジタルプロダクト

USE CASES

エンタープライズ向け

個人向け

チーム向け

教育向け

ProtoPie Feature

ハードウェア・システム統合

ProtoPie MCP

マルチデバイス・プロトタイピング

インタラクション・ロジック

開発者へのハンドオフ

ProtoPie AI

ユーザーテスト

FAMILY PRODUCTS

Connect Omni

STUDIO PLUGINS

Figma

Sketch

Adobe XD

INSIGHTS & INSPIRATION

ブログ

eBook

カスタマーストーリー

イベント&ウェビナー

ProtoPie ギャラリー

PRODUCT LEARNING & SUPPORT

ProtoPieスクール

ProtoPieをダウンロード

製品ドキュメント

コミュニティ

INDUSTRIES

自動車

航空・宇宙

金融

ゲーム

メドテック

IoT

デジタルプロダクト

USE CASES

エンタープライズ向け

個人向け

チーム向け

教育向け

ProtoPie Feature

ハードウェア・システム統合

ProtoPie MCP

マルチデバイス・プロトタイピング

インタラクション・ロジック

開発者へのハンドオフ

ProtoPie AI

ユーザーテスト

FAMILY PRODUCTS

Connect Omni

STUDIO PLUGINS

Figma

Sketch

Adobe XD

INSIGHTS & INSPIRATION

ブログ

eBook

カスタマーストーリー

イベント&ウェビナー

ProtoPie ギャラリー

PRODUCT LEARNING & SUPPORT

ProtoPieスクール

ProtoPieをダウンロード

製品ドキュメント

コミュニティ

Menu


Connect Omni クイックスタート: ダッシュボードとシミュレーターの接続

このガイドでは、AI で構築された 2 つのアプリ(スマートホーム Web ダッシュボードと Python シミュレーター)を接続します。ダッシュボードで温度を変更すると、シミュレーターがリクエストを受信し、更新された温度を返します。同じ手順は、他のあらゆる 2 つのアプリ間でも同様に機能します。

始める前に

確認項目

重要な理由

組織の Connect Omni アドレス(例: yourcompany.connectomni.io)にサインインできること

Connect Omni のアカウントは ProtoPie Cloud とは別個です

少なくとも 1 つのチームで Editor 権限を持っていること

Editor のみ Stage および Adapter Key の作成が可能です

Web ダッシュボードと Python シミュレーターがあること、またはこれらを作成するための AI コーディングツールがあること

両方のアプリを同じ Stage に接続し、メッセージを確認します

アプリから Stage サーバーに到達できること

ファイアウォールやローカルネットワーク設定によって接続がブロックされる場合があります

ゼロから始める場合は、AI コーディングツールに依頼して、温度調整と確定値の表示機能を備えた Web ダッシュボード、および温度リクエストを受信してシミュレーション値を更新し、確定温度を返す Python シミュレーターを作成してください。これらはステップ 3 で接続します。

ステップ 1. Stage を作成する

サインインし、Editor 権限を持つチームを選択して、+ New Stage を選択します。名前(例: Smart Home Test)を入力します。

ステップ 2. 各アプリ用の Adapter Key を作成する

  1. Stage 内で、Share → Adapter keys → Create key の順に開きます。

  2. dashboard-dev という名前のキーを作成し、すぐにコピーします。完全なキーが表示されるのは一度だけです。

  3. simulator-dev という名前の 2 つ目のキーでも同様に繰り返します。

  4. Editor が Stage を開いたままにしなくてもアプリから Stage を実行できるようにする場合は、Let adapters start a session をオンのままにしておきます。

  5. 各キーをそれぞれのアプリの CONNECT_TOKEN 環境変数として保存します。

キー名は認証情報を管理するための単なるラベルです。ステップ 3 で設定する Adapter Name は、Backstage でアプリを識別するためのものです。これらの名前は一致している必要はありません。

🔒公開されている AI チャット、コードリポジトリ、またはスクリーンショットにキーを貼り付けないでください。キーが漏洩した場合は、新しいキーを作成し、古いキーを無効化してください。

ステップ 3. 各アプリに Adapter を追加する

AI コーディングツールを使用して Adapter をインストールおよび構成するか、手動でセットアップできます。

AI コーディングツールを使用したセットアップ

任意の AI コーディングツールの場合

Connect Omni Adapter AI ガイド を AI コーディングツールと共有します。ツールはこのガイドを参照して、適切な Adapter パッケージを選択、インストールし、接続コードを記述できます。

例:

Read the Connect Omni Adapter guide:
https://raw.githubusercontent.com/ProtoPie/omni-adapter-ai/main/llms.txt

Connect this project to my Connect Omni Stage.
Choose and install the appropriate Adapter package,
then add the connection code.

Read the Adapter Key from CONNECT_TOKEN.
Never hardcode, print, or commit it

Read the Connect Omni Adapter guide:
https://raw.githubusercontent.com/ProtoPie/omni-adapter-ai/main/llms.txt

Connect this project to my Connect Omni Stage.
Choose and install the appropriate Adapter package,
then add the connection code.

Read the Adapter Key from CONNECT_TOKEN.
Never hardcode, print, or commit it

Read the Connect Omni Adapter guide:
https://raw.githubusercontent.com/ProtoPie/omni-adapter-ai/main/llms.txt

Connect this project to my Connect Omni Stage.
Choose and install the appropriate Adapter package,
then add the connection code.

Read the Adapter Key from CONNECT_TOKEN.
Never hardcode, print, or commit it

Read the Connect Omni Adapter guide:
https://raw.githubusercontent.com/ProtoPie/omni-adapter-ai/main/llms.txt

Connect this project to my Connect Omni Stage.
Choose and install the appropriate Adapter package,
then add the connection code.

Read the Adapter Key from CONNECT_TOKEN.
Never hardcode, print, or commit it

Read the Connect Omni Adapter guide:
https://raw.githubusercontent.com/ProtoPie/omni-adapter-ai/main/llms.txt

Connect this project to my Connect Omni Stage.
Choose and install the appropriate Adapter package,
then add the connection code.

Read the Adapter Key from CONNECT_TOKEN.
Never hardcode, print, or commit it

Claude Code の場合

Connect Omni Adapter Skill を直接インストールすることもできます:

/plugin marketplace add ProtoPie/omni-adapter-ai
/plugin install omni-adapter@studioxid
/plugin marketplace add ProtoPie/omni-adapter-ai
/plugin install omni-adapter@studioxid
/plugin marketplace add ProtoPie/omni-adapter-ai
/plugin install omni-adapter@studioxid
/plugin marketplace add ProtoPie/omni-adapter-ai
/plugin install omni-adapter@studioxid
/plugin marketplace add ProtoPie/omni-adapter-ai
/plugin install omni-adapter@studioxid

この Skill により、Claude Code は適切な Adapter を選択し、アプリを Connect Omni と統合できます。

手動セットアップ

各プロジェクトに Adapter パッケージをインストールします:

アプリ

インストール

ダッシュボード (TypeScript / JavaScript)

npm install @studioxid/omni-adapter

シミュレーター (Python)

pip install omni-adapter

Node.js アプリケーションの場合、TypeScript パッケージには Node.js 22 以降が必要です。Python はバージョン 3.10 以降が必要です。

その他のサポートされている言語については、Adapters & Messages → Supported languages を参照してください。

ダッシュボードとシミュレーターの接続

このクイックスタートでは、Node.js バックエンドを使用して Web ダッシュボードを Connect Omni に接続します。Adapter はバックエンドで実行され、ダッシュボードはユーザーインターフェースを処理します。Adapter Key はバックエンドに保持し、ブラウザ側のコードには絶対に含めないでください。ダッシュボードがブラウザ内でのみ実行され、バックエンドを使用しない場合は、別の接続方法について Showing Apps on the Stage → Web View を参照してください。

AI コーディングツールを使用している場合は、以下のサンプルプロンプトを使用してダッシュボードとシミュレーターを構成できます。

ダッシュボード用プロンプト

Connect my existing web dashboard to Connect Omni using the published @studioxid/omni-adapter package.

Read the Adapter Key from CONNECT_TOKEN. Never hardcode, print, or commit it.

Use the Adapter Name smart-home-dashboard.

When the user selects a temperature, send climate.temperature.request with that number.

Receive climate.temperature and update the displayed temperature.

Run the Adapter on a Node.js backend. If this project doesn't have one, add a small backend and connect it to the existing dashboard UI. Never expose the Adapter Key in browser-side code.

Handle connection errors and clean shutdown. Follow the installed package documentation.

Show me the files changed and how to run the dashboard. Do not invent Adapter APIs

Connect my existing web dashboard to Connect Omni using the published @studioxid/omni-adapter package.

Read the Adapter Key from CONNECT_TOKEN. Never hardcode, print, or commit it.

Use the Adapter Name smart-home-dashboard.

When the user selects a temperature, send climate.temperature.request with that number.

Receive climate.temperature and update the displayed temperature.

Run the Adapter on a Node.js backend. If this project doesn't have one, add a small backend and connect it to the existing dashboard UI. Never expose the Adapter Key in browser-side code.

Handle connection errors and clean shutdown. Follow the installed package documentation.

Show me the files changed and how to run the dashboard. Do not invent Adapter APIs

Connect my existing web dashboard to Connect Omni using the published @studioxid/omni-adapter package.

Read the Adapter Key from CONNECT_TOKEN. Never hardcode, print, or commit it.

Use the Adapter Name smart-home-dashboard.

When the user selects a temperature, send climate.temperature.request with that number.

Receive climate.temperature and update the displayed temperature.

Run the Adapter on a Node.js backend. If this project doesn't have one, add a small backend and connect it to the existing dashboard UI. Never expose the Adapter Key in browser-side code.

Handle connection errors and clean shutdown. Follow the installed package documentation.

Show me the files changed and how to run the dashboard. Do not invent Adapter APIs

Connect my existing web dashboard to Connect Omni using the published @studioxid/omni-adapter package.

Read the Adapter Key from CONNECT_TOKEN. Never hardcode, print, or commit it.

Use the Adapter Name smart-home-dashboard.

When the user selects a temperature, send climate.temperature.request with that number.

Receive climate.temperature and update the displayed temperature.

Run the Adapter on a Node.js backend. If this project doesn't have one, add a small backend and connect it to the existing dashboard UI. Never expose the Adapter Key in browser-side code.

Handle connection errors and clean shutdown. Follow the installed package documentation.

Show me the files changed and how to run the dashboard. Do not invent Adapter APIs

Connect my existing web dashboard to Connect Omni using the published @studioxid/omni-adapter package.

Read the Adapter Key from CONNECT_TOKEN. Never hardcode, print, or commit it.

Use the Adapter Name smart-home-dashboard.

When the user selects a temperature, send climate.temperature.request with that number.

Receive climate.temperature and update the displayed temperature.

Run the Adapter on a Node.js backend. If this project doesn't have one, add a small backend and connect it to the existing dashboard UI. Never expose the Adapter Key in browser-side code.

Handle connection errors and clean shutdown. Follow the installed package documentation.

Show me the files changed and how to run the dashboard. Do not invent Adapter APIs

シミュレーター用プロンプト

Connect my existing Python simulator to Connect Omni using the published omni-adapter package.

Read the Adapter Key from CONNECT_TOKEN. Never hardcode, print, or commit it.

Use the Adapter Name smart-home-simulator.

Receive climate.temperature.request, convert its value to a number, and update the simulated temperature.

Send climate.temperature with the confirmed value.

Handle reconnection and clean shutdown. Follow the installed package documentation.

Show me how to run the simulator. Do not invent Adapter APIs

Connect my existing Python simulator to Connect Omni using the published omni-adapter package.

Read the Adapter Key from CONNECT_TOKEN. Never hardcode, print, or commit it.

Use the Adapter Name smart-home-simulator.

Receive climate.temperature.request, convert its value to a number, and update the simulated temperature.

Send climate.temperature with the confirmed value.

Handle reconnection and clean shutdown. Follow the installed package documentation.

Show me how to run the simulator. Do not invent Adapter APIs

Connect my existing Python simulator to Connect Omni using the published omni-adapter package.

Read the Adapter Key from CONNECT_TOKEN. Never hardcode, print, or commit it.

Use the Adapter Name smart-home-simulator.

Receive climate.temperature.request, convert its value to a number, and update the simulated temperature.

Send climate.temperature with the confirmed value.

Handle reconnection and clean shutdown. Follow the installed package documentation.

Show me how to run the simulator. Do not invent Adapter APIs

Connect my existing Python simulator to Connect Omni using the published omni-adapter package.

Read the Adapter Key from CONNECT_TOKEN. Never hardcode, print, or commit it.

Use the Adapter Name smart-home-simulator.

Receive climate.temperature.request, convert its value to a number, and update the simulated temperature.

Send climate.temperature with the confirmed value.

Handle reconnection and clean shutdown. Follow the installed package documentation.

Show me how to run the simulator. Do not invent Adapter APIs

Connect my existing Python simulator to Connect Omni using the published omni-adapter package.

Read the Adapter Key from CONNECT_TOKEN. Never hardcode, print, or commit it.

Use the Adapter Name smart-home-simulator.

Receive climate.temperature.request, convert its value to a number, and update the simulated temperature.

Send climate.temperature with the confirmed value.

Handle reconnection and clean shutdown. Follow the installed package documentation.

Show me how to run the simulator. Do not invent Adapter APIs

手動での統合については、TypeScript および Python コードの Adapters & Messages → Manual integration example を参照してください。これらの例では、メッセージを交換する方法を示しています。ハンドラーをご自身のアプリの UI に接続してください。

詳細情報

完全な API の手順およびその他の例については、以下を参照してください:

両方のパッケージには、接続管理、メッセージの送受信、トラブルシューティングに関する追加のガイダンスが含まれています。

ステップ 4. 両方のアプリを実行して結果を確認する

両方のアプリを実行し、ダッシュボードで温度を変更します。

確認項目

場所

期待される結果

接続

Backstage

smart-home-dashboard と smart-home-simulator の両方が接続済みとして表示される

温度リクエスト

コンソール

選択した値とともに climate.temperature.request が送信される

温度レスポンス

コンソール

シミュレーターから climate.temperature が返される

UI の更新

ダッシュボード

表示される温度が確定値と一致する

両方のアプリが接続されているにもかかわらずダッシュボードが更新されない場合は、チャンネル名とダッシュボードのメッセージハンドラーを確認してください。

アプリが Backstage に表示されない場合は、キーを確認し、Stage Session が実行中であることを確認してください。TypeScript アプリの場合は、以下を実行します:

npx --no-install omni-adapter doctor "$CONNECT_TOKEN"
npx --no-install omni-adapter doctor "$CONNECT_TOKEN"
npx --no-install omni-adapter doctor "$CONNECT_TOKEN"
npx --no-install omni-adapter doctor "$CONNECT_TOKEN"
npx --no-install omni-adapter doctor "$CONNECT_TOKEN"

Python アプリの場合は、以下を実行します:

python -m omni_adapter doctor "$CONNECT_TOKEN"
python -m omni_adapter doctor "$CONNECT_TOKEN"
python -m omni_adapter doctor "$CONNECT_TOKEN"
python -m omni_adapter doctor "$CONNECT_TOKEN"
python -m omni_adapter doctor "$CONNECT_TOKEN"

これにより、キー、サーバー、および Session がチェックされます。アプリがメッセージを適切に処理しているかどうかはチェックされません。

チャンネル名のヒント

  • 名前は完全に一致している必要があり、大文字と小文字が区別されます。climate.temperature と Climate.Temperature は異なるチャンネルです。

  • climate.temperature.request のように、データやアクションを説明する名前を使用してください。

  • 2 つのアプリが競合する更新を送信しないよう、確定値ごとに 1 つのアプリが所有(管理)するようにしてください。