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

@vladimish/flowtoken-svelte

v1.1.0

Published

Svelte 5 port of FlowToken — animate streaming LLM text with CSS animations

Readme

@vladimish/flowtoken-svelte

Svelte 5 port of FlowToken — animate streaming LLM text with CSS animations.

Install

npm install @vladimish/flowtoken-svelte

Quick Start

<script>
  import { AnimatedMarkdown } from '@vladimish/flowtoken-svelte';
  import '@vladimish/flowtoken-svelte/styles.css';

  let text = $state('');

  // Append tokens as they stream in
  // text += newToken;
</script>

<AnimatedMarkdown content={text} animation="fadeIn" />

Components

AnimatedMarkdown

Main component. Renders markdown with per-token animations.

<AnimatedMarkdown
  content={text}
  animation="fadeIn"
  sep="word"
  animationDuration="0.6s"
  animationTimingFunction="ease-in-out"
/>

| Prop | Default | Description | |------|---------|-------------| | content | required | Markdown string to render | | animation | "fadeIn" | Animation name (see list below) | | sep | "diff" | Token split mode: "word", "char", or "diff" | | animationDuration | "1s" | CSS animation duration | | animationTimingFunction | "ease-in-out" | CSS timing function | | imgHeight | "20rem" | Default image height |

AnimatedText

Streaming text with staggered token animations. Useful outside of markdown contexts.

<AnimatedText incomingText={text} animation="blurIn" sep="token" />

SplitText

Low-level tokenizer. Splits text by word, character, or diff and animates each token.

<SplitText input={text} sep="word" animation="fadeIn" animationDuration="0.5s" animationTimingFunction="ease-in-out" />

AnimatedImage

Image that animates on load.

<AnimatedImage src="..." alt="..." animation="fadeIn" animationDuration="1s" animationTimingFunction="ease-in-out" />

DefaultCode / CodeRenderer

Code blocks with syntax highlighting (highlight.js) and per-word animation. Used internally by AnimatedMarkdown but can be used standalone.

<DefaultCode text={code} lang="python" animation="fadeIn" animationDuration="0.6s" animationTimingFunction="ease-in-out" />

Animations

14 built-in animations:

| Name | Effect | |------|--------| | fadeIn | Opacity 0 to 1 | | blurIn | Blur + fade in | | dropIn | Drop from above | | slideUp | Slide up + fade | | slideInFromLeft | Slide from left | | fadeAndScale | Scale up + fade | | bounceIn | Bounce effect | | elastic | Elastic scale | | rotateIn | Rotate in | | wave | Wave up and down | | colorTransition | Red to black | | highlight | Yellow highlight fade | | blurAndSharpen | Blur to sharp | | typewriter | Width expand |

Token Modes

  • "diff" (default for AnimatedMarkdown) — Only new tokens animate. Already-rendered tokens stay static. Best for streaming.
  • "word" — Split by whitespace. Every token animates on each render.
  • "char" — Split by character.

Demo

git clone https://github.com/vladimish/flowtoken-svelte
cd flowtoken-svelte
npm install
npm run dev

Routes:

  • / — Landing page
  • /text — All 14 animations side by side
  • /markdown — Full markdown with controls
  • /interactive — Configurable streaming demo

License

ISC