├── .gitignore ├── LICENSE.md ├── README.md ├── components.json ├── eslint.config.mjs ├── next.config.ts ├── package.json ├── postcss.config.mjs ├── public └── chatgpt.svg ├── src ├── app │ ├── api │ │ ├── chat-list │ │ │ └── route.ts │ │ ├── chat │ │ │ ├── delete │ │ │ │ └── route.ts │ │ │ ├── edit-message │ │ │ │ └── route.ts │ │ │ ├── edit │ │ │ │ └── route.ts │ │ │ └── route.ts │ │ ├── memory │ │ │ └── route.ts │ │ ├── upload │ │ │ └── route.ts │ │ └── webhooks │ │ │ └── clerk │ │ │ └── route.ts │ ├── chat │ │ ├── [[...id]] │ │ │ └── page.tsx │ │ └── layout.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── page.tsx │ └── sign-in │ │ └── page.tsx ├── components │ ├── animated-gradient.tsx │ ├── chat-header.tsx │ ├── chat-inner.tsx │ ├── chat-input.tsx │ ├── chat-layout.tsx │ ├── chat-messages.tsx │ ├── chat-sidebar.tsx │ ├── chat.tsx │ ├── data-stream-provider.tsx │ ├── error-state.tsx │ ├── file-attachment-display.tsx │ ├── file-upload-dropdown.tsx │ ├── loading-state.tsx │ ├── memory-modal.tsx │ ├── messages │ │ ├── code-block.tsx │ │ ├── file-attachment.tsx │ │ └── message-content.tsx │ ├── ui │ │ ├── badge.tsx │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── dialog.tsx │ │ ├── dropdown-menu.tsx │ │ ├── input.tsx │ │ ├── scroll-area.tsx │ │ ├── separator.tsx │ │ ├── sheet.tsx │ │ ├── sidebar.tsx │ │ ├── skeleton.tsx │ │ ├── textarea.tsx │ │ └── tooltip.tsx │ └── welcome-message.tsx ├── contexts │ └── chat-sidebar-context.tsx ├── hooks │ ├── use-auth-redirect.ts │ ├── use-chat-data.ts │ ├── use-chat-list.ts │ ├── use-chat-transition.ts │ ├── use-chat-with-attachments.ts │ └── use-mobile.ts ├── lib │ ├── chat-sidebar-events.ts │ ├── fetch-utils.ts │ ├── mongodb.ts │ ├── user.ts │ └── utils.ts ├── middleware.ts ├── models │ ├── Chat.ts │ └── User.ts └── types │ └── chat.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Free to use, just dont directly claim it as yours! 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/README.md -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/components.json -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /next.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/next.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /public/chatgpt.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/public/chatgpt.svg -------------------------------------------------------------------------------- /src/app/api/chat-list/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/api/chat-list/route.ts -------------------------------------------------------------------------------- /src/app/api/chat/delete/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/api/chat/delete/route.ts -------------------------------------------------------------------------------- /src/app/api/chat/edit-message/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/api/chat/edit-message/route.ts -------------------------------------------------------------------------------- /src/app/api/chat/edit/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/api/chat/edit/route.ts -------------------------------------------------------------------------------- /src/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/api/chat/route.ts -------------------------------------------------------------------------------- /src/app/api/memory/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/api/memory/route.ts -------------------------------------------------------------------------------- /src/app/api/upload/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/api/upload/route.ts -------------------------------------------------------------------------------- /src/app/api/webhooks/clerk/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/api/webhooks/clerk/route.ts -------------------------------------------------------------------------------- /src/app/chat/[[...id]]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/chat/[[...id]]/page.tsx -------------------------------------------------------------------------------- /src/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/chat/layout.tsx -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/sign-in/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/app/sign-in/page.tsx -------------------------------------------------------------------------------- /src/components/animated-gradient.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/animated-gradient.tsx -------------------------------------------------------------------------------- /src/components/chat-header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/chat-header.tsx -------------------------------------------------------------------------------- /src/components/chat-inner.tsx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/chat-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/chat-input.tsx -------------------------------------------------------------------------------- /src/components/chat-layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/chat-layout.tsx -------------------------------------------------------------------------------- /src/components/chat-messages.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/chat-messages.tsx -------------------------------------------------------------------------------- /src/components/chat-sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/chat-sidebar.tsx -------------------------------------------------------------------------------- /src/components/chat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/chat.tsx -------------------------------------------------------------------------------- /src/components/data-stream-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/data-stream-provider.tsx -------------------------------------------------------------------------------- /src/components/error-state.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/error-state.tsx -------------------------------------------------------------------------------- /src/components/file-attachment-display.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/file-attachment-display.tsx -------------------------------------------------------------------------------- /src/components/file-upload-dropdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/file-upload-dropdown.tsx -------------------------------------------------------------------------------- /src/components/loading-state.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/loading-state.tsx -------------------------------------------------------------------------------- /src/components/memory-modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/memory-modal.tsx -------------------------------------------------------------------------------- /src/components/messages/code-block.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/messages/code-block.tsx -------------------------------------------------------------------------------- /src/components/messages/file-attachment.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/messages/file-attachment.tsx -------------------------------------------------------------------------------- /src/components/messages/message-content.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/messages/message-content.tsx -------------------------------------------------------------------------------- /src/components/ui/badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/badge.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/scroll-area.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/scroll-area.tsx -------------------------------------------------------------------------------- /src/components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/separator.tsx -------------------------------------------------------------------------------- /src/components/ui/sheet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/sheet.tsx -------------------------------------------------------------------------------- /src/components/ui/sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/sidebar.tsx -------------------------------------------------------------------------------- /src/components/ui/skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/skeleton.tsx -------------------------------------------------------------------------------- /src/components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/textarea.tsx -------------------------------------------------------------------------------- /src/components/ui/tooltip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/ui/tooltip.tsx -------------------------------------------------------------------------------- /src/components/welcome-message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/components/welcome-message.tsx -------------------------------------------------------------------------------- /src/contexts/chat-sidebar-context.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/contexts/chat-sidebar-context.tsx -------------------------------------------------------------------------------- /src/hooks/use-auth-redirect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/hooks/use-auth-redirect.ts -------------------------------------------------------------------------------- /src/hooks/use-chat-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/hooks/use-chat-data.ts -------------------------------------------------------------------------------- /src/hooks/use-chat-list.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/hooks/use-chat-list.ts -------------------------------------------------------------------------------- /src/hooks/use-chat-transition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/hooks/use-chat-transition.ts -------------------------------------------------------------------------------- /src/hooks/use-chat-with-attachments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/hooks/use-chat-with-attachments.ts -------------------------------------------------------------------------------- /src/hooks/use-mobile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/hooks/use-mobile.ts -------------------------------------------------------------------------------- /src/lib/chat-sidebar-events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/lib/chat-sidebar-events.ts -------------------------------------------------------------------------------- /src/lib/fetch-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/lib/fetch-utils.ts -------------------------------------------------------------------------------- /src/lib/mongodb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/lib/mongodb.ts -------------------------------------------------------------------------------- /src/lib/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/lib/user.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /src/models/Chat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/models/Chat.ts -------------------------------------------------------------------------------- /src/models/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/models/User.ts -------------------------------------------------------------------------------- /src/types/chat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/src/types/chat.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Some1Uknow/chatgpt-cloned/HEAD/tsconfig.json --------------------------------------------------------------------------------