@cerebase/lang
is a versatile, framework-agnostic npm package designed to facilitate the consumption of LLM streams and the creation of stream-capable hooks. It provides a robust foundation for managing and manipulating data streams within your applications, enabling seamless integration of LLM streams with your preferred framework.
- Simplified consumption of LLM streams
- Creation of stream-capable hooks for efficient data handling
- Framework-agnostic design for easy integration into any project
- Supports TypeScript for type safety and enhanced development experience
- Utilizes Changesets for streamlined package versioning
- Includes a test suite powered by Vitest for comprehensive testing coverage
- Compatible with React applications (current support)
You can install @cerebase/lang
via npm:
npm install @cerebase/lang
To begin using @cerebase/lang
in your project, simply import the desired functionalities:
import { consumeLLMStream, createStreamHook } from '@cerebase/lang';
Then, leverage the provided methods to consume LLM streams and create stream-capable hooks as needed within your application logic.
If you encounter any issues or have suggestions for improvement, please feel free to open an issue on the GitHub repository for @cerebase/lang
. Contributions are also welcome via pull requests.
This package is open-source and distributed under the MIT License.
@cerebase/lang
is maintained and developed by cerebase. We are grateful to the open-source community for their contributions and support.
Thank you for choosing @cerebase/lang
! We hope it enhances your development experience and enables seamless stream handling within your projects.