Skip to content

pvanand07/phidata-playground-ui

Repository files navigation

Phidata Playground UI

A modern chat interface built with React and Shadcn UI for interacting with AI agents through the phidata framework.

Phidata Playground UI Screenshot

Features

  • 🤖 Multiple AI Agent Support
  • 💬 Real-time Streaming Chat Interface
  • 🎨 Clean, Modern UI with Shadcn Components
  • 📝 Markdown Support with Syntax Highlighting
  • 🛠️ Tool Call Support

Tech Stack

  • Frontend Framework: React
  • UI Components: Shadcn UI
  • Styling: Tailwind CSS
  • Markdown: Marked.js
  • Icons: Lucide React

Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • A running phidata backend server

Installation

  1. Clone the repository:
git clone https://github.com/pvanand07/phidata-playground-ui.git
  1. Navigate to the project directory:

    cd phidata-playground-ui
  2. Install dependencies:

    npm install
    # or
    yarn install
  3. Configure your phidata backend url: Update PROD_URL in src\api\phidata.js with your phidata backend url

  4. Start the development server:

    npm run dev
    # or
    yarn dev

Project Structure

src/
├── api/
│   ├
│   └── phidata.js       # Phidata service integration
├── components/
│   ├── ChatBot.jsx      # Main chat interface
│   ├── ChatMessages.jsx  # Message rendering
│   └── MessageInput.jsx  # User input component
├── styles/
│   └── markdown.css     # Markdown styling

Features in Detail

AI Agent Selection

  • Supports multiple AI agents.
  • Remembers the last used agent.
  • Easy switching between agents.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

About

Open source alternative for phidata playground UI. https://www.phidata.app/playground

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published