A stunning, production-ready MVP that combines BI analytics, document search, and role-based AI assistance in one elegant interface. Built for hackathons and enterprise demos.
- AI-Powered Chat Interface: Natural language queries across all data sources
- Role-Based Access Control: Admin, Manager, Analyst, and Intern permissions
- Multi-Modal Responses: Interactive tables, charts, document summaries, and image previews
- Real-Time Analytics: Live dashboard with query metrics and user activity
- Admin Panel: Dataset management, user administration, and activity logs
- Glassmorphic UI: Modern design with backdrop blur effects and soft gradients
- Smooth Animations: Framer Motion powered transitions and micro-interactions
- Responsive Design: Optimized for desktop and mobile devices
- Professional Color Palette: Blue/purple gradient theme with excellent contrast
- Frontend: React 18, TypeScript, Tailwind CSS, Framer Motion
- Backend: Supabase (PostgreSQL, Auth, Real-time)
- Charts: Recharts for beautiful data visualizations
- Icons: Lucide React for consistent iconography
- Authentication: Email/password with role-based permissions
- Node.js 18+ and npm
- Supabase account (free tier works)
-
Clone and Install
git clone <repository-url> cd covalence-ai npm install
-
Configure Supabase
- Create a new Supabase project
- Copy
.env.exampleto.env - Add your Supabase URL and anon key
-
Set Up Database
-- Create profiles table CREATE TABLE profiles ( id UUID PRIMARY KEY REFERENCES auth.users(id), email TEXT UNIQUE NOT NULL, full_name TEXT NOT NULL, role TEXT CHECK (role IN ('admin', 'manager', 'analyst', 'intern')) NOT NULL, created_at TIMESTAMPTZ DEFAULT NOW() ); -- Enable RLS ALTER TABLE profiles ENABLE ROW LEVEL SECURITY; -- Create policies CREATE POLICY "Users can read own profile" ON profiles FOR SELECT USING (auth.uid() = id); CREATE POLICY "Users can update own profile" ON profiles FOR UPDATE USING (auth.uid() = id);
-
Start Development
npm run dev
For quick testing, you can create these demo accounts:
- Admin: admin@demo.com / demo123
- Manager: manager@demo.com / demo123
- Analyst: analyst@demo.com / demo123
- Intern: intern@demo.com / demo123
"Enterprise employees waste 2.5 hours daily searching for data across disconnected systems. What if they could just ask questions in plain English and get instant, role-appropriate answers?"
- Data silos across departments
- Complex SQL/BI tools require training
- Security concerns with data access
- Slow time-to-insights
-
Role-Based Intelligence
- Show different user roles getting filtered results
- Demonstrate security controls in action
-
Multi-Modal AI Responses
- SQL query β Interactive table with trends
- Document search β Smart summary card
- Analytics request β Dynamic charts
-
Enterprise-Ready Features
- Admin panel with dataset management
- Real-time analytics dashboard
- Activity logs and compliance tracking
- $50B+ business intelligence market
- 87% of companies struggle with data accessibility
- Growing demand for conversational AI in enterprise
Unlike generic AI assistants or traditional BI tools, Covalence AI uniquely combines:
- Security-first architecture with role-based filtering
- Multi-modal intelligence across structured and unstructured data
- Beautiful, non-technical interface anyone can use
- Enterprise-grade admin controls for compliance and governance
src/
βββ components/
β βββ Auth/ # Authentication pages
β βββ Chat/ # Chat interface and responses
β βββ Analytics/ # Dashboard and metrics
β βββ Admin/ # Admin panel components
β βββ Layout/ # Sidebar and navigation
β βββ Settings/ # User preferences
β βββ ui/ # Reusable UI components
βββ lib/
β βββ auth.tsx # Authentication context
β βββ supabase.ts # Database client
β βββ utils.ts # Utility functions
βββ App.tsx # Main application
// Different data access based on user role
const filterDataByRole = (data: any[], userRole: string) => {
if (userRole === 'intern') {
return data.filter(item => !item.sensitive)
}
return data // Full access for other roles
}- Table: SQL query results with interactive sorting
- Chart: Data visualizations using Recharts
- Summary: Document analysis with confidence scores
- Image: Media search with AI-generated captions
- Query volume tracking
- Response time monitoring
- User activity logs
- Role-based usage patterns
- Update the
mockDatasetsarray inAdminPanel.tsx - Implement data parsing logic for your format
- Add appropriate icons and styling
- Extend the
ChatResponsecomponent - Add new response types to the interface
- Implement rendering logic for your data format
- Update colors in
tailwind.config.js - Replace the logo and app name
- Customize the gradient themes
VITE_SUPABASE_URL=your_production_supabase_url
VITE_SUPABASE_ANON_KEY=your_production_anon_key
VITE_OPENAI_API_KEY=your_openai_api_keynpm run build
npm run preview- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or support:
- Create an issue on GitHub
- Contact the development team
- Check the documentation wiki
Built with β€οΈ for the future of enterprise data interaction