├── packages ├── website │ ├── .eslintrc.json │ ├── public │ │ ├── favicon.ico │ │ └── vercel.svg │ ├── postcss.config.js │ ├── next.config.js │ ├── pages │ │ ├── _app.js │ │ └── index.js │ ├── styles │ │ └── globals.css │ ├── .codepal │ │ ├── templates │ │ │ └── default.md │ │ └── sessions │ │ │ ├── 4f6c6505-e9ca-49ab-a9a5-410dfd630105.md │ │ │ └── ce6195f4-19c9-41fb-8cec-367f08527434.md │ ├── tailwind.config.js │ ├── components │ │ ├── Hero.js │ │ └── Footer.js │ ├── package.json │ └── README.md └── codepal │ ├── package.json │ ├── lib │ └── index.js │ └── bin │ └── codepal.js ├── package.json ├── .gitignore ├── .codepal └── sessions │ ├── b1a7e548-da06-48be-9844-50f9b9c9436b.md │ ├── 8ae273b2-ba28-40e7-8ac5-8e4f1775ea44.md │ └── 9860c815-f43a-4f3c-b9bb-e580c714ba41.md └── README.md /packages/website/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /packages/website/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pdparchitect/codepal/HEAD/packages/website/public/favicon.ico -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "monorepo", 4 | "workspaces": [ 5 | "packages/*" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /packages/website/postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /packages/website/next.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = { 3 | reactStrictMode: true, 4 | } 5 | 6 | module.exports = nextConfig 7 | -------------------------------------------------------------------------------- /packages/website/pages/_app.js: -------------------------------------------------------------------------------- 1 | import '../styles/globals.css' 2 | 3 | function MyApp({ Component, pageProps }) { 4 | return 5 | } 6 | 7 | export default MyApp 8 | -------------------------------------------------------------------------------- /packages/website/styles/globals.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap'); 2 | 3 | * { 4 | font-family: 'Inter', sans-serif; 5 | } 6 | 7 | @tailwind base; 8 | @tailwind components; 9 | @tailwind utilities; 10 | -------------------------------------------------------------------------------- /packages/website/.codepal/templates/default.md: -------------------------------------------------------------------------------- 1 | You are a briliant coding assistent. 2 | 3 | This the website for Codepal - a command line tool with a chat interface that helps developers write code, built on top of GPT-3 and ChatGPT. 4 | 5 | The website built with next.js with tailwindcss. 6 | -------------------------------------------------------------------------------- /packages/website/tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | module.exports = { 3 | content: [ 4 | "./pages/**/*.{js,ts,jsx,tsx}", 5 | "./components/**/*.{js,ts,jsx,tsx}", 6 | ], 7 | theme: { 8 | extend: {}, 9 | }, 10 | plugins: [], 11 | } 12 | -------------------------------------------------------------------------------- /packages/website/components/Hero.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | const Hero = ({ title, subTitle }) => ( 4 |
5 |
6 |

{title}

7 |

{subTitle}

8 |
9 |
10 | ) 11 | 12 | export default Hero -------------------------------------------------------------------------------- /packages/website/components/Footer.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | const Footer = ({ year }) => ( 4 | 7 | ) 8 | 9 | Footer.defaultProps = { 10 | year: new Date().getFullYear(), 11 | } 12 | 13 | export default Footer 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | node_modules 3 | .pnp 4 | .pnp.js 5 | 6 | # testing 7 | coverage 8 | 9 | # next.js 10 | .next 11 | out 12 | 13 | # production 14 | build 15 | 16 | # misc 17 | .DS_Store 18 | *.pem 19 | 20 | # debug 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | .pnpm-debug.log* 25 | 26 | # local env files 27 | .env 28 | .env*.local 29 | 30 | # vercel 31 | .vercel 32 | 33 | # typescript 34 | *.tsbuildinfo 35 | next-env.d.ts 36 | -------------------------------------------------------------------------------- /packages/website/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "website", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "dev": "next dev", 7 | "build": "next build", 8 | "start": "next start", 9 | "lint": "next lint" 10 | }, 11 | "dependencies": { 12 | "eslint": "8.29.0", 13 | "eslint-config-next": "13.0.6", 14 | "next": "13.0.6", 15 | "react": "18.2.0", 16 | "react-dom": "18.2.0" 17 | }, 18 | "devDependencies": { 19 | "autoprefixer": "^10.4.13", 20 | "postcss": "^8.4.19", 21 | "tailwindcss": "^3.2.4", 22 | "codepal": "*" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /packages/website/pages/index.js: -------------------------------------------------------------------------------- 1 | import Head from 'next/head'; 2 | import Hero from '../components/Hero'; 3 | import Footer from '../components/Footer'; 4 | 5 | const IndexPage = () => { 6 | const year = new Date().getFullYear(); 7 | 8 | return ( 9 | <> 10 | 11 | Codepal - A Command Line Tool with Chat Interface 12 | 13 | 14 |
15 |

Codepal is a command line tool with a chat interface that helps developers write code, built on top of GPT-3 and ChatGPT.

16 |
17 |