Context
VetDesk is a SaaS platform for veterinary clinics and independent veterinarians. It brings patient records, clinical reports, prescriptions, scheduling, finance and inventory into one system.
Problem
A veterinary practice runs on many small, connected tasks: recording each visit, issuing documents, scheduling, charging and controlling stock. VetDesk exists to handle that routine in a single product instead of separate tools.
Constraints
- Sensitive clinical data and regulated documents, such as prescriptions, that call for a careful security and compliance approach.
- Subscription plans with a trial period and access controlled by feature.
- Web access on desktop and mobile from one codebase, with room to grow into an app-store application later.
- Uploaded documents limited to PDF or DOC, up to 3 MB each and five files per record.
Solution
- Patient records with history, vaccines, exams and attached documents.
- Clinical reports with templates, digital signature and PDF export.
- Prescriptions and exam requests exported as PDF.
- Scheduling with WhatsApp notifications.
- Financial reports and inventory management.
- A dosage calculator based on weight.
- Subscriptions with trial control and feature-based access, plus a referral program.
Architecture
The system is organized by feature (patients, reports, scheduling, finance, inventory and more). Each feature keeps its own types, data service, form schema and hooks. The code follows conceptual layers, domain, application, infrastructure and interface, and the domain does not depend on the framework, the database or the payment provider. The web application uses the Next.js App Router and keeps server rendering wherever the browser is not needed.
Technologies
- Next.js (App Router)
- React
- TypeScript
- Redux Toolkit (RTK Query)
- Zod
- Tailwind CSS
- Node.js + Express on Firebase Cloud Functions
- Cloud Firestore
- Firebase Authentication
- Firebase Storage
- Firebase Hosting
- Stripe
- Google Gemini
Artificial intelligence
AI features support the veterinarian: a clinical triage assistant that can analyze images, and help with drafting and refining reports. They are built on Google Gemini and run on the server side, behind the API.
Integrations
- Stripe for subscription plans.
- WhatsApp notifications for appointments.
- Digital signature of documents through a cloud-certificate provider, behind a provider-agnostic interface.
- PDF generation for reports, prescriptions and requests.
Security
Users sign in with Firebase Authentication (email and password or Google). Sensitive operations go through a server-side API on Cloud Functions instead of the browser, and secrets stay on the server. Security is documented as part of the project: API and secrets reviews, and a threat model for controlled prescriptions.
Results
VetDesk is a complete product built end to end: web application, API, data model, authentication, payments, AI features and security documentation. We do not publish usage or business metrics for this case.