Docs›Embeds
Embeddable Search, Viewer & Chat
DocSlurp ships a supported embed SDK with React components and custom elements so customer apps can mount workspace search, document viewing, and grounded chat without depending on the dashboard.
Open a workspace to run the live examples.
SDK
React Usage
import { SearchEmbed, ChatEmbed, ViewerEmbed } from '@docslurp/embed-sdk'
// Drop into any React component
<SearchEmbed apiUrl={process.env.DOCSLURP_API_URL} workspaceId={WORKSPACE_ID} />
<ChatEmbed apiUrl={process.env.DOCSLURP_API_URL} workspaceId={WORKSPACE_ID} />
<ViewerEmbed apiUrl={process.env.DOCSLURP_API_URL} documentId={DOCUMENT_ID} />Custom Elements
Web Components
import { defineDocSlurpElements } from '@docslurp/embed-sdk'
defineDocSlurpElements()
<!-- use anywhere in HTML -->
<docslurp-search api-url="https://api.docslurp.example" workspace-id="..." />
<docslurp-chat api-url="https://api.docslurp.example" workspace-id="..." />
<docslurp-viewer api-url="https://api.docslurp.example" document-id="..." />