Keep the backend. Replace the surface.
Change the script URL. Keep Context7. Add presets, custom triggers, centered dialogs, variables, parts, and events.
Context7 answers, your interface
Add docs chat to your product, docs, or dashboard. Use the Context7 backend, but control the trigger, position, theme, and product feel.
Who it is for
Some teams already use the official script and need styling. Others just want users to find answers without opening support. Both start here.
Change the script URL. Keep Context7. Add presets, custom triggers, centered dialogs, variables, parts, and events.
Context7 reads your docs. This widget gives visitors a branded place to ask questions on your site.
Start with the script. Developers can move to Vue or TypeScript later without changing the visitor experience.
Documentation as a product surface
Context7 provides the grounded documentation answers. This widget provides the production layer around them: placement, presets, custom triggers, analytics events, and a styling contract that design systems can trust.
context7-widget {
--c7-accent: #7cffb2;
--c7-panel-radius: 8px;
}
context7-widget::part(send-button) {
text-transform: uppercase;
}Choose an entry point
Start with a script tag. Move to TypeScript helpers or Vue when the widget becomes part of your application code.
For static docs, Docusaurus, Astro, marketing pages, and quick product installs. Paste one tag and keep moving.
Open hosted scriptFor apps that need typed options, runtime control, script generation, and shared types for framework bindings.
View core packageFor Vue apps that want a component, composable, typed events, managed trigger button, and scoped styles.
View Vue package<script
async
src="https://context7.desource-labs.org/widget.js"
data-library="/owner/repo"
data-color="#10b981"
></script>pnpm add @desource/context7-widget
import { mountContext7Widget } from "@desource/context7-widget";
mountContext7Widget({
library: "/owner/repo",
theme: "auto",
color: "#10b981"
});pnpm add @desource/context7-widget-vue
<Context7Widget
library="/owner/repo"
color="#10b981"
@question="trackQuestion"
/>Where it fits
Put a small trigger in the product shell and answer setup questions before users leave the screen.
Use a centered dialog for deliberate help moments: onboarding, empty states, and pricing or API pages.
Anchor the widget to a nav item, command palette action, header button, or existing support menu.
Use script, TypeScript, or Vue today. React, Nuxt, Svelte, and Angular packages are next on the same core.