Home/ Templates/ Astro chat widget

Astro Chat Widget — Zero-JS-Overhead Live Chat

One line in your BaseLayout. No Islands architecture conflicts, no client:load directive needed.

◈ WHAT IS KNOCKET

Knocket is a free Astro chat widget widget — no plugin, no app, just one line of JavaScript. It's free forever with no ads, and includes a unified inbox for Live Chat, Telegram, and Email. Every visitor message pings your Telegram — quote-reply from your phone and it lands back on the visitor's page.

Start Free 100% free ✿
1 line of
<script> ✿
🔒 astro-site.astro.build
BaseLayout.astro
index.astro
astro.config.mjs
package.json
1--- BaseLayout.astro ---2const title = Astro.props34<html>5 <head>6 <title>title</title>7 <script src="knocket.io/w.js">8 </script>9 </head>
$ npm run dev
$ 🚀 Astro v5.1 · localhost:4321

Why people search for a astro chat widget

Best for: Astro developers, documentation sites, static-site builders, bloggers.

Knocket vs Intercom vs Chatwoot

Feature Knocket Intercom Chatwoot
Free forever
No ads on your page
Unified inbox (Live Chat, Telegram, and Email)
Telegram push notifications
Shareable contact page
One-line install / no code
Knocket is 100% free with no ads, and no watermarks. Intercom charges per seat or gates key features behind paid plans, while Chatwoot is limited to basic functionality without a unified multi-channel inbox. Knocket includes live chat, a shareable contact page, and a unified inbox for Live Chat, Telegram, and Email — all free.

Frequently asked questions

What is a free astro chat widget?

Knocket is a free astro chat widget — a lightweight contact layer for indie developers, small teams, and anyone who needs to add a chat button or contact page without enterprise complexity. Visitors message you in real time; you reply from the Knocket inbox or directly from Telegram.

How do I add a chat widget to my Astro site?

Open your BaseLayout.astro and add the Knocket script tag before </body>. Use a plain <script async> tag — no client:load directive needed. All pages using this layout get the widget automatically, including Markdown content pages.

Is Knocket really free, or are there hidden fees?

Yes. Knocket is 100% free forever — no hidden fees, no ads on your site, and no watermarks. It's a strong alternative to Intercom (which charges per seat) and Chatwoot (which gates key features behind paid plans). You get live chat, a shareable contact page, and a unified inbox for Live Chat, Telegram, and Email — all free.

Can I customize the appearance to match my brand?

Yes. From the Knocket console you can customize the theme color, welcome message, language, offline message, social media links, and meeting booking link. The widget adapts to both desktop and mobile automatically. For Contact Page you can also set the card background, text color, dark/light mode, border style, avatar, and bio.

How do I get notified when visitors send messages?

Knocket sends instant Telegram push notifications and email notifications whenever a visitor sends a message. The full message content appears in the Telegram notification — just quote-reply in Telegram and your response is delivered back to the visitor in real time. No dashboard to open, no tab to switch.

Related templates

Get your Astro chat widget.

60 seconds. No card. Free forever.

Start Free