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.
- π― About
- β¨ Features
- π οΈ Tech Stack
- π Prerequisites
- βοΈ Installation
- π Environment Variables
- π Usage
- π Project Structure
- π€ Contributing
- π License
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.
- π€ 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.
π¨ 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) |
β οΈ Make sure you have all of these installed before starting.
- Node.js 18+ β Download Β· Check:
node --version - npm β Comes with Node.js Β· Check:
npm --version - Supabase account β Sign up Β· Required for database, authentication, and real-time features.
git clone https://github.com/het2576/Covalence-Ai.git
cd Covalence-Ainpm installcp .env.example .env.localπ‘ Open
.env.localand fill in your values. See Environment Variables below.
npm run buildCreate 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.localfile. It's already in.gitignore.
npm run devOpen http://localhost:5173 in your browser.
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.
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.
Contributions make this project better. Here's how to get involved:
Before creating a bug report:
- β Check the existing issues
- β Collect your environment details (OS, Node version, browser)
- β Reproduce the bug consistently
Feature suggestions are tracked as GitHub issues.
- π΄ Fork the repository
- πΏ Create a feature branch:
git checkout -b feat/amazing-feature - πΎ Commit your changes:
git commit -m 'feat: add amazing feature' - π€ Push to the branch:
git push origin feat/amazing-feature - π Open a Pull Request
Commit convention: We use Conventional Commits
feat:β new featurefix:β bug fixdocs:β documentation onlyrefactor:β code change, no feature or fixtest:β add or update tests
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