# DeltaCrab integration guide (widget v1.0.0) Widget script: https://app.deltacrab.com/widget.js Replace dc_pk_YOUR_SITE_KEY with the public site key from DeltaCrab → Install. ## Overview The DeltaCrab widget is a script that creates an iframe on your site. The iframe runs on the DeltaCrab domain; your site never sees tokens or messages. The widget only loads on origins allowed on the Install page. Start in visitor mode; add verified identity when your app has a server. 1. Copy the public site key from the Install page. 2. Add your app's origin (for example https://app.example.com) to Allowed origins. 3. Paste the snippet into your global layout. 4. Open your site, send a message, and answer it from the inbox. ## HTML / any site Paste before on every page, or once in your main layout. HTML: ```html ``` ## Next.js (App Router) Add once in app/layout.tsx. Works with Server Components; the script loads after hydration. app/layout.tsx: ```ts // app/layout.tsx — add once, inside import Script from "next/script"; export default function RootLayout({ children }: { children: React.ReactNode }) { return ( {children}