FastComments.com

Add Comments to Your Svelte App

This is the official Svelte Library for FastComments.

Embed live commenting, chat, and review widgets in your Svelte app.

Repository

View on GitHub

Quick Start Internal Link

<script lang="ts">
  import CommentWidget from "fastcomments-svelte/CommentWidget.svelte";
  import type { FastCommentsCommentWidgetConfig } from "fastcomments-typescript";

  let config: FastCommentsCommentWidgetConfig = {
    tenantId: "demo",
    urlId: "my-page"
  };
</script>

<CommentWidget config={config} />

Widgets Internal Link

This library currently contains the following widgets:

It also features examples for:

Developing Internal Link

Once you've installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Everything inside src/lib is part of the library, everything inside src/routes is the showcase.

Building Internal Link

To build:

npm run package

Maintenance Status Internal Link

These components are wrappers around our core VanillaJS components. We can automatically update these components (fix bugs, add features) without publishing this library, so while it may not be published for a while that does not mean FastComments is not under active development! Feel free to check our blog for updates. Breaking API changes or features will never be shipped to the underlying core library without a version bump in this library.

Need Help?

If you encounter any issues or have questions about the Svelte Library, please:

Contributing

Contributions are welcome! Please visit the GitHub repository for contribution guidelines.