Installation
Hatchback installs as a small script tag. Use your project's real project key in the embed, then start a session before sending the page to reviewers. Supported setups include HTML, React / Vite, Vue / Vite, Next.js, Astro, Nuxt, Remix, and no-code builders.
Add the plugin
Copy your project key from the project's Settings or Install tab, then choose the install snippet that matches your stack.
Paste the snippet into your main HTML file (usually index.html), just before the closing </body> tag.
<!-- Hatchback -->
<script
src="https://hatchback.app/plugin/hatchback-plugin.js"
data-project="YOUR_PROJECT_KEY"
></script>Using something else? Any page that can load a script tag works. Questions: hi@hatchback.app
The public docs use YOUR_PROJECT_KEY as a placeholder. Inside the app, the same snippet uses your real project key automatically.
CSP and allowlists
If your site uses a content security policy or outbound allowlist, make room for Hatchback's Cloudflare-hosted runtime:
https://hatchback.appfor the plugin script.https://api.hatchback.appfor plugin and app API requests.https://cdn.hatchback.appfor screenshots, avatars, and other public assets.
Before you share the page
- Deploy the page with the Hatchback snippet installed.
- Start an active session using the Sessions workflow so incoming comments have somewhere to land.
- Turn on anonymous comments if reviewers should not need invites or logins.
- Leave a test comment yourself to confirm the widget, screenshots, and review flow work end to end.