{"id":26916847,"url":"https://github.com/codewithalihamza/nextjs-ai-assistant","last_synced_at":"2025-04-01T19:49:56.575Z","repository":{"id":280177963,"uuid":"941188170","full_name":"codewithalihamza/NextJS-AI-Assistant","owner":"codewithalihamza","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-01T18:45:42.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T19:34:01.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codewithalihamza.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":"2025-03-01T17:42:47.000Z","updated_at":"2025-03-01T18:45:45.000Z","dependencies_parsed_at":"2025-03-01T19:34:11.546Z","dependency_job_id":"1c734c06-f0b1-4296-8f37-93b5ede642d5","html_url":"https://github.com/codewithalihamza/NextJS-AI-Assistant","commit_stats":null,"previous_names":["codewithalihamza/nextjs-ai-assistant"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithalihamza%2FNextJS-AI-Assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithalihamza%2FNextJS-AI-Assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithalihamza%2FNextJS-AI-Assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithalihamza%2FNextJS-AI-Assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithalihamza","download_url":"https://codeload.github.com/codewithalihamza/NextJS-AI-Assistant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246706241,"owners_count":20820784,"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":[],"created_at":"2025-04-01T19:49:55.894Z","updated_at":"2025-04-01T19:49:56.556Z","avatar_url":"https://github.com/codewithalihamza.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js AI Assistant\n\nA chat application built with Next.js that interacts with an AI assistant backend. The application supports Markdown rendering, syntax highlighting, and session management for maintaining conversation history.\n\n---\n\n## Features\n\n- **Real-time Chat**: Send and receive messages in real-time.\n- **Markdown Support**: Messages are rendered with Markdown formatting.\n- **Syntax Highlighting**: Code blocks in messages are highlighted using `react-syntax-highlighter`.\n- **Session Management**: Maintains conversation history using a session ID.\n- **Loading State**: Displays a loading indicator while waiting for AI responses.\n- **Responsive Design**: Works seamlessly on both desktop and mobile devices.\n\n---\n\n## Technologies Used\n\n- **Frontend**:\n  - [Next.js](https://nextjs.org/) (React framework)\n  - [React Markdown](https://github.com/remarkjs/react-markdown) (Markdown rendering)\n  - [React Syntax Highlighter](https://github.com/react-syntax-highlighter/react-syntax-highlighter) (Syntax highlighting)\n  - [Rehype Raw](https://github.com/rehypejs/rehype-raw) (Raw HTML support in Markdown)\n\n- **Backend**:\n- Visit `https://github.com/codewithalihamza/NestJS-AI-Assistant` in your browser for backend code.\n---\n\n## Usage\n\n1. **Start the Backend**:\n- Ensure your backend API is running at the specified URL (e.g., `http://localhost:5000`).\n2. **Open the Application**:\n   Visit `http://localhost:3000` in your browser.\n\n3. **Send a Message**:\n   - Type a message in the input field and press `Enter` or click the `Send` button.\n   - The message will be sent to the backend, and the AI's response will be displayed.\n\n4. **View Conversation History**:\n   - The chat window displays the conversation history, including user messages and AI responses.\n\n---\n\n## Customization\n\n### Markdown Rendering\nTo customize Markdown rendering, modify the `ReactMarkdown` component in `Chat.tsx`.\n\n---\n\n## Getting Started\n1. Clone the repository:\n\n2. Install dependencies using NPM:\n   ```bash\n   npm install\n   ```\n3. run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\n## 💫 About Me:\nI'm Ali Hamza from Pakistan 🇵🇰, an experienced Full Stack Developer. With a comprehensive understanding of both front-end and back-end technologies, I am dedicated to creating strong and reliable software applications that perform well and meet the needs of the users effectively. 💻🚀\n\n## 💻 Tech Stack:\n![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=flat\u0026logo=javascript\u0026logoColor=%23F7DF1E) ![React](https://img.shields.io/badge/react-%2320232a.svg?style=flat\u0026logo=react\u0026logoColor=%2361DAFB) ![Next JS](https://img.shields.io/badge/Next-black?style=flat\u0026logo=next.js\u0026logoColor=white) ![Bootstrap](https://img.shields.io/badge/bootstrap-%238511FA.svg?style=flat\u0026logo=bootstrap\u0026logoColor=white) ![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=flat\u0026logo=node.js\u0026logoColor=white) ![NestJS](https://img.shields.io/badge/nestjs-%23E0234E.svg?style=flat\u0026logo=nestjs\u0026logoColor=white) ![Express.js](https://img.shields.io/badge/express.js-%23404d59.svg?style=flat\u0026logo=express\u0026logoColor=%2361DAFB) ![CSS3](https://img.shields.io/badge/css3-%231572B6.svg?style=flat\u0026logo=css3\u0026logoColor=white) ![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=flat\u0026logo=html5\u0026logoColor=white) ![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=flat\u0026logo=typescript\u0026logoColor=white) ![MongoDB](https://img.shields.io/badge/MongoDB-%234ea94b.svg?style=flat\u0026logo=mongodb\u0026logoColor=white) ![Postgres](https://img.shields.io/badge/postgres-%23316192.svg?style=flat\u0026logo=postgresql\u0026logoColor=white) ![MySQL](https://img.shields.io/badge/mysql-%2300000f.svg?style=flat\u0026logo=mysql\u0026logoColor=white) ![GraphQL](https://img.shields.io/badge/-GraphQL-E10098?style=flat\u0026logo=graphql\u0026logoColor=white) ![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=flat\u0026logo=tailwind-css\u0026logoColor=white)\n\n\n## Stay in touch\n\n- Linkedin - [@syedalihamzaofficial](https://www.linkedin.com/in/syedalihamzaofficial/)\n- Website - [Ali Hamza](https://syedalihamzaofficial.blogspot.com/)\n- Medium - [@syedalihamzaofficial](https://medium.com/@syedalihamzaofficial)\n- YouTube - [@TechnicalHamzaOfficial1](https://www.youtube.com/@TechnicalHamzaOfficial1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithalihamza%2Fnextjs-ai-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithalihamza%2Fnextjs-ai-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithalihamza%2Fnextjs-ai-assistant/lists"}