Skip to content

FrankenDeba/blue-vision-promptguard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blue-vision-promptguard

BlueVision Dashboard

A modern React dashboard for the BlueVision AI Safety and Monitoring Platform, built with shadcn/ui components and Tailwind CSS.

Features

  • Langfuse Dashboard Integration: Connect to your Langfuse monitoring dashboard with API keys
  • LLM Configuration: Configure your Language Model endpoint URL
  • AI Safety Features: Toggle various detection features:
    • Bias Detection
    • Harmful Content Detection
    • Prompt Injection Detection
    • PII (Personally Identifiable Information) Detection
  • Dark Theme: Beautiful dark theme with modern UI components
  • Responsive Design: Works on desktop and mobile devices
  • Local Storage: Settings are persisted in the browser

Getting Started

Prerequisites

  • Node.js 16+
  • npm or yarn

Installation

  1. Navigate to the frontend directory:

    cd frontend
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start
  4. Open http://localhost:3000 in your browser.

Building for Production

npm run build

Usage

Langfuse Dashboard

  1. Click the "Open Langfuse Dashboard" button
  2. Enter your Langfuse public and secret keys
  3. Click "Open Dashboard" to be redirected to Langfuse

LLM Configuration

  1. Enter your LLM endpoint URL in the input field
  2. Example: https://api.openai.com/v1/chat/completions

Detection Features

  • Use the toggle switches to enable/disable each detection feature
  • Each feature has a description of what it detects
  • Settings are automatically saved to localStorage

Saving Settings

  • Click the "Save Settings" button to persist all configurations
  • Settings are also automatically saved when toggling switches

Technology Stack

  • React 18 - Modern React with hooks
  • Tailwind CSS - Utility-first CSS framework
  • shadcn/ui - Beautiful, accessible UI components
  • Radix UI - Headless UI primitives
  • Lucide React - Beautiful icons
  • class-variance-authority - Component variant management

Component Structure

src/ ├── components/ │ └── ui/ # shadcn/ui components │ ├── button.jsx │ ├── card.jsx │ ├── dialog.jsx │ ├── input.jsx │ ├── label.jsx │ └── switch.jsx ├── lib/ │ └── utils.js # Utility functions ├── App.jsx # Main dashboard component ├── index.js # App entry point └── index.css # Global styles and CSS variables 

Customization

Colors

The dashboard uses CSS custom properties for theming. You can modify the colors in src/index.css under the :root and .dark selectors.

Components

All UI components are built using shadcn/ui patterns and can be customized by modifying the component files in src/components/ui/.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

License

This project is part of the BlueVision platform.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 70.3%
  • Python 23.9%
  • CSS 4.3%
  • HTML 1.5%