Skip to content

Developers

Developer guide to the Yedric widget: embed it, secure sessions with HMAC, use the JavaScript API, and connect webhooks, custom apps and MCP.

The widget is a single script tag and a web component, no build step, no dependencies. Add it to your page and it just works. From there you can theme it, wire up JavaScript events, or lock sessions to individual users with HMAC signing.

  • Embedding the Widget: quick start, attribute reference, common mistakes
  • Secure Mode: HMAC signing to scope sessions per user; Node / PHP / SubtleCrypto examples
  • Advanced Configuration: theming, layout, iframe/Shopify, client-side tool handling, programmatic open, debug
  • JavaScript API: window.Yedric methods, events, TypeScript types
  • Client Events: report things that happen in your own UI to the assistant, and let it react
  • MCP Server: manage assistants and read conversation data from Claude Desktop, Claude Code, and other MCP clients
  • Webhooks: subscribe to events, verify the signature, and handle retries
  • Custom Apps: render your own panel beside a conversation

In this section