Skip to content

0xDI/vetcopilot

Repository files navigation

VetCopilot

VetCopilot

AI-powered veterinary practice management

Next.js TypeScript Supabase Tailwind

Startup project from early 2025. Deal broke due to funding issues, publishing as is.


Features

Feature Description
🔬 AI Diagnostic Analysis Upload X-rays & medical images — GPT-4o Vision returns structured findings, differentials, and confidence scores
📋 Case Management Create and track patient cases with full history, attachments, and AI-assisted notes
🐾 Client & Patient Records Owners, pets (dogs, cats, birds, rabbits…), visits, meds, allergies, vaccinations
👥 Team Collaboration Multi-user teams with roles, clinic settings, and invitations
📄 Medical History Processing Upload documents → AI extracts structured medical data (OCR + NLP)
🏥 DICOM Support Basic DICOM medical image handling
📊 Dashboard & Analytics Practice overview with case stats and trends
📑 PDF Export Generate case reports

Tech Stack

Layer Tech
Framework Next.js 14 (App Router)
Language TypeScript
UI Tailwind CSS + shadcn/ui (Radix)
Auth & DB Supabase (PostgreSQL + Auth + Storage)
AI OpenAI GPT-4o (vision + text)
Charts Recharts
PDF jsPDF

Getting Started

Prerequisites

1. Clone & install

git clone https://github.com/0xDI/vetcopilot.git
cd vetcopilot
npm install

2. Configure environment

cp .env.example .env.local

Edit .env.local and fill in your keys:

NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
OPENAI_API_KEY=sk-your-key

3. Set up the database

Run the SQL migration scripts in scripts/ against your Supabase project in order:

001_create_tables.sql
002_create_policies.sql
003_create_functions.sql
...through 028

These create the tables, RLS policies, and functions the app needs.

4. Run

npm run dev

Open http://localhost:3000

Project Structure

vetcopilot/
├── app/
│   ├── api/
│   │   ├── analyze/                 # AI image analysis (GPT-4o Vision)
│   │   ├── upload/                  # File upload handling
│   │   ├── process-medical-history/ # Document OCR + extraction
│   │   └── convert-dicom/          # DICOM conversion
│   ├── auth/                        # Auth callback
│   └── home/                        # Landing page
├── components/
│   ├── auth/                        # Auth provider, forms, protected routes
│   ├── ui/                          # shadcn/ui primitives
│   ├── vet-copilot-dashboard.tsx    # Main dashboard
│   ├── case-manager.tsx             # Case management
│   ├── client-manager.tsx           # Client/patient CRUD
│   ├── team-management.tsx          # Team & invitations
│   └── ...
├── lib/
│   ├── ai-analysis-service.ts      # AI analysis logic
│   ├── database-service.ts         # Supabase DB operations
│   ├── team-service.ts             # Team/clinic management
│   ├── client-service.ts           # Client/patient CRUD
│   └── supabase.ts                 # Supabase client init
├── scripts/                         # SQL migrations (001–028)
└── public/                          # Static assets & example X-rays

Status

No longer actively maintained. Published as open source for reference or for anyone who wants to pick it up. The codebase was functional but still in active development when work stopped.

License

MIT

About

AI-powered veterinary practice management — Next.js, Supabase, GPT-4o Vision

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors