Lunox Forms is a powerful, self-hostable form builder built with Next.js, Prisma, and TailwindCSS. It allows you to create beautiful forms, collect responses, and manage data efficiently.
- Drag-and-Drop Builder: Create forms easily.
- AI generation: Generate forms with AI.
- Dashboard: View and manage form responses.
- Self-Hostable: Full control over your data.
- Dynamic Theming: Customizable visuals.
- Framework: Next.js 14+ (App Router & Pages Router)
- Database: PostgreSQL
- ORM: Prisma
- Auth: NextAuth.js
- Styling: TailwindCSS
- Language: TypeScript
- Node.js (v18 or higher)
- PostgreSQL database
- npm or pnpm
-
Clone the repository
git clone <your-repo-url> cd forms
-
Install dependencies
npm install # or pnpm install -
Environment Configuration Copy the example environment file and update it with your credentials:
cp .env.example .env
Update the following variables in
.env:DATABASE_URL: Your PostgreSQL connection string.NEXTAUTH_SECRET: Generate a random string (e.g.,openssl rand -base64 32).NEXTAUTH_URL&NEXT_PUBLIC_API_URL: Your application URL (e.g.,http://localhost:3000).NEXT_PUBLIC_APP_URL: The base URL for your application (used for email assets).SMTP_*: Email server details for sending magic links.GOOGLE_*: Google OAuth credentials (optional).
-
Database Setup Run the Prisma migrations to set up your database schema:
npx prisma generate npx prisma db push
-
Run the application
npm run dev
The app will be available at
http://localhost:3000.
- CORS: By default, CORS allows all origins. To restrict this, set the
ALLOWED_ORIGINSenvironment variable (comma-separated).
This project is licensed under a custom license by Lunox (Private) Limited. See the LICENSE file for details.