{"id":49451153,"url":"https://github.com/maru0014/dify-monkey","last_synced_at":"2026-04-30T02:40:12.078Z","repository":{"id":334029807,"uuid":"1139737316","full_name":"maru0014/dify-monkey","owner":"maru0014","description":"Dify APIと連携可能なユーザースクリプトマネージャー Chrome拡張機能。任意のWebページでカスタムスクリプトを実行し、AIワークフローを呼び出せます。","archived":false,"fork":false,"pushed_at":"2026-01-30T23:18:41.000Z","size":432,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-31T06:26:37.426Z","etag":null,"topics":["ai","automation","chrome-extension","dify","userscript","workflow"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maru0014.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-22T10:51:59.000Z","updated_at":"2026-01-30T23:18:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/maru0014/dify-monkey","commit_stats":null,"previous_names":["maru0014/dify-monkey"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/maru0014/dify-monkey","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maru0014%2Fdify-monkey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maru0014%2Fdify-monkey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maru0014%2Fdify-monkey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maru0014%2Fdify-monkey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maru0014","download_url":"https://codeload.github.com/maru0014/dify-monkey/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maru0014%2Fdify-monkey/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32452746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","automation","chrome-extension","dify","userscript","workflow"],"created_at":"2026-04-30T02:40:10.517Z","updated_at":"2026-04-30T02:40:12.073Z","avatar_url":"https://github.com/maru0014.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dify Monkey 🐵\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Chrome Extension](https://img.shields.io/badge/Chrome-Extension-green.svg)](https://developer.chrome.com/docs/extensions/)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.7-blue.svg)](https://www.typescriptlang.org/)\n\n**Difyと連携可能なユーザースクリプトマネージャー** Chrome拡張機能\n\n任意のWebページ上で独自のJavaScript（ユーザースクリプト）を実行でき、スクリプト内からDifyのワークフローを直接呼び出すことができます。また、サイドパネルでDifyのエージェントとチャットを行う機能も提供します。\n\n---\n\n## ✨ 主な機能\n\n- **ユーザースクリプト管理**: 任意のWebページでカスタムJavaScriptを実行\n- **Difyワークフロー連携**: スクリプト内から直接Dify APIを呼び出し\n- **サイドパネルチャット**: Difyエージェントとのリアルタイムチャット（ストリーミング対応）\n- **Monaco Editor**: VS Code同等の高機能コードエディタ内蔵\n- **セキュアなAPIキー管理**: AES-256-GCM暗号化によるAPIキー保護\n\n---\n\n## 🔒 セキュリティ\n\n本拡張機能はセキュリティを重視して設計されています：\n\n- **AES-256-GCM暗号化**: APIキーは暗号化して保存\n- **PBKDF2鍵導出**: 100,000回イテレーションによる強力な鍵導出\n- **3つのセキュリティモード**: デバイスキー / マスターパスワード / 平文から選択可能\n- **Manifest V3**: 最新のChrome拡張機能セキュリティ基準に準拠\n\n詳細は [SECURITY_AUDIT.md](SECURITY_AUDIT.md) を参照してください。\n\n---\n\n## 📦 インストール方法\n\n### 開発者モードでのインストール\n\n1. このリポジトリをクローン\n   ```bash\n   git clone https://github.com/maru0014/dify-monkey.git\n   cd dify-monkey\n   ```\n\n2. 依存関係をインストール\n   ```bash\n   npm install\n   ```\n\n3. ビルド\n   ```bash\n   npm run build\n   ```\n\n4. Chromeで拡張機能をロード\n   - `chrome://extensions/` を開く\n   - 「デベロッパーモード」を有効化\n   - 「パッケージ化されていない拡張機能を読み込む」をクリック\n   - `dist` フォルダを選択\n\n---\n\n## 🚀 使い方\n\n### 初期設定\n\n1. 拡張機能アイコンをクリックしてサイドパネルを開く\n2. 設定画面でDify APIのエンドポイントとAPIキーを設定\n3. セキュリティモードを選択（デバイスキーまたはマスターパスワード推奨）\n\n### ユーザースクリプトの作成\n\n1. オプションページを開く（拡張機能アイコンを右クリック → オプション）\n2. 「新規スクリプト」をクリック\n3. スクリプト名、対象URL（ワイルドカード対応）を設定\n4. Monaco Editorでスクリプトを記述\n5. 保存\n\n### スクリプト内でのDify API呼び出し\n\n```javascript\n// ワークフロー実行\nconst result = await dify.workflow.run({\n  inputs: { text: 'Hello, Dify!' }\n});\nconsole.log(result);\n\n// ページコンテンツの取得\nconst page = await dify.page.readContent();\nconsole.log(page.title, page.content);\n\n// トースト通知\ndify.ui.toast('処理が完了しました', 'success');\n\n// ログ出力（サイドパネルに表示）\ndify.log('Workflow result', result);\n```\n\n\u003e **Note**: チャット機能（`dify.chat.send`）はUser Script APIでは未実装です。チャットはサイドパネルのChat UIをご利用ください。\n\n---\n\n## 🛠️ 開発\n\n### 開発環境の起動\n\n```bash\nnpm run dev\n```\n\n### ビルド\n\n```bash\nnpm run build\n```\n\n### テスト\n\n```bash\nnpm test\n```\n\n### コントリビューション\n\n#### コミット規約（Conventional Commits）\nコミットメッセージは以下の形式に従ってください：\n\n```bash\nfeat: 新機能を追加      # → マイナーバージョンアップ\nfix: バグを修正         # → パッチバージョンアップ\nfeat!: 破壊的変更       # → メジャーバージョンアップ\ndocs: ドキュメント更新\nchore: その他の変更\n```\n\n#### リリースフロー\nPRを`main`ブランチにマージすると、semantic-releaseにより自動的にリリースが作成されます。\n\n1. フィーチャーブランチで開発\n2. PRを作成・レビュー\n3. マージ → 自動リリース（バージョン決定、CHANGELOG更新、タグ作成）\n\n### プロジェクト構成\n\n```\nsrc/\n├── background/      # Service Worker\n├── content/         # Content Script（通信リレー）\n├── options/         # オプションページ（設定・エディタ）\n├── sidepanel/       # サイドパネル（チャットUI）\n├── prompt/          # プロンプトUI\n├── shared/          # 共有モジュール\n│   ├── api/         # Dify APIクライアント\n│   ├── components/  # 共有UIコンポーネント\n│   ├── hooks/       # React Hooks\n│   ├── lib/         # ユーティリティ\n│   └── types/       # 型定義\n└── types/           # グローバル型定義\n```\n\n---\n\n## 📋 技術スタック\n\n| カテゴリ | 技術 |\n|---------|------|\n| ビルドツール | Vite + CRXJS |\n| フレームワーク | React 19 + TypeScript |\n| スタイリング | Tailwind CSS |\n| UIコンポーネント | shadcn/ui |\n| コードエディタ | Monaco Editor |\n| テスト | Vitest |\n\n---\n\n## 📄 ライセンス\n\n[MIT License](LICENSE)\n\n---\n\n## 👤 作者\n\n**marumo**\n- GitHub: [@maru0014](https://github.com/maru0014)\n- Email: marumo@codelife.cafe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaru0014%2Fdify-monkey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaru0014%2Fdify-monkey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaru0014%2Fdify-monkey/lists"}