{"id":22547685,"url":"https://github.com/rohittcodes/heymate","last_synced_at":"2025-04-09T17:07:50.285Z","repository":{"id":246636160,"uuid":"821226613","full_name":"rohittcodes/heymate","owner":"rohittcodes","description":"HeyMate is an AI-powered messaging application that allows users to chat with their friends and family. A place to hangout and have fun with your friends.","archived":false,"fork":false,"pushed_at":"2024-07-11T19:44:00.000Z","size":346,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T17:07:42.508Z","etag":null,"topics":["mindsdb","mindsdb-js-sdk","nextauth","nextjs","prisma","reactjs","uploadthing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rohittcodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-28T04:59:16.000Z","updated_at":"2024-07-13T09:47:09.000Z","dependencies_parsed_at":"2024-06-29T09:33:19.442Z","dependency_job_id":"fac1b020-ee00-4169-bd46-d5d26b48153b","html_url":"https://github.com/rohittcodes/heymate","commit_stats":null,"previous_names":["rohittcodes/heymate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohittcodes%2Fheymate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohittcodes%2Fheymate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohittcodes%2Fheymate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohittcodes%2Fheymate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohittcodes","download_url":"https://codeload.github.com/rohittcodes/heymate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074976,"owners_count":21043490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mindsdb","mindsdb-js-sdk","nextauth","nextjs","prisma","reactjs","uploadthing"],"created_at":"2024-12-07T15:12:38.372Z","updated_at":"2025-04-09T17:07:50.260Z","avatar_url":"https://github.com/rohittcodes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MindsDB](https://img.shields.io/badge/MINDSDB-00A550?labelColor=16202D\u0026style=for-the-badge\u0026link=https://mindsdb.com/)](https://mindsdb.com/)\n[![Quira.sh](https://img.shields.io/badge/Quira.sh-131633?style=for-the-badge\u0026link=https://quira.sh/)](https://quira.sh/)\n\n# HeyMate\n\n![GitHub repo size](https://img.shields.io/github/repo-size/RohittCodes/heymate?style=for-the-badge) ![GitHub](https://img.shields.io/github/license/RohittCodes/heymate?style=for-the-badge) ![GitHub last commit](https://img.shields.io/github/last-commit/RohittCodes/heymate?style=for-the-badge)\n\nHeyMate is an AI-powered messaging application that allows users to chat with their friends and family. A place to hangout and have fun with your friends. HeyMate is built using MindsDB to provide AI-powered responses to the users through various chatbots and models.\n\n## Table of Contents\n\n- [HeyMate 👋](#heymate)\n  - [Table of Contents 📑](#table-of-contents)\n  - [Demo 🚀](#demo-)\n  - [Features 🎉](#features-)\n  - [Tech Stack 🛠️](#tech-stack-️)\n  - [Installation and Usage 📚](#installation-and-usage-)\n    - [Setup](#setup)\n    - [Running the Application](#running-the-application)\n    - [MindsDB Setup](#mindsdb-setup)\n  - [Contributing 🤝](#contributing-)\n  - [License 🤖](#license-)\n\n## Demo 🚀\n\n[![HeyMate](https://img.shields.io/badge/HeyMate-131633?style=for-the-badge\u0026link=https://github.com/RohittCodes/heymate/)](https://github.com/RohittCodes/heymate)\n\nhttps://github.com/RohittCodes/heymate/assets/104308198/d2779b86-e61f-4a74-a92c-1d94bd9773f8\n\nNote: If you're not able to access the demo video, please visit this youtube link: [HeyMate Demo](https://youtu.be/6rHr_L0pV2E)\n\n## Features 🎉\n\n- **Authentication**: Secure Authentication and Authorization using Auth.js\n- **Core Features**: Chat with Friends and Family you care about. No limits on the number of friends you can chat with.\n  - **Direct Messaging**: Chat with your friends and family in real-time.\n  - **Group Messaging**: Create groups and chat with multiple friends at once.\n  - **Invite Friends**: Invite your friends to join HeyMate and chat with them.\n- **AI-Powered Chatbots**: Want to have fun or need help with something? Use the MindsDB powered chatbots to get the help you need. The chatbots available are:\n  - **Cleverbot**: Chat with Cleverbot, the ai bot with the best knowledge around the world.\n  - **DankMeme**: Ai bot to provide you with the best memes you can find on the internet.\n  - **CodeChimp**: Ai bot to help you with your coding problems.\n  - **HugoBot**: Most human-like ai bot to chat with.\n  - **AstroBot**: Ai bot to help you with your astrology problems.\n- **Sentiment Analysis**: Get the sentiment of the messages you send and receive.\n\n## Tech Stack 🛠️\n\n- **Frontend**: React.js, Next.js, Tailwind CSS, Shadcn UI\n- **Database**: MySQL, MindsDB\n- **Authentication**: Auth.js\n- **Core packages**: pusher-js, uploadthing, resend\n\n## Installation and Usage 📚\n\n1. Clone the repository\n```bash\ngit clone https://github.com/RohittCodes/heymate.git\n```\n\n2. Change the directory\n```bash\ncd heymate\n```\n\n3. Install the dependencies\n```bash\nnpm install\n```\n\n4. Install Docker Desktop or Docker Engine and follow the instructions to setup MindsDB from the [self host page](https://docs.mindsdb.com/setup/self-hosted/docker)\n\n### Setup\n\n1. Create a `.env` file in the root directory of the project and add the following environment variables\n```env\nDATABASE_URL=\"mysql://root:password@localhost:3306/heymate?=public\"\nAUTH_SECRET=\"your-auth-secret-key\"\n\nUPLOADTHING_SECRET=\"your-uploadthing-secret-key\"\nUPLOADTHING_APP_ID=\"your-uploadthing-app-id\"\n\nGITHUB_CLIENT_ID=\"your-github-client-id\"\nGITHUB_CLIENT_SECRET=\"your-github-client-secret\"\nGOOGLE_CLIENT_ID=\"your-google-client-id\"\nGOOGLE_CLIENT_SECRET=\"your-google-client-secret\"\n\nRESEND_API_KEY=\"your-resend-api-key\"\nRESEND_FROM_EMAIL=\"onboarding@resend.dev\"\n\nNEXT_PUBLIC_URL=\"http://localhost:3000\"\n\nNEXT_PUBLIC_PUSHER_APP_KEY=\"your-pusher-app-key\"\nPUSHER_APP_ID=\"your-pusher-app-id\"\nPUSHER_SECRET=\"your-pusher-secret-key\nPUSHER_CLUSTER=\"your-pusher-cluster\"\n\nMINDSDB_HOST=\"http://localhost:47334\"\n```\n\n### MindsDB Setup\n\n1. Run the MindsDB Docker container by following the instructions from the [self host page](https://docs.mindsdb.com/setup/self-hosted/docker)\n2. Create a MindsDB account and get the API key from the MindsDB dashboard\n3. Set up the MindsDB engine using minds_endpoint\n```sql\nCREATE ML_ENGINE minds_endpoint_engine\nFROM minds_endpoint\nUSING\n      minds_endpoint_api_key = 'api-key-value';\n```\n4. Create a model using the MindsDB engine\n```sql\nCREATE MODEL model_name --replace model_name with the model you would like to create\nPREDICT answer\nUSING\n      engine = 'minds_endpoint_engine',\n      model_name = 'model-name',  --replace model-name with the model you would like to use\n      prompt_template = 'prompt-to-the-model'  --replace prompt-to-the-model with the prompt_template you would like to use\n```\n\n5. Query the model to test it in MindsDB editor\n```sql\nSELECT text, answer\nFROM minds_endpoint_model\nWHERE text = 'I love machine learning!';\n```\n\nExample bot that we've created using MindsDB\n```sql\nCREATE MODEL dankmeme\nPREDICT answer\nUSING\n      engine = 'minds_endpoint_engine',\n      model_name = 'dankmeme',\n      prompt_template = 'act like dankmeme, an ai bot that provides you with the best memes you can find on the internet and provide a response to the following text: {{text}}';\n```\n\nNOTE: To use the bots you need to manually setup the bots into your mysql database using prisma studio. Will be updating the code to automate this process in the future and users will be able to setup their own bots using the MindsDB API.\n\n### Running the Application\n\n1. Run the development server\n```bash\nnpm run dev\n```\n\n2. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n3. You can start chatting with your friends and family and use the AI-powered chatbots to have fun.\n\n## Contributing 🤝\n\nContributions are welcome! Feel free to open an issue or submit a pull request if you have any ideas or suggestions. You can also reach out to me on [Twitter](https://twitter.com/RohittCodes) if you have any questions or feedback.\n\n## Contributors ✨\n\n- [RohittCodes](https://github.com/rohittcodes)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohittcodes%2Fheymate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohittcodes%2Fheymate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohittcodes%2Fheymate/lists"}