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

@glyphon/svelte

v1.2.0

Published

Glyphon is a Svelte component that applies an animation effect to the provided text. It replaces each character in the text with a randomly selected character from a given alphabet, creating an animated glyph effect. The animation can be triggered either

Readme

Glyphon

Glyphon is a Svelte component that applies an animation effect to the provided text. It replaces each character in the text with a randomly selected character from a given alphabet, creating an animated glyph effect. The animation can be triggered either on hover or on mount.

Check a live demo here.

Install

npm install @glyphon/svelte

yarn add @glyphon/svelte

pnpm add @glyphon/svelte

Usage

import { Glyphon } from '@glyphon/svelte';

<Glyphon text="Your text here" />;

Props

Glyphon accepts the following props:

| Prop | Type | Default | Description | | -------- | ----------------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | | text | string (required) | N/A | The text that will be animated by the glyph effect. | | as | string (optional) | 'span' | The HTML tag to be used for the container element. | | options | object (optional) | See below for default options | An object that allows you to customize the animation behavior. | | alphabet | string (optional) | "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | (Deprecated) A string containing the characters to be used for the animation. Use options.glyphs instead. | | mode | string (optional) | 'onhover' | The mode in which the animation will be triggered. Possible values: 'onhover' (animation on hover) or 'onmount' (animation on component mount). | | ...rest | unknown | N/A | Any additional props valid for the chosen HTML tag (as) will be applied to the container element. |

Default Options

| Option | Type | Default | Description | | ------------------ | ----------------- | ---------------------------- | -------------------------------------------------------------------------------------- | | iterationsPerGlyph | number (optional) | 3 | The number of iterations each glyph will be shown before moving to the next character. | | speed | number (optional) | 30 | The speed of the animation, represented in milliseconds. | | glyphs | string (optional) | "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | A string containing the characters from which the random glyphs will be selected. |

Examples

<script lang="ts">
  import { Glyphon } from './Glyphon.svelte';
</script>

<main>
  <h1>Glyphon Component Example</h1>

  <!-- Basic Usage -->
  <Glyphon text="Hello, Svelte!" />

  <!-- Customizing the animation behavior -->
  <Glyphon text="Custom Speed" options={{ speed: 50 }} />

  <!-- Using a different alphabet for the animation -->
  <Glyphon text="Custom Alphabet" alphabet="1234567890" />

  <!-- Starting the animation automatically on mount -->
  <Glyphon text="On Mount Effect" mode="onmount" />
</main>

Check more live examples in the Stroybook documentation.