Skip to content

het2576/Covalence-Ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🌐 Covalence-Ai

Covalence AI integrates BI analytics, document search, and role-based AI assistance into a single interface, providing enterprise employees with instant, role-appropriate answers across disconnected data systems.

React 18 TypeScript Tailwind CSS Supabase (PostgreSQL, Auth, Real-time) License: MIT

πŸ“– Table of Contents


🎯 About

Enterprise employees frequently encounter a significant challenge: wasting valuable time searching for critical data scattered across disparate and disconnected systems. This fragmentation leads to inefficiencies, delayed decision-making, and a reduced capacity for strategic work, as individuals are forced to manually aggregate information from various sources.

Covalence AI directly addresses this pain point by providing a unified, intelligent platform. It integrates BI analytics, document search, and role-based AI assistance into one elegant interface, delivering instant, context-aware answers tailored to an employee's specific role. By centralizing data access and leveraging AI for natural language queries, Covalence AI transforms data retrieval from a time-consuming chore into a swift, intuitive interaction, empowering users to focus on analysis and action rather than search.


✨ Features

  • πŸ€– AI-powered Chat Interface β€” Engage with an intelligent chat interface to query diverse data sources using natural language.
  • πŸ‘₯ Role-based Access Control β€” Securely manage user permissions with distinct roles: Admin, Manager, Analyst, and Intern.
  • πŸ“Š Multi-modal AI Responses β€” Receive comprehensive AI answers presented as interactive tables, dynamic charts, and concise document summaries.
  • πŸ“ˆ Real-time Analytics Dashboard β€” Monitor query performance and user engagement through a dynamic, real-time analytics dashboard.
  • βš™οΈ Admin Panel β€” Centralized control for managing datasets, administering users, and reviewing detailed activity logs.
  • 🎨 Modern Glassmorphic UI β€” Experience a visually stunning, responsive interface enhanced with Framer Motion animations and a glassmorphic aesthetic.

πŸ› οΈ Tech Stack

🎨 Frontend

Technology Version Purpose
React 18 UI library for building interactive user interfaces
TypeScript Latest Type-safe JavaScript for enhanced code quality
Tailwind CSS Latest Utility-first CSS framework for rapid styling
Framer Motion Latest Production-ready motion library for React
Recharts Latest Composable charting library built with React and D3
Lucide React Latest Beautifully crafted open-source icons for React
React Router Latest Declarative routing for React applications

βš™οΈ Backend & Infrastructure

Technology Version Purpose
Supabase Latest Open-source Firebase alternative (PostgreSQL, Auth, Real-time)

πŸ“‹ Prerequisites

⚠️ Make sure you have all of these installed before starting.

  1. Node.js 18+ β€” Download Β· Check: node --version
  2. npm β€” Comes with Node.js Β· Check: npm --version
  3. Supabase account β€” Sign up Β· Required for database, authentication, and real-time features.

βš™οΈ Installation

Step 1 β€” Clone the repository

git clone https://github.com/het2576/Covalence-Ai.git
cd Covalence-Ai

Step 2 β€” Install dependencies

npm install

Step 3 β€” Configure environment

cp .env.example .env.local

πŸ’‘ Open .env.local and fill in your values. See Environment Variables below.

Step 4 β€” Build the project

npm run build

πŸ” Environment Variables

Create a .env.local file in the project root:

# βœ… Required: Supabase project URL for connecting to the database.
VITE_SUPABASE_URL=

# βœ… Required: Supabase public anonymous key for client-side access.
VITE_SUPABASE_ANON_KEY=

# βœ… Required: OpenAI API key for integrating AI-powered features.
VITE_OPENAI_API_KEY=
Variable Required Description
VITE_SUPABASE_URL βœ… Yes Supabase project URL for connecting to the database.
VITE_SUPABASE_ANON_KEY βœ… Yes Supabase public anonymous key for client-side access.
VITE_OPENAI_API_KEY βœ… Yes OpenAI API key for integrating AI-powered features.

πŸ”’ Never commit your .env.local file. It's already in .gitignore.


πŸš€ Usage

Development Server

npm run dev

Open http://localhost:5173 in your browser.

Quick Start Example

Once the application is running and configured with your Supabase and OpenAI keys, navigate to the dashboard. Log in using your Supabase credentials. You can then interact with the AI chat interface by typing a natural language query.

For instance, try asking:

Show me sales data for Q3 last year, broken down by region.

The AI will process your request and present the information in a multi-modal format, potentially including an interactive chart or a summarized table, based on the available data sources.


πŸ“ Project Structure

Covalence-Ai/
β”œβ”€β”€ covalence/          # Main application source and public assets
β”‚   β”œβ”€β”€ src/            # Core application logic, components, pages
β”‚   β”‚   β”œβ”€β”€ components/ # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ pages/      # Route-specific views and layouts
β”‚   β”‚   β”œβ”€β”€ hooks/      # Custom React hooks
β”‚   β”‚   β”œβ”€β”€ utils/      # Utility functions and helpers
β”‚   β”‚   └── main.tsx    # Application entry point
β”‚   β”œβ”€β”€ public/         # Static assets (e.g., index.html, images)
β”‚   β”œβ”€β”€ tailwind.config.js # Tailwind CSS configuration
β”‚   └── vite.config.ts  # Vite build configuration
β”œβ”€β”€ .env.example        # Environment variables template
β”œβ”€β”€ package.json        # Project dependencies and scripts
└── README.md           # This documentation file

The project adopts a modular structure, organizing code within the covalence/src directory into logical domains such as components, pages, and utilities. This approach promotes maintainability and scalability by keeping related functionalities co-located, making it easier to navigate and extend the codebase.


🀝 Contributing

Contributions make this project better. Here's how to get involved:

πŸ› Reporting Bugs

Before creating a bug report:

  • βœ… Check the existing issues
  • βœ… Collect your environment details (OS, Node version, browser)
  • βœ… Reproduce the bug consistently

Create a bug report β†’

πŸ’‘ Suggesting Features

Feature suggestions are tracked as GitHub issues.

Suggest a feature β†’

πŸ”§ Pull Requests

  1. 🍴 Fork the repository
  2. 🌿 Create a feature branch: git checkout -b feat/amazing-feature
  3. πŸ’Ύ Commit your changes: git commit -m 'feat: add amazing feature'
  4. πŸ“€ Push to the branch: git push origin feat/amazing-feature
  5. πŸ” Open a Pull Request

Commit convention: We use Conventional Commits

  • feat: β€” new feature
  • fix: β€” bug fix
  • docs: β€” documentation only
  • refactor: β€” code change, no feature or fix
  • test: β€” add or update tests

πŸ“„ License

This project is licensed under the MIT License.

You're free to use, modify, and distribute this project for any purpose. See the LICENSE file for full details.


Built with ❀️ by het2576

If this project helped you, consider giving it a ⭐

⭐ Star this repo Β· πŸ› Report a Bug Β· πŸ’‘ Request a Feature

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors