Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-aiwriter

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-aiwriter

Typewriter effect inspired by ChatGPT ⌨️

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
387
decreased by-14.95%
Maintainers
1
Weekly downloads
 
Created
Source


React AIWriter

Inspired by the first versions interface of ChatGPT



Example app and usage

I've written an extensive blog post about the current state of AI and its implications on software jobs, in which I have used this library. Check it out! You can also run the included demo app locally:

$ git clone https://github.com/mxmzb/react-aiwriter.git
$ cd react-aiwriter && yarn
$ cd example && yarn
$ yarn dev

After installing the demo locally you can visit it at http://localhost:8000

Intro

As I (and probably half of Twitter) have been playing around with ChatGPT, I came to like the way ChatGPT was rendering the words successively in a typewriter style. I found TypewriterJS, but its configuration was too difficult to integrate arbitrary content from a CMS.

Installation

$ yarn add react-aiwriter

Quickstart

import AIWriter from "react-aiwriter";

export default () => (
  <AIWriter>
    <p>
      Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
      labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
      laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
      voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
      non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </p>
  </AIWriter>
);

Documentation and API

AIWriter

The main slider container, where you want to put all your slider elements inside.

PropDefaultTypeDescription
childrennullReactNode[]Child elements. Should be text nodes
delay25numberThe time between nodes / words rendered in milliseconds
onFinish() => {}functionDo something after all nodes / words rendered

License

react-aiwriter is licensed under the MIT.

Keywords

FAQs

Package last updated on 21 Dec 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc