<crow-comments> is a standard web component. Astro renders it as plain HTML, and the script turns it into a comment section in the browser.
Sign in to Crowment, create a comment widget for your site's domain and copy its app key from Install & Embed.
Add the script to the <head> of your base layout. is:inline tells Astro to leave the external script as it is.
<head>
<!-- your existing head tags -->
<script is:inline defer src="https://embeds.crowment.com/comments.js"></script>
</head>
Put the element where the comments should appear, usually after the post content:
<article>
<slot />
</article>
<crow-comments app-key="YOUR_APP_KEY"></crow-comments>
Run npm run dev and open a post. Each post gets its own thread, identified by its URL path.
The widget follows client-side navigation by itself, so it keeps working with Astro's view transitions.
page-id={post.id} and see Which thread a page shows.