How brdebr/chatbot-form-filler works
Project type and purpose
• This is a full‑stack Next.js 13 “app router” application (a POC) whose goal is to render a chat‑based form‑filling UI in the browser and back it with two serverless API routes:
• /api/chatbot – orchestrates calls to an LLM or chatbot service for generating form inputs.
• /api/version‑deployed – returns the currently deployed version.
File structure
• Top level config files (tsconfig.json, next.config.mjs, tailwind.config.ts) and package.json define the build and runtime.
• app/ – Next.js “app” directory containing layouts, pages, providers, components, hooks, styles, and two API route folders (chatbot and version‑deployed).
• components/ui/ – shared UI primitives (Button, Card, Input, Select, Skeleton) used by pages under app/components.
• app/store/ – client‑side state slice (e.g. form store).
• lib/ – utility hooks (useDarkMode) and helper functions.
• public/ and docs/ – static assets (demo gif).
README for additional insights
• Emphasis on a single‑page frontend served by Next.js and two minimal API endpoints.