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

@bishal-shrestha/react-typewriter

v1.0.0

Published

A flexible and scalable React component for typing effect with multi-line support

Readme

React Typewriter

A customisable and lightweight React component that simulates a typewriter effect for a list of text lines. Supports typing, line-by-line animation, erasing, looping, and cursor styling.

View Package in npm

View Website

Features

  • Typewriter animation per character
  • Multi-line support
  • Optional erase and loop functionality
  • Customizable speeds and delays
  • Optional cursor and cursor customization
  • Callbacks for line typed and loop completion
  • Pause and resume control

Installation

npm install @bishal-shrestha/react-typewriter
# or
yarn add @bishal-shrestha/react-typewriter

Usage

import ReactTypewriter from '@bishal-shrestha/react-typewriter';

function App() {
  return (
    <ReactTypewriter
      lines={['Hello, world!', 'This is a typewriter effect.']}
      typingSpeed={50}
      lineDelay={500}
      eraseSpeed={30}
      eraseDelay={1000}
      loop={true}
      showCursor={true}
      cursor="|"
    />
  );
}

App()

Props

| Prop | Type | Default | Description | |------------------|----------------------------------|-------------|-----------------------------------------------------------------------------| | lines | string[] | Required| Array of strings to type line-by-line | | typingSpeed | number | 50 | Typing speed in milliseconds per character | | lineDelay | number | 500 | Delay before moving to the next line (in ms) | | eraseSpeed | number | 30 | Erasing speed in milliseconds per character | | eraseDelay | number | 1000 | Delay before starting to erase (in ms) | | loop | boolean | true | Whether to erase and restart after finishing all lines | | showCursor | boolean | true | Whether to display the blinking cursor | | cursor | string &#124; React.ReactNode | "&#124;" | The cursor character or a custom React node | | className | string | undefined | Optional CSS class for the container | | style | React.CSSProperties | undefined | Optional inline styles for the container | | pause | boolean | false | Temporarily pauses typing or erasing | | onLineTyped | (lineIndex: number) => void | undefined | Callback fired when a line is completely typed | | onLoopComplete | () => void | undefined | Callback fired after a full cycle when loop is enabled |

Demo

Demo Website https://react-typewriter-docs.netlify.app/ 1 2 3

Minimal Example with Styles

<ReactTypewriter
  lines={['Fast. Lightweight. React Typewriter.']}
  typingSpeed={60}
  className="my-typewriter"
/>

<style>
.my-typewriter {
  font-family: monospace;
  font-size: 1.25rem;
  color: #00ff99;
}
</style>

How to Pause/Resume

const [paused, setPaused] = useState(false);

<ReactTypewriter
  lines={['Typing will pause... and resume!']}
  pause={paused}
/>
<button onClick={() => setPaused(p => !p)}>
  {paused ? 'Resume' : 'Pause'}
</button>

Funding & Sponsorship

@bishal-shrestha/react-typewriter is an open-source project maintained with care, if you like to support the project please support me through the following:

GitHub Sponsors Buy Me a Coffee Thanks.dev

License

This project is licensed under the MIT License.

Author

Bishal Shrestha GitHub

Repo

Website

© 2025 Bishal Shrestha, All rights reserved