
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
live-typing
Advanced tools
This package includes both the design and implementation of four typing indicators that integrate the rich features proposed by Media Richness Theory.
Interaction rich indicators for text-based communication
This package consists of the design and implementation of four typing indicators that can be incorporated in web or messaging platforms such as Discord, Slack, or Reddit. It works for input as well as text area elements. First, there are two typing interfaces that currently exist in SMS and IM applications:
...Next, there are two new indicators that this library includes for message transparency:
You can build the repository from the source by following these instructions
# Download Node: https://nodejs.org/en/download/
git clone https://github.com/brownhci/live-typing.git
cd live-typing
npm install
To use this package in your application, install Node, and run the following command in the terminal:
npm i live-typing
In your code, you can import using
import { typingIndicator } from 'live-typing';
By default, the typing indicator is set to ... (is-typing). The timeout is set to 5000ms. The indicators are linked with the following key values:
No-indicator: 1
Is-typing indicator: 2
Live-typing: 3
Masked-typing: 4
The typingIndicator is a custom function of the package live-typing that creates a typing indicator which can display the typing state of an input field. The function takes an object with two properties: timeout which determines how long to wait before assuming that the user has stopped typing, and indicatorType which specifies the type of typing indicator to use.
In this example, we set the timout to 500ms and choose the Masked Typing indicator.
const [isTyping, typedCharacter, responseElement] = typingIndicator({
timeout: 500,
indicatorType: 4,
});
The typingIndicator function returns an array with three elements:
isTyping: a boolean value that indicates whether the user is currently typing or not.
typedCharacter: a string that represents the character(s) typed by the user since the last keystroke event. This will vary depending on the typing indicator you specify in the function call.
responseElement: an HTML element that can be used to display the typing indicator in the UI.
The responseElement is usually added to the DOM to display the typing indicator in the user interface. If you're creating a messaging application, this will be used by the server to send to the recipient client.
To be added.
FAQs
This package includes both the design and implementation of four typing indicators that integrate the rich features proposed by Media Richness Theory.
We found that live-typing demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.