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 🙏

© 2025 – Pkg Stats / Ryan Hefner

chyron-svelte

v0.8.2

Published

A Svelte library for creating customizable news tickers (chyrons) with scrolling headlines, dynamic logos, and headline displays. Built with SvelteKit and TypeScript, `chyron-svelte` is perfect for broadcast-style interfaces, news websites, or application

Readme

Chyron Svelte

A Svelte library for creating customizable news tickers (chyrons) with scrolling headlines, dynamic logos, and headline displays. Built with SvelteKit and TypeScript, chyron-svelte is perfect for broadcast-style interfaces, news websites, or applications needing a dynamic ticker.

Current Version: 0.2.5

Features

  • Scrolling Chyron: Smoothly scrolls headlines with customizable separators (e.g., vertical ellipsis via Iconify).
  • Dynamic Headline: Cycles through headlines with fade transitions.
  • Logo with Date/Time: Displays a logo alongside rotating date, weekday, or time.
  • Theme-able Styling: Customize colors, fonts, and sizes using CSS variables (e.g., --color-chyron-surface, --font-family-headline).
  • TypeScript Support: Fully typed for robust development.
  • Responsive Design: Grid-based layout adapts to various screen sizes.
  • TODO ~~Accessible: Includes ARIA attributes for screen reader compatibility.~~

Installation

Install the library via npm:

npm install chyron-svelte

Ensure the Iconify library is included for icon support (used in Chyron.svelte):

HTML Head

<script src="https://code.iconify.design/3/3.1.0/iconify.min.js"></script>

Alternatively, install the Svelte Iconify package for better integration:

npm install @iconify/svelte

+layout.svelte

<script lang='ts'>
  import 'iconify-icon';
  ...
</script>

Usage

Import and use the ChyronWrapper component to combine all features, or use individual components (Chyron, ChyronHeadline, ChyronLogo) for specific needs.

Basic Example

<script>
  import { ChyronWrapper } from 'chyron-svelte';

  const headlines = [
    'Breaking News: Major Event Unfolds',
    'Sports Update: Team Wins Championship',
    'Weather Alert: Severe Storms Expected'
  ];
</script>

<ChyronWrapper
  headline={true}
  headlines={headlines}
  logo={true}
  logoLeft={true}
  chyron={true}
  logoUrl="https://placehold.co"
  logoAlt="News Logo"
  logoSize={150}
/>

This renders a chyron with: A scrolling ticker (Chyron) showing headlines separated by vertical ellipsis icons.

A cycling headline section (ChyronHeadline).

A logo with rotating date/time (ChyronLogo).