
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@isbosykh/typist
Advanced tools
A modern, framework-agnostic typing animation library with customizable speed curves
A modern, framework-agnostic typing animation library with customizable speed curves and advanced features.
npm install typist-js
import { TypedText } from 'typist-js';
const typed = new TypedText('#my-element', {
strings: ['Hello World!', 'Welcome to TypistJS!', 'Enjoy typing animations!'],
typeSpeed: 100,
loop: true,
typeSpeedCurvature: 'sine'
});
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/typist-js/dist/index.umd.js"></script>
</head>
<body>
<div id="typed-text"></div>
<script>
const typed = new TypistJS.TypedText('#typed-text', {
strings: ['Hello World!', 'This is TypistJS!'],
typeSpeed: 50,
loop: true
});
</script>
</body>
</html>
| Option | Type | Default | Description |
|---|---|---|---|
strings | string[] | [] | Array of strings to type |
typeSpeed | number | 50 | Typing speed in milliseconds |
backSpeed | number | 25 | Backspacing speed in milliseconds |
startDelay | number | 0 | Delay before typing starts |
backDelay | number | 1000 | Delay before backspacing |
loop | boolean | false | Loop through strings infinitely |
showCursor | boolean | true | Show blinking cursor |
cursorChar | string | `' | '` |
typeSpeedCurvature | 'linear' | 'bezier' | 'exponential' | 'sine' | 'sine' | Speed curve type |
TypistJS supports different speed curves to make your typing animations more natural and engaging:
Smooth wave-like speed variation for organic, natural feel.
Constant typing speed throughout the animation.
Smooth acceleration and deceleration, similar to CSS ease-in-out.
Starts slow and accelerates dramatically for powerful effect.
const typed = new TypedText('#element', {
strings: ['First string', 'Second string'],
onStringStart: (index) => {
console.log(`Started typing string ${index}`);
},
onStringComplete: (index) => {
console.log(`Completed string ${index}`);
},
onComplete: () => {
console.log('All strings completed!');
}
});
start()Start or restart the typing animation.
stop()Stop the current animation.
reset()Reset to the beginning without starting.
destroy()Clean up and remove all event listeners.
updateOptions(options)Update configuration options dynamically.
typed.updateOptions({
typeSpeed: 200,
typeSpeedCurvature: 'exponential'
});
getCurrentString()Get the currently active string.
getCurrentStringIndex()Get the index of the currently active string.
isRunning()Check if the animation is currently running.
import React, { useEffect, useRef } from 'react';
import { TypedText } from 'typist-js';
const TypedComponent: React.FC = () => {
const elementRef = useRef<HTMLDivElement>(null);
const typedRef = useRef<TypedText | null>(null);
useEffect(() => {
if (elementRef.current) {
typedRef.current = new TypedText(elementRef.current, {
strings: ['Hello React!', 'TypistJS works great!'],
typeSpeed: 100,
loop: true,
typeSpeedCurvature: 'bezier'
});
}
return () => {
typedRef.current?.destroy();
};
}, []);
return <div ref={elementRef} className="typed-text" />;
};
<template>
<div ref="typedElement" class="typed-text"></div>
</template>
<script setup lang="ts">
import { ref, onMounted, onUnmounted } from 'vue';
import { TypedText } from 'typist-js';
const typedElement = ref<HTMLElement>();
let typed: TypedText | null = null;
onMounted(() => {
if (typedElement.value) {
typed = new TypedText(typedElement.value, {
strings: ['Hello Vue!', 'TypistJS is awesome!'],
typeSpeed: 100,
loop: true,
typeSpeedCurvature: 'sine'
});
}
});
onUnmounted(() => {
typed?.destroy();
});
</script>
<script lang="ts">
import { onMount, onDestroy } from 'svelte';
import { TypedText } from 'typist-js';
let element: HTMLElement;
let typed: TypedText | null = null;
onMount(() => {
typed = new TypedText(element, {
strings: ['Hello Svelte!', 'TypistJS rocks!'],
typeSpeed: 100,
loop: true,
typeSpeedCurvature: 'exponential'
});
});
onDestroy(() => {
typed?.destroy();
});
</script>
<div bind:this={element} class="typed-text"></div>
TypistJS automatically adds CSS classes that you can style:
.typed-text-content {
/* Style the text content */
font-family: 'Courier New', monospace;
color: #333;
}
.typed-text-cursor {
/* Style the cursor */
color: #007acc;
font-weight: bold;
}
.typed-text-cursor.hidden {
/* Cursor hidden state - automatically managed */
opacity: 0;
}
TypistJS works in all modern browsers that support:
MIT License - see LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
A modern, framework-agnostic typing animation library with customizable speed curves
We found that @isbosykh/typist demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.