@usersina/react-async-typewriter
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

React Asynchronous Typewriter

An asynchronous react typewriter that handles streams

Large Language Models can take quite a bit of time to generate the full response, hence most API services tend to provide streaming endpoints to return the data as soon as it's being generated (time to first token).

This library is a way to get the response stream from a fetch request returning a stream and parse its result.

Documentation

Package Sidebar

Install

npm i @usersina/react-async-typewriter

Weekly Downloads

45

Version

3.0.0

License

MIT

Unpacked Size

45.7 kB

Total Files

7

Last publish

Collaborators

  • usersina