├── .env.example ├── .eslintrc.json ├── .gitignore ├── .prettierignore ├── README.md ├── app ├── globals.css ├── layout.js ├── page.js └── provider.js ├── components ├── footer.js ├── message.js └── title.js ├── jsconfig.json ├── next.config.js ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── public ├── favicon.ico └── robots.txt ├── renovate.json └── tailwind.config.js /.env.example: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_LLM_API= -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # next.js 12 | /.next/ 13 | /out/ 14 | 15 | # production 16 | /build 17 | 18 | # misc 19 | .DS_Store 20 | *.pem 21 | 22 | # debug 23 | npm-debug.log* 24 | yarn-debug.log* 25 | yarn-error.log* 26 | 27 | # local env files 28 | .env*.local 29 | 30 | # vercel 31 | .vercel 32 | 33 | # typescript 34 | *.tsbuildinfo 35 | next-env.d.ts 36 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .next 3 | .idea 4 | .obsidian 5 | .git 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). 2 | 3 | ## Getting Started 4 | 5 | First, run the development server: 6 | 7 | ```bash 8 | # update api to use in .env.example 9 | mv .env.example .env 10 | pnpm i 11 | pnpm dev 12 | ``` 13 | 14 | Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. 15 | 16 | You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file. 17 | 18 | ## Learn More 19 | 20 | To learn more about Next.js, take a look at the following resources: 21 | 22 | - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. 23 | - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. 24 | 25 | ## Deploy on Vercel 26 | 27 | The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. 28 | 29 | Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. 30 | -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | @layer components { 6 | pre { 7 | @apply my-4 -mx-6 p-6 break-words overflow-x-auto; 8 | } 9 | 10 | p { 11 | @apply py-2; 12 | } 13 | 14 | .color-transition { 15 | animation: colorChange 10s linear; 16 | } 17 | 18 | @keyframes colorChange { 19 | 0% { 20 | background-color: white; 21 | } 22 | 23 | 10% { 24 | background-color: orange; 25 | } 26 | 27 | 25% { 28 | background-color: yellow; 29 | } 30 | 31 | 50% { 32 | background-color: greenyellow; 33 | } 34 | 35 | 60% { 36 | background-color: green; 37 | } 38 | 39 | 75% { 40 | background-color: pink; 41 | } 42 | 43 | 100% { 44 | background-color: white; 45 | } 46 | } 47 | 48 | .dark-color-transition { 49 | animation: darkColorChange 10s linear; 50 | } 51 | 52 | @keyframes darkColorChange { 53 | 0% { 54 | background-color: black; 55 | } 56 | 57 | 10% { 58 | background-color: purple; 59 | } 60 | 61 | 25% { 62 | background-color: pink; 63 | } 64 | 65 | 50% { 66 | background-color: orange; 67 | } 68 | 69 | 60% { 70 | background-color: green; 71 | } 72 | 73 | 75% { 74 | background-color: blue; 75 | } 76 | 77 | 100% { 78 | background-color: black; 79 | } 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /app/layout.js: -------------------------------------------------------------------------------- 1 | import "./globals.css"; 2 | import Providers from "./provider"; 3 | import Script from "next/script"; 4 | 5 | export const metadata = { 6 | title: "ChatGPT", 7 | description: "LLM Playground", 8 | icons: { 9 | icon: `data:image/svg+xml,`, 10 | apple: "/favicon.ico", 11 | }, 12 | }; 13 | 14 | export default function RootLayout({ children }) { 15 | return ( 16 | 17 | 18 | 19 |
{children}
20 |
21 | 22 |