├── .eslintrc ├── .github └── workflows │ ├── ci.yml │ ├── release.canary.yml │ └── release.prod.yml ├── .gitignore ├── LICENSE ├── README.md ├── ava.config.mjs ├── next-env.d.ts ├── next.config.js ├── package.json ├── pnpm-lock.yaml ├── postcss.config.cjs ├── public ├── nextjs-openai-demo.gif └── vercel.svg ├── src ├── components │ ├── StreamingText │ │ └── index.tsx │ └── index.ts ├── globs │ ├── index.ts │ ├── node.ts │ └── shared.ts ├── hooks │ ├── index.ts │ ├── types.ts │ ├── useBuffer │ │ ├── index.ts │ │ └── state.ts │ └── useTextBuffer │ │ └── index.ts ├── index.css ├── index.ts └── pages │ ├── _app.tsx │ ├── api │ ├── chat.ts │ ├── completion.ts │ └── node.ts │ ├── completion.tsx │ ├── index.tsx │ └── node.tsx ├── tailwind.config.cjs ├── test └── example.test.ts ├── tsconfig.json └── typedoc.json /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.canary.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/.github/workflows/release.canary.yml -------------------------------------------------------------------------------- /.github/workflows/release.prod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/.github/workflows/release.prod.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/README.md -------------------------------------------------------------------------------- /ava.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/ava.config.mjs -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/postcss.config.cjs -------------------------------------------------------------------------------- /public/nextjs-openai-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/public/nextjs-openai-demo.gif -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/components/StreamingText/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/components/StreamingText/index.tsx -------------------------------------------------------------------------------- /src/components/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./StreamingText"; -------------------------------------------------------------------------------- /src/globs/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/globs/index.ts -------------------------------------------------------------------------------- /src/globs/node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/globs/node.ts -------------------------------------------------------------------------------- /src/globs/shared.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/globs/shared.ts -------------------------------------------------------------------------------- /src/hooks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/hooks/index.ts -------------------------------------------------------------------------------- /src/hooks/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/hooks/types.ts -------------------------------------------------------------------------------- /src/hooks/useBuffer/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/hooks/useBuffer/index.ts -------------------------------------------------------------------------------- /src/hooks/useBuffer/state.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/hooks/useBuffer/state.ts -------------------------------------------------------------------------------- /src/hooks/useTextBuffer/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/hooks/useTextBuffer/index.ts -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/index.css -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/api/chat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/pages/api/chat.ts -------------------------------------------------------------------------------- /src/pages/api/completion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/pages/api/completion.ts -------------------------------------------------------------------------------- /src/pages/api/node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/pages/api/node.ts -------------------------------------------------------------------------------- /src/pages/completion.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/pages/completion.tsx -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/pages/node.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/src/pages/node.tsx -------------------------------------------------------------------------------- /tailwind.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/tailwind.config.cjs -------------------------------------------------------------------------------- /test/example.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/test/example.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typedoc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpellcraftAI/nextjs-openai/HEAD/typedoc.json --------------------------------------------------------------------------------