flowtoken  by Ephibbs

React UI library for animated LLM text streaming

created 1 year ago
396 stars

Top 74.0% on sourcepulse

GitHubView on GitHub
Project Summary

FlowToken is a React component library designed to enhance the visual presentation of text streamed from LLMs. It offers a variety of customizable CSS animations for smooth, dynamic text rendering, improving user experience in chat interfaces and similar applications.

How It Works

FlowToken leverages CSS animations to apply effects like fading, sliding, and typewriter typing to streamed text. It splits content by word or character, allowing fine-grained control over animation timing and appearance. The library supports custom components, enabling developers to integrate LLM-generated custom syntax directly into their React applications.

Quick Start & Requirements

  • Install via npm: npm install flowtoken or yarn: yarn add flowtoken.
  • Import CSS: import 'flowtoken/dist/styles.css';.
  • Requires React and a modern browser.
  • Demo: Demo link

Highlighted Details

  • Supports 10+ built-in animations (e.g., fadeIn, typewriter, dropIn).
  • Allows custom CSS animations via the animation prop.
  • Integrates with Vercel AI SDK for seamless LLM chat experiences.
  • Enables custom component rendering based on LLM output syntax.

Maintenance & Community

  • Contributions are welcome via pull requests and issues.
  • No specific community links (Discord/Slack) or notable contributors are listed in the README.

Licensing & Compatibility

  • MIT Licensed.
  • Permissive license suitable for commercial use and closed-source applications.

Limitations & Caveats

The library's performance and animation quality may depend on the complexity of the animations and the browser's rendering capabilities. For optimal Tailwind CSS integration with markdown, specific typography configurations are recommended.

Health Check
Last commit

2 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
2
Star History
179 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.