npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

crosstalk-comments-livechat-svelte

v0.1.0

Published

Add Comments, Live Chat, and Video Player Embeds to your Svelte project with CrossTalk Comments and Live Chat!

Readme

Installation

npm i crosstalk-comments-livechat-svelte

Usage

The following components are available for Svelte:

You'll need a CrossTalk account (yes, we have a forever-free plan, no credit card required), head over to CrossTalk Dashboard to access the Web Property information.

Sample Code on GitHub

You can access the working sample code using Svelte and TypeScript on here -> GitHub

Comments

Use the <CrossTalkComments> component to add comments to your webpage. Read more at CrossTalk Comments Documentation. PS: Ensure either pageID or URL is provided.

Props for <CrossTalkComments>

| Prop Name | Prop Info | Required or not | Type | |-------------|----------------------------------------|-----------------|-----------------------| | wp | Web Property name | ✅ Required | string | | url | Page URL | 🟡 Optional | string | | pageID | Unique PageID | 🟡 Optional | string | | theme | Light or Dark theme | 🟡 Optional | string | | reactions | Whether to show Reaction Images or not | 🟡 Optional | boolean | | style | CSS Styles (margin, width etc) | 🟡 Optional | string | | className | CSS Classes (margin, width etc) | 🟡 Optional | string |

<script lang="ts">
import { CrossTalkComments } from "crosstalk-comments-livechat-svelte";
</script>

<CrossTalkComments wp="YOUR_WEB_PROPERTY_NAME" pageID="UNIQUE_PAGE_ID" url="URL" style="width: 80%" />

Video Player with Live Chat

Use the <CrossTalkVideoPlayer> component to add live chat with video to your webpage. Use either pageID or URL is provided. If neither are given, an automated pageID is created depending on the video source provided.

Props for <CrossTalkVideoPlayer>

| Prop Name | Prop Info | Required or not | Type | |-------------|----------------------------------------------------------|-----------------|-----------------------| | wp | Web Property name | ✅ Required | string | | url | Page URL | 🟡 Optional | string | | pageID | Unique PageID | 🟡 Optional | string | | theme | Light or Dark theme | 🟡 Optional | string | | reactions | Whether to show Reaction Images or not | 🟡 Optional | boolean | | src | Video link | 🟡 Optional | string | | srcType | MIME Type of the video. Example: application/x-mpegURL | 🟡 Optional | string | | style | CSS Styles (margin, width etc) | 🟡 Optional | string | | className | CSS Classes (margin, width etc) | 🟡 Optional | string |

CrossTalk Video Player also supports embedding external video platforms, below are the currently supported platforms:

| Prop Name | Video Platform | Video ID information | |-----------|-------------------------------------|------------------------------------------| | ytvid | YouTube | Embed ID of the YouTube video | | vimeoid | Vimeo | Vimeo video ID | | vkvid | VK Video | VK video ID | | vklive | VK Video Live | @handle of the user who's currently Live | | rtvid | RuTube Video | RuTube video ID |

<script lang="ts">
    import { CrossTalkVideoPlayer } from "crosstalk-comments-livechat-svelte";
</script>

<CrossTalkVideoPlayer pageID="UNIQUE_PAGE_ID" wp="YOUR_WEB_PROPERTY_NAME" theme="dark" ytvid="miVz9nsMYEw" style="width: 100%" />

Until you make an account on CrossTalk, you can use the Web Property crosstalkDemo to test features using the samples below. CrossTalk has a forever-free plan so if you love what you see, come join us!

Bare-Minimum Comments Sample Code

<script lang="ts">
    import { CrossTalkComments } from 'crosstalk-comments-livechat-svelte';
</script>

<!--Your other content before comments-->
<CrossTalkComments wp="crosstalkDemo" pageID="home" theme="dark" style="min-width: 800px" />
<!--Your other content after comments-->

Bare-Minimum Video Player with Live Chat Sample Code

<script lang="ts">
    import { CrossTalkVideoPlayer } from 'crosstalk-comments-livechat-svelte';
</script>

<!--Your other content before video player-->
<CrossTalkVideoPlayer pageID="livetv" wp="crosstalkDemo" theme="dark" ytvid="miVz9nsMYEw" style="width: 1000px" className="mx-auto" />
<!--Your other content after video player-->