Chat widget preview — renders the same component that ships in the Squarespace embed bundle. Requires OPENAI_API_KEY in .env.local.

Embedding on Squarespace

Once deployed, drop this into a Squarespace Code Block (or site-wide Code Injection) wherever the enhanced text field should appear:

<div data-frontline-chat></div>
<script
  src="https://chat.thefrontline.dev/widget.js"
  data-api-url="https://chat.thefrontline.dev/api/chat"
  async
></script>

See widget/README.md for build and hosting details.