• Home
  • About
  • Projects
  • Skills
  • Experience
Sharad

Building products that matter.

© 2026 Sharad. All rights reserved.

Back to Projects
View Live Project

AI-Powered Form Generator

A full-stack application to generate, build, publish, and collect submissions for forms using AI assistance.

Demo Video

demo

Tech Stack

  • Frontend: Next.js 15, TypeScript, Tailwind CSS, shadcn/ui, Recharts
  • Backend: Bun/Node, TypeScript, Express
  • Auth: JWT auth flow (client store + API)
  • Storage/Uploads: Cloudinary (configurable)

Monorepo Layout

  • frontend/ Next.js app (dashboard, form builder, public forms)
  • backend/ API server (auth, forms, submissions, upload)

Prerequisites

  • Node.js 18+ (and optionally Bun for backend)
  • pnpm or npm (either is fine; project includes lockfiles)
  • Cloudinary account (for uploads)

Setup

  1. Clone the repository
git clone <your-repo-url>
cd ai-powered-form-generator
  1. Install dependencies
# Frontend
cd frontend
pnpm install

# Backend
cd ../backend
bun install
  1. Environment variables

Frontend frontend/.env

NEXT_PUBLIC_API_BASE_URL=http://localhost:4000
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=<your-cloud-name>
NEXT_PUBLIC_CLOUDINARY_UPLOAD_PRESET=<optional-if-used>

Backend backend/.env

PORT=8080
JWT_SECRET=<strong-secret>
MONGODB_URI=<your-mongodb-connection-string>

# Cloudinary (if server-side signing is used)
CLOUDINARY_CLOUD_NAME=<your-cloud-name>
CLOUDINARY_API_KEY=<your-api-key>
CLOUDINARY_API_SECRET=<your-api-secret>

Frontend will be available at http://localhost:3000 and backend at http://localhost:8080.

  1. Run Application
# Frontend
cd frontend
pnpm run dev

# Backend
cd backend
bun dev

Using the App

  1. Sign up and log in

  2. Create a form via AI prompt

    • From the dashboard, click Create or use the AI prompt bar
    • Edit fields in the builder, preview, and save
  3. Publish and share

    • Toggle publish on a form to generate a public URL
    • Copy and share the link; submissions will appear in the dashboard

Example: Prompt → Form

Prompt:

Create a Generic Feedback Form.
alt text
alt text

Prompt:

create form for rspv registration.
alt text
alt text

Prompt:

I need a signup form with name, email, age, and profile picture.
alt text
alt text