Skip to content

cerebase/use-lang

Repository files navigation

@cerebase/lang 💬

@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.

Features

  • 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)

Getting Started

You can install @cerebase/lang via npm:

npm install @cerebase/lang

Usage

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.

Support and Contribution

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.

License

This package is open-source and distributed under the MIT License.

Credits

@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.

About

💬 Framework Agnostic LLM toolkit

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published