44 | GitHub README AI Generator
45 | Let OpenAI generate a personalized GitHub Profile README for you
46 |
47 | setUserName(e.target.value)}
51 | className="input"
52 | placeholder="Enter your GitHub username"
53 | disabled={hasStarted}
54 | />
55 |
62 |
63 | {data && data.result && (
64 |
67 | )}
68 |
69 | );
70 | }
71 |
--------------------------------------------------------------------------------
/completed/next.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('next').NextConfig} */
2 | const nextConfig = {
3 | experimental: {
4 | appDir: true,
5 | },
6 | }
7 |
8 | module.exports = nextConfig
9 |
--------------------------------------------------------------------------------
/completed/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "defer-openai-github-profile",
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 | "@defer/client": "^1.1.0",
13 | "@octokit/graphql": "^5.0.5",
14 | "@types/node": "18.14.6",
15 | "@types/react": "18.0.28",
16 | "@types/react-dom": "18.0.11",
17 | "encoding": "^0.1.13",
18 | "eslint": "8.35.0",
19 | "eslint-config-next": "13.2.3",
20 | "next": "13.2.3",
21 | "openai": "^3.2.1",
22 | "react": "18.2.0",
23 | "react-dom": "18.2.0",
24 | "react-query": "^3.39.3",
25 | "typescript": "4.9.5"
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/completed/public/next.svg:
--------------------------------------------------------------------------------
1 |