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

animate-typing-cm6

v1.0.1

Published

A CodeMirror 6 extension that adds typing animations

Readme

AnimateTyping-cm6 🎯

npm version npm downloads license GitHub stars

demo_1

demo_2

A CodeMirror 6 extension that adds beautiful typing animations to enhance the coding experience.

Features

  • 🎨 Multiple Animation Types: Choose from fadeIn, glow, shootingStar, rollingThunder, frenchFries, and bubble effects
  • Lightweight: Minimal performance impact
  • 🔧 Configurable: Customize animation duration and style
  • 🎯 Smart Detection: Only animates newly typed characters
  • 📱 Responsive: Works on all screen sizes

Installation

npm install animate-typing-cm6

Links

📦 NPM Package

  • Package Name: animate-typing-cm6
  • NPM URL: https://www.npmjs.com/package/animate-typing-cm6
  • Installation Command: npm install animate-typing-cm6

🔗 GitHub Repository

  • GitHub URL: https://github.com/gitdog01/AnimateTyping-cm6
  • Issues: https://github.com/gitdog01/AnimateTyping-cm6/issues
  • Pull Requests: https://github.com/gitdog01/AnimateTyping-cm6/pulls

Quick Start

import { EditorView, basicSetup } from 'codemirror';
import { animateTyping } from 'animate-typing-cm6';

const editor = new EditorView({
  doc: 'Start typing here!',
  extensions: [
    basicSetup,
    animateTyping({
      animationType: 'fadeIn',
      duration: 500
    })
  ],
  parent: document.getElementById('editor')
});

Configuration Options

interface AnimateTypingOptions {
  /** Duration of the typing animation in milliseconds (default: 500) */
  duration?: number;
  
  /** Type of animation to use (default: 'fadeIn') */
  animationType?: 'fadeIn' | 'glow' | 'shootingStar' | 'rollingThunder' | 'frenchFries' | 'bubble';
  
  /** CSS class prefix for animation styles (default: 'animate-typing') */
  classPrefix?: string;
  
  /** Whether to animate only newly typed characters (default: true) */
  onlyNew?: boolean;
}

Animation Types

fadeIn

Smoothly fades in newly typed characters.

glow

Characters appear with a glowing effect.

shootingStar

Characters appear with colorful particle effects like shooting star ice cream.

rollingThunder

Characters appear with fast rotation animation.

frenchFries

Characters appear with golden rectangular particles rotating and flying out like french fries.

bubble

Characters appear with soap bubble effects floating upward with gentle swaying motion.

Examples

Basic Usage

import { animateTyping } from 'animate-typing-cm6';

// Simple fade animation
const extensions = [
  basicSetup,
  animateTyping()
];

Custom Configuration

// Bubble animation with custom duration
const extensions = [
  basicSetup,
  animateTyping({
    animationType: 'bubble',
    duration: 800
  })
];

Multiple Editors

// Different animations for different editors
const codeEditor = new EditorView({
  extensions: [
    basicSetup,
    animateTyping({ animationType: 'bubble' })
  ],
  parent: document.getElementById('code-editor')
});

const notesEditor = new EditorView({
  extensions: [
    basicSetup,
    animateTyping({ animationType: 'frenchFries', duration: 300 })
  ],
  parent: document.getElementById('notes-editor')
});

Demo

Running the Example

To run the demo from the example directory:

# Clone the project
git clone https://github.com/gitdog01/AnimateTyping-cm6.git
cd AnimateTyping-cm6

# Install main package dependencies and build
npm install
npm run build

# Navigate to example directory and install dependencies
cd example
npm install

# Start development server
npm run dev

Or run everything at once from the root directory:

npm run example

Open your browser and navigate to http://localhost:5173 to see the plugin in action!

Development

# Clone the repository
git clone https://github.com/gitdog01/AnimateTyping-cm6.git
cd AnimateTyping-cm6

# Install dependencies
npm install

# Build the project
npm run build

# Watch for changes during development
npm run dev

API Reference

animateTyping(options?: AnimateTypingOptions): Extension

Creates a CodeMirror 6 extension that adds typing animations.

Parameters:

  • options - Configuration object for the animation behavior

Returns:

  • CodeMirror 6 Extension that can be added to the editor

Browser Support

This plugin supports all modern browsers that support CodeMirror 6:

  • Chrome 63+
  • Firefox 67+
  • Safari 13+
  • Edge 79+

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see the LICENSE file for details.