{
  "schemaVersion": "1.0",
  "item": {
    "slug": "webchat-audio-notifications",
    "name": "Webchat Audio Notifications",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/brokemac79/webchat-audio-notifications",
    "canonicalUrl": "https://clawhub.ai/brokemac79/webchat-audio-notifications",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/webchat-audio-notifications",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=webchat-audio-notifications",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "BUILD_SUMMARY.md",
      "CLAWDHUB_PUBLISHING.md",
      "DISCORD_ANNOUNCEMENT.md",
      "README.md",
      "SKILL.md",
      "STATUS.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/webchat-audio-notifications"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/webchat-audio-notifications",
    "agentPageUrl": "https://openagent3.xyz/skills/webchat-audio-notifications/agent",
    "manifestUrl": "https://openagent3.xyz/skills/webchat-audio-notifications/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/webchat-audio-notifications/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "🔔 Webchat Audio Notifications",
        "body": "Browser audio notifications for Moltbot/Clawdbot webchat. Plays a notification sound when new messages arrive - but only when the tab is in the background."
      },
      {
        "title": "Features",
        "body": "🔔 Smart notifications - Only plays when tab is hidden\n🎚️ Volume control - Adjustable 0-100%\n🎵 5 intensity levels - Whisper (1) to impossible-to-miss (5)\n📁 Custom sounds - Upload your own (MP3, WAV, OGG, WebM)\n🔕 Easy toggle - Enable/disable with one click\n💾 Persistent settings - Preferences saved in localStorage\n📱 Mobile-friendly - Graceful degradation on mobile\n🚫 Autoplay handling - Respects browser policies\n⏱️ Cooldown - Prevents spam (3s between alerts)\n🐞 Debug mode - Optional logging"
      },
      {
        "title": "Test the POC",
        "body": "cd examples\npython3 -m http.server 8080\n# Open http://localhost:8080/test.html\n\nTest steps:\n\nSwitch to another tab\nClick \"Trigger Notification\"\nHear the sound! 🔊"
      },
      {
        "title": "Basic Integration",
        "body": "// Initialize\nconst notifier = new WebchatNotifications({\n  soundPath: './sounds',\n  soundName: 'level3',  // Medium intensity (default)\n  defaultVolume: 0.7\n});\n\nawait notifier.init();\n\n// Trigger on new message\nsocket.on('message', () => notifier.notify());\n\n// Use different levels for different events\nsocket.on('mention', () => {\n  notifier.setSound('level5');  // Loudest for mentions\n  notifier.notify();\n});"
      },
      {
        "title": "Constructor Options",
        "body": "new WebchatNotifications({\n  soundPath: './sounds',               // Path to sounds directory\n  soundName: 'level3',                 // level1 (whisper) to level5 (very loud)\n  defaultVolume: 0.7,                  // 0.0 to 1.0\n  cooldownMs: 3000,                    // Min time between alerts\n  enableButton: true,                  // Show enable prompt\n  debug: false                         // Console logging\n});\n\nIntensity Levels:\n\nlevel1 - Whisper (9.5KB) - Most subtle\nlevel2 - Soft (12KB) - Gentle\nlevel3 - Medium (13KB) - Default\nlevel4 - Loud (43KB) - Attention-getting\nlevel5 - Very Loud (63KB) - Impossible to miss"
      },
      {
        "title": "Methods",
        "body": "init() - Initialize (call after Howler loads)\nnotify(eventType?) - Trigger notification (only if tab hidden)\ntest() - Play sound immediately (ignore tab state)\nsetEnabled(bool) - Enable/disable notifications\nsetVolume(0-1) - Set volume\nsetSound(level) - Change intensity ('level1' through 'level5')\ngetSettings() - Get current settings"
      },
      {
        "title": "Browser Compatibility",
        "body": "BrowserVersionSupportChrome92+✅ FullFirefox90+✅ FullSafari15+✅ FullMobileLatest⚠️ Limited\n\nOverall: 92% of users (Web Audio API support)"
      },
      {
        "title": "File Structure",
        "body": "webchat-audio-notifications/\n├── client/\n│   ├── notification.js       # Main class (10KB)\n│   ├── howler.min.js         # Audio library (36KB)\n│   └── sounds/\n│       ├── level1.mp3        # Whisper (9.5KB)\n│       ├── level2.mp3        # Soft (12KB)\n│       ├── level3.mp3        # Medium (13KB, default)\n│       ├── level4.mp3        # Loud (43KB)\n│       └── level5.mp3        # Very Loud (63KB)\n├── examples/\n│   └── test.html            # Standalone test with all levels\n├── docs/\n│   └── integration.md       # Integration guide\n└── README.md                # Full documentation"
      },
      {
        "title": "Integration Guide",
        "body": "See docs/integration.md for:\n\nStep-by-step setup\nMoltbot-specific hooks\nReact/Vue examples\nCommon patterns (@mentions, DND, badges)\nTesting checklist"
      },
      {
        "title": "Simple",
        "body": "const notifier = new WebchatNotifications();\nawait notifier.init();\nnotifier.notify();"
      },
      {
        "title": "Advanced",
        "body": "const notifier = new WebchatNotifications({\n  soundPath: '/assets/sounds',\n  soundName: 'level2',  // Start with soft\n  defaultVolume: 0.8,\n  cooldownMs: 5000,\n  debug: true\n});\n\nawait notifier.init();\n\n// Regular messages = soft\nsocket.on('message', () => {\n  notifier.setSound('level2');\n  notifier.notify();\n});\n\n// Mentions = very loud\nsocket.on('mention', () => {\n  notifier.setSound('level5');\n  notifier.notify();\n});\n\n// DMs = loud\nsocket.on('dm', () => {\n  notifier.setSound('level4');\n  notifier.notify();\n});"
      },
      {
        "title": "With UI Controls",
        "body": "<input type=\"range\" min=\"0\" max=\"100\" \n       onchange=\"notifier.setVolume(this.value / 100)\">\n<button onclick=\"notifier.test()\">Test 🔊</button>"
      },
      {
        "title": "Troubleshooting",
        "body": "No sound?\n\nClick page first (autoplay restriction)\nCheck tab is actually hidden\nVerify volume > 0\nCheck console for errors\n\nSound plays when tab active?\n\nEnable debug mode\nCheck for \"Tab is visible, skipping\" message\nReport as bug if missing\n\nMobile not working?\n\niOS requires user gesture per play\nConsider visual fallback (flashing favicon)"
      },
      {
        "title": "Performance",
        "body": "Bundle: ~122KB total (minified)\nMemory: ~2MB during playback\nCPU: Negligible (browser-native)\nNetwork: One-time download, cached"
      },
      {
        "title": "Security",
        "body": "✅ No external requests\n✅ localStorage only\n✅ No tracking\n✅ No special permissions"
      },
      {
        "title": "License",
        "body": "MIT License"
      },
      {
        "title": "Credits",
        "body": "Audio library: Howler.js (MIT)\nSounds: Mixkit.co (Royalty-free)\nAuthor: @brokemac79\nFor: Moltbot/Clawdbot community"
      },
      {
        "title": "Contributing",
        "body": "Test with examples/test.html\nEnable debug mode\nReport issues with browser + console output"
      },
      {
        "title": "Roadmap",
        "body": "WebM format (smaller files)\n Per-event sounds (mention, DM, etc.)\n Visual fallback (favicon flash)\n System notifications API\n Settings UI component\n Do Not Disturb mode\n\nStatus: ✅ v1.1.0 Complete - 5 Intensity Levels\nTested: Chrome, Firefox, Safari\nReady for: Production use & ClawdHub publishing"
      },
      {
        "title": "Links",
        "body": "📖 README - Full documentation\n🔧 Integration Guide - Setup instructions\n🧪 Test Page - Try it yourself\n💬 Discord Thread - Community discussion"
      }
    ],
    "body": "🔔 Webchat Audio Notifications\n\nBrowser audio notifications for Moltbot/Clawdbot webchat. Plays a notification sound when new messages arrive - but only when the tab is in the background.\n\nFeatures\n🔔 Smart notifications - Only plays when tab is hidden\n🎚️ Volume control - Adjustable 0-100%\n🎵 5 intensity levels - Whisper (1) to impossible-to-miss (5)\n📁 Custom sounds - Upload your own (MP3, WAV, OGG, WebM)\n🔕 Easy toggle - Enable/disable with one click\n💾 Persistent settings - Preferences saved in localStorage\n📱 Mobile-friendly - Graceful degradation on mobile\n🚫 Autoplay handling - Respects browser policies\n⏱️ Cooldown - Prevents spam (3s between alerts)\n🐞 Debug mode - Optional logging\nQuick Start\nTest the POC\ncd examples\npython3 -m http.server 8080\n# Open http://localhost:8080/test.html\n\n\nTest steps:\n\nSwitch to another tab\nClick \"Trigger Notification\"\nHear the sound! 🔊\nBasic Integration\n// Initialize\nconst notifier = new WebchatNotifications({\n  soundPath: './sounds',\n  soundName: 'level3',  // Medium intensity (default)\n  defaultVolume: 0.7\n});\n\nawait notifier.init();\n\n// Trigger on new message\nsocket.on('message', () => notifier.notify());\n\n// Use different levels for different events\nsocket.on('mention', () => {\n  notifier.setSound('level5');  // Loudest for mentions\n  notifier.notify();\n});\n\nAPI\nConstructor Options\nnew WebchatNotifications({\n  soundPath: './sounds',               // Path to sounds directory\n  soundName: 'level3',                 // level1 (whisper) to level5 (very loud)\n  defaultVolume: 0.7,                  // 0.0 to 1.0\n  cooldownMs: 3000,                    // Min time between alerts\n  enableButton: true,                  // Show enable prompt\n  debug: false                         // Console logging\n});\n\n\nIntensity Levels:\n\nlevel1 - Whisper (9.5KB) - Most subtle\nlevel2 - Soft (12KB) - Gentle\nlevel3 - Medium (13KB) - Default\nlevel4 - Loud (43KB) - Attention-getting\nlevel5 - Very Loud (63KB) - Impossible to miss\nMethods\ninit() - Initialize (call after Howler loads)\nnotify(eventType?) - Trigger notification (only if tab hidden)\ntest() - Play sound immediately (ignore tab state)\nsetEnabled(bool) - Enable/disable notifications\nsetVolume(0-1) - Set volume\nsetSound(level) - Change intensity ('level1' through 'level5')\ngetSettings() - Get current settings\nBrowser Compatibility\nBrowser\tVersion\tSupport\nChrome\t92+\t✅ Full\nFirefox\t90+\t✅ Full\nSafari\t15+\t✅ Full\nMobile\tLatest\t⚠️ Limited\n\nOverall: 92% of users (Web Audio API support)\n\nFile Structure\nwebchat-audio-notifications/\n├── client/\n│   ├── notification.js       # Main class (10KB)\n│   ├── howler.min.js         # Audio library (36KB)\n│   └── sounds/\n│       ├── level1.mp3        # Whisper (9.5KB)\n│       ├── level2.mp3        # Soft (12KB)\n│       ├── level3.mp3        # Medium (13KB, default)\n│       ├── level4.mp3        # Loud (43KB)\n│       └── level5.mp3        # Very Loud (63KB)\n├── examples/\n│   └── test.html            # Standalone test with all levels\n├── docs/\n│   └── integration.md       # Integration guide\n└── README.md                # Full documentation\n\nIntegration Guide\n\nSee docs/integration.md for:\n\nStep-by-step setup\nMoltbot-specific hooks\nReact/Vue examples\nCommon patterns (@mentions, DND, badges)\nTesting checklist\nConfiguration Examples\nSimple\nconst notifier = new WebchatNotifications();\nawait notifier.init();\nnotifier.notify();\n\nAdvanced\nconst notifier = new WebchatNotifications({\n  soundPath: '/assets/sounds',\n  soundName: 'level2',  // Start with soft\n  defaultVolume: 0.8,\n  cooldownMs: 5000,\n  debug: true\n});\n\nawait notifier.init();\n\n// Regular messages = soft\nsocket.on('message', () => {\n  notifier.setSound('level2');\n  notifier.notify();\n});\n\n// Mentions = very loud\nsocket.on('mention', () => {\n  notifier.setSound('level5');\n  notifier.notify();\n});\n\n// DMs = loud\nsocket.on('dm', () => {\n  notifier.setSound('level4');\n  notifier.notify();\n});\n\nWith UI Controls\n<input type=\"range\" min=\"0\" max=\"100\" \n       onchange=\"notifier.setVolume(this.value / 100)\">\n<button onclick=\"notifier.test()\">Test 🔊</button>\n\nTroubleshooting\n\nNo sound?\n\nClick page first (autoplay restriction)\nCheck tab is actually hidden\nVerify volume > 0\nCheck console for errors\n\nSound plays when tab active?\n\nEnable debug mode\nCheck for \"Tab is visible, skipping\" message\nReport as bug if missing\n\nMobile not working?\n\niOS requires user gesture per play\nConsider visual fallback (flashing favicon)\nPerformance\nBundle: ~122KB total (minified)\nMemory: ~2MB during playback\nCPU: Negligible (browser-native)\nNetwork: One-time download, cached\nSecurity\n✅ No external requests\n✅ localStorage only\n✅ No tracking\n✅ No special permissions\nLicense\n\nMIT License\n\nCredits\nAudio library: Howler.js (MIT)\nSounds: Mixkit.co (Royalty-free)\nAuthor: @brokemac79\nFor: Moltbot/Clawdbot community\nContributing\nTest with examples/test.html\nEnable debug mode\nReport issues with browser + console output\nRoadmap\n WebM format (smaller files)\n Per-event sounds (mention, DM, etc.)\n Visual fallback (favicon flash)\n System notifications API\n Settings UI component\n Do Not Disturb mode\n\nStatus: ✅ v1.1.0 Complete - 5 Intensity Levels\nTested: Chrome, Firefox, Safari\nReady for: Production use & ClawdHub publishing\n\nLinks\n📖 README - Full documentation\n🔧 Integration Guide - Setup instructions\n🧪 Test Page - Try it yourself\n💬 Discord Thread - Community discussion"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/brokemac79/webchat-audio-notifications",
    "publisherUrl": "https://clawhub.ai/brokemac79/webchat-audio-notifications",
    "owner": "brokemac79",
    "version": "1.2.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/webchat-audio-notifications",
    "downloadUrl": "https://openagent3.xyz/downloads/webchat-audio-notifications",
    "agentUrl": "https://openagent3.xyz/skills/webchat-audio-notifications/agent",
    "manifestUrl": "https://openagent3.xyz/skills/webchat-audio-notifications/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/webchat-audio-notifications/agent.md"
  }
}