SahinurDEV/easy-quick-form
À propos
Open-source, self-hostable drag-and-drop form builder — a free Google Forms / Typeform alternative built with React, TypeScript, Express and MongoDB.
Développement web et applicatifWhat you can do
- 🔐 Sign in with Google (Google-only auth; no passwords to manage), backed by JWT access tokens and refresh tokens with reuse detection and rotation.
- 🚪 Logout and delete account.
- 🖼️ Profile-picture upload with drag-and-drop and cropping.
- 🧱 Drag-and-drop form builder with many element types.
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalEasy Quick Form
Open-source, self-hostable drag-and-drop form builder — a free Google Forms / Typeform alternative built with React, TypeScript, Express and MongoDB.
🚀 Live demo · ⚡ Quick start · 📚 API docs · 🤝 Contribute
⭐ If Easy Quick Form is useful to you, please star the repo — it helps other developers find it and keeps the project going.
Why Easy Quick Form?
- Own your data — self-host it with one
docker compose up; responses live in your MongoDB. - Free and MIT-licensed — no response limits, no paywalled field types.
- A real-world full-stack TypeScript reference — Google sign-in with refresh-token rotation, shared Zod schemas between client and server, TanStack Query/Table, dnd-kit, Tiptap, Swagger docs, Vitest + Supertest tests and CI. Great for learning the MERN stack.
| Easy Quick Form | Google Forms | Typeform | |
|---|---|---|---|
| Open source (MIT) | ✅ | ❌ | ❌ |
| Self-hostable (Docker) | ✅ | ❌ | ❌ |
| Drag-and-drop builder | ✅ | ✅ | ✅ |
| Responses stored in your own DB | ✅ | ❌ | ❌ |
| Free, unlimited responses | ✅ | ✅ | ❌ |
⚡ Quick start
git clone https://github.com/SahinurDEV/easy-quick-form.git
cd easy-quick-form
docker compose up --build # MongoDB + API + client → http://localhost:8080
You need a Google OAuth client ID for sign-in — see Getting started for the full setup without Docker.
Features
- 🔐 Sign in with Google (Google-only auth; no passwords to manage), backed by JWT access tokens and refresh tokens with reuse detection and rotation.
- 🚪 Logout and delete account.
- 🖼️ Profile-picture upload with drag-and-drop and cropping.
- 🧱 Drag-and-drop form builder with many element types.
- 🔎 Full CRUD and search over forms.
- 📊 Form submission and response viewing.
- 🧰 Rich form elements — WYSIWYG editor, calendar, date-range picker, and more.
- 🪵 Centralized error logging and consistent error handling / user feedback.
Note: profile pictures are uploaded to ImgBB when
IMGBB_API_KEYis set, otherwise to Cloudinary when theCLOUDINARY_*env vars are set, and otherwise to the server's local disk (fine for local development). On Vercel, avatar uploads return503unless ImgBB or Cloudinary is configured.
Tech stack
| Layer | Technologies |
|---|---|
| Frontend | React, TypeScript, Tailwind, ShadcnUI, React Hook Form, Zod, React Router, DND Kit, TanStack Query/Table, Tiptap, React Dropzone, React Easy Crop, Zustand |
| Backend | Node, Express, TypeScript, Mongoose, Google OAuth, Multer, Sharp, JWT |
| Database | MongoDB |
| Shared | Zod validation schemas reused across client and server |
Project structure
This is a pnpm workspace monorepo:
easy-quick-form/
├── client/ # React + Vite frontend
├── server/ # Express + TypeScript API
└── packages/
└── validation/ # Shared Zod schemas (used by client and server)
Getting started
Prerequisites
Node.js 18+
pnpm — enable via Corepack (ships with Node 16.13+):
corepack enable…or install globally:
npm install -g pnpmA MongoDB database — e.g. a free MongoDB Atlas cluster.
A Google OAuth client (Google Cloud Console → APIs & Services → Credentials → OAuth client ID, type "Web application"). Add
http://localhost:4400(andhttp://localhost:8080for Docker) as Authorized JavaScript origins; no redirect URIs are needed. Sign-in is Google-only, so this is required.
Setup
Clone and install
git clone https://github.com/SahinurDEV/easy-quick-form.git cd easy-quick-form pnpm installBuild the shared validation package (required before the first run — both apps depend on it)
pnpm -F @form-builder/validation buildConfigure environment variables. Copy each example file and fill it in:
cp server/.env.example server/.env cp client/.env.example client/.envRun everything (client + server together)
pnpm devThe client runs on
http://localhost:4400and the API onhttp://localhost:8000.
With Docker
Bring up the whole stack (MongoDB + API + client) with one command:
docker compose up --build
The client is served on http://localhost:8080, the API on http://localhost:8000.
Override secrets (JWT, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET) via a root .env file or your shell.
Testing
pnpm -F @form-builder/server test # API/auth integration tests (Vitest + Supertest)
pnpm -F @form-builder/client test # component tests (Vitest + Testing Library)
API documentation
Interactive Swagger UI is served by the API at /api/docs (e.g.
http://localhost:8000/api/docs).
Scripts
Run from the repo root:
| Command | Description |
|---|---|
pnpm dev |
Start the client and server in watch mode |
pnpm build |
Build all workspace packages |
pnpm preview |
Preview the production builds |
Deploying to Vercel
The live demo runs as two Vercel projects built from this monorepo (both are connected
to the GitHub repo, so every push to main redeploys them):
| Project | Root directory | What it is |
|---|---|---|
easy-quick-form |
client |
Vite static build; client/vercel.json adds the SPA fallback rewrite to index.html |
easy-quick-form-api |
server |
Express app as a single serverless function (server/api/index.js); server/vercel.json rewrites every path to it |
Both projects use Node.js 24.x, keep "Include files outside the root directory"
enabled (the shared packages/validation lives outside them), and install from the
workspace root with pnpm. The build commands compile @form-builder/validation first.
How the API runs serverless:
server/api/index.jsreuses the compiled Express app (dist/app.js) without callingapp.listen, and caches the MongoDB connection across warm invocations (server/src/utils/db.ts).pnpm dev/ Docker still startsrc/server.tsas before.trust proxyis enabled on Vercel so rate limiting sees the real client IP.- The refresh-token cookie is
SameSite=None; Secure, so it works across the two domains. - Swagger UI's static assets are copied into the static output at build time
(
server/scripts/copy-swagger-assets.js).
Environment variables:
- API:
DATABASE,ACCESS_TOKEN_SECRET,REFRESH_TOKEN_SECRET,NODE_ENV=production,CLIENT_URL(the client origin, for CORS),GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET(required: sign-in is Google-only). Optional:IMGBB_API_KEYorCLOUDINARY_*(avatar uploads; without them uploads answer503). TheSMTP_*variables are no longer used. - Client:
VITE_BACKEND_BASE_URL(e.g.https://<api-domain>/api/v1),VITE_SECRET_KEY, andVITE_GOOGLE_CLIENT_ID(same value asGOOGLE_CLIENT_ID).VITE_*values are baked into the public JS bundle, so never put real secrets in them.
To deploy your own copy: create the two projects with the root directories above, set the
env vars, then run vercel deploy --prod from the repo root (or push to the connected repo).
API reference
Base path: /api/v1
Auth
| Method | Endpoint |
|---|---|
| POST | /auth/google |
| GET | /auth/refresh |
| GET | /auth/logout |
Sign-in is Google-only: the former email/password endpoints (/auth/signup, /auth/login,
/auth/forgot-password, /auth/reset-password/:token, /user/change-password) return
410 Gone.
User
| Method | Endpoint |
|---|---|
| GET | /user/profile |
| PATCH | /user/profile |
| DELETE | /user/delete-account |
Forms
| Method | Endpoint |
|---|---|
| GET | /forms?page=0&pageSize=10&sort=-name&search=form |
| GET | /forms/:id |
| POST | /forms |
| PATCH | /forms/:id |
| PATCH | /forms/bulk-delete |
| DELETE | /forms/:id |
Form responses
| Method | Endpoint |
|---|---|
| GET | /forms/:id/responses |
| POST | /forms/:id/responses |
Roadmap
Ideas we'd love help with (see the good first issues):
- Export responses to CSV
- Dark mode
- Form templates (contact, feedback, event registration, quiz)
- Conditional logic (show a field based on a previous answer)
- Email/webhook notifications on new responses
- Response analytics charts
- Embeddable forms (
<iframe>/ script snippet) - i18n
Have another idea? Open a feature request.
Contributing
Contributions are welcome! Please read CONTRIBUTING.md for the development workflow and guidelines, and our Code of Conduct.
Contributors
Star history
Security
Found a vulnerability? Please see SECURITY.md for how to report it responsibly.
License
Distributed under the MIT License.
Explorer des projets similaires
Chargement…