This is a Next.js app that streams Langserve streamings on the frontend. It utilizes a hook to keep the code clean and organized within components, and makes API calls to abstract away backend APIs and calls.
- Stream Langserve streamings on the frontend
- Using hooks to keep the code clean and organized within components
- Abstracted backend APIs and calls
- Clone the repository:
git clone https://github.com/your-username/langserve-nextjs.git
- Navigate to the project directory:
cd langserve-nextjs
- Install dependencies:
npm install
Of course, you should have a running Langserve backend to connect to. You can find the Langserve backend.
- Start the development server:
npm run dev
- Open your browser and visit
http://localhost:3000
One thing that I could be improved is use a Server Action instead of fetching api.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.