PocketDoc is an AI-powered health chatbot built with Next.js and integrated with the Groq API using LLaMA3 models. It helps users get instant answers to health-related questions, and even helps locate nearby doctors using geolocation.
π Visit the site here
- π€ Real-time AI health assistant
- π βFind Nearby Doctorsβ using Geolocation (opens in Google Maps)
- π¨ Beautiful, responsive UI with animations
- π Only responds to medical queries
- βοΈ Deployed on Vercel with secure environment variables
git clone https://github.com/your-username/pocketdoc.git
cd pocketdocnpm install
# or
yarn installNEXT_PUBLIC_GROQ_API_KEY=your_groq_api_key_here
NEXT_PUBLIC_MAP_API_KEY=your_google_maps_api_key_herenpm run devpocketdoc/
βββ app/ # Next.js App Router pages and layouts
β βββ page.tsx # Main chat interface
β βββ components/ # UI components (chat box, navbar, etc.)
β βββ utils/ # Helper and API utility functions
β βββ styles/ # Global and component styles
βββ public/ # Static assets (icons, logos)
βββ .env.local # Environment variables
βββ package.json # Dependencies and scripts
βββ next.config.ts # Next.js configuration
βββ tailwind.config.mjs # TailwindCSS configuration
βββ tsconfig.json # TypeScript configuration| Command | Description |
|---|---|
npm run dev |
Starts the app in development mode |
npm run build |
Builds the production version |
npm start |
Runs the built app |
npm run lint |
Runs Next.js linting |
PocketDoc is fully deployable on Vercel.
- Push your project to a GitHub repository.
- Visit Vercel and import your repo.
- Add your
.envvariables in Vercelβs dashboard under Settings β Environment Variables. - Click Deploy β and youβre live!
- Users interact with an AI-powered chatbot that only responds to medical-related queries.
- The app uses Groq API (LLaMA 3) to process user questions and generate safe responses.
- The Geolocation feature lets users find nearby doctors by opening Google Maps at their current location.
- A clean TailwindCSS interface with animations ensures smooth user experience.
- Fork the repository
- Create your feature branch (git checkout -b feature-name)
- Commit your changes (git commit -m "Add feature")
- Push to your branch (git push origin feature-name)
- Open a Pull Request
This project is licensed under the MIT License.
You are free to use, modify, and distribute it β just give proper credit.