Build your next big project using AI.
Neura AI is an innovative Angular 20+ application designed to empower users to generate dynamic Next.js project structures, components, and content ideas using the power of Google Gemini AI. With a rich set of over 50 advanced features, an aesthetic dark and vibrant theme, and engaging animations, this tool transforms your project vision into a tangible Next.js codebase blueprint with unparalleled ease, ready for Vercel deployment.
Define your project's unique requirements through a comprehensive form, and let the AI craft a responsive, modern, and engaging Next.js application outline tailored to your specifications. The application now features a multi-page structure, including a dedicated Home page for the generator, and legal pages for Terms of Service and Privacy Policy, accessible via elegant navigation.
This application leverages cutting-edge AI capabilities to offer a plethora of features, enabling detailed control over the generated Next.js project:
- Dynamic Next.js Project Type Generation: Choose from diverse project types like Marketing Site, E-commerce Store, Portfolio, SaaS Landing Page, Admin Dashboard, Community Forum, or News Blog.
- Industry/Niche Specific Code & Content: AI tailors code structure and content to your specified industry or niche.
- Target Audience Personalization: Code comments and content examples are adjusted to resonate with your intended target audience.
- Configurable Homepage Sections: Define the number of sections for your homepage (from 3 to 10), implemented as reusable React components.
- Generate Detailed Sample Content: Option to populate generated pages and components with illustrative sample text and data.
- Custom Key Page Selection: Select essential pages to be included in your Next.js
pages/directory (e.g., Home, About, Services, Contact, Blog, Products, FAQ, Gallery, Testimonials, Pricing, Dashboard). - Temperature Control (AI Creativity): Adjust the AI's creativity and randomness in its output (0.0 - 1.0).
- Top P Control (AI Diversity): Control the diversity of generated text/code (0.0 - 1.0).
- Top K Control (AI Focus): Limit the AI to choosing from the top K most likely tokens (1 - 100).
- Max Output Tokens: Specify the maximum length of the AI's response (1 - 4096 tokens).
- Thinking Budget: Fine-tune the AI's "thinking time" for
gemini-2.5-flashto reserve tokens for output (0 - 1000). - Custom System Instruction: Provide a custom role or overarching directive for the AI model to follow (e.g., "You are an expert Next.js developer").
- Google Search Grounding: Enable real-time Google Search capabilities for up-to-date information, with source URLs displayed for contextual Next.js features or libraries.
- Response Output Format: Choose between a detailed Markdown project description or a structured JSON object representing multiple Next.js project files.
- JSON File Structure Description: Describe the desired JSON output structure for the AI to follow (conditionally available, expecting
filePathandfileContentobjects).
- Primary Color Selection: Visually select your project's main brand color for Tailwind configuration and component styling.
- Accent Color Selection: Choose a complementary accent color for highlights and interactive elements in your Tailwind theme.
- Font Style Preference: Specify desired font styles (e.g., Inter, Roboto, Lora) for Google Fonts integration in
_app.tsxand Tailwind font classes. - Brand Tone Customization: Set the overall brand tone (Professional, Playful, Innovative, Minimalist, Luxurious, Friendly, Authoritative, Cutting-edge) to influence component design and content tone.
- Layout Preference: Select preferred structural layouts (Minimalist & Clean, Bold & Dynamic, Classic & Elegant, Component-driven) for page and component architecture.
- Icon Style Selection: Indicate preferred icon aesthetics (e.g., Lucide Icons, Heroicons, Radix Icons) for integration (e.g., React Icons, specific SVG components).
- Tailwind CSS Integration: The AI is instructed to generate Next.js components and pages using modern Tailwind CSS classes.
- Sophisticated Hover Animations: Automatically includes modern hover effects for interactive elements (buttons, links, cards, images) using Tailwind's JIT features.
- Smooth Transition Classes: Ensures fluid UI interactions with automatic Tailwind transition classes.
- Responsive Design (Default): The AI is instructed to generate inherently responsive Next.js structures, ensuring optimal viewing across devices using Tailwind's responsive utilities.
- Animation Intensity Preference: Specify desired animation style (Subtle, Moderate, Energetic, Interactive) for AI guidance, suggesting libraries like Framer Motion or simple CSS.
- Dark Theme Integration: The AI is prompted to generate components optimized for a dark theme by default, aligning with the Neura AI application itself.
- SEO Keyword Integration: Incorporate specific SEO keywords for better search engine visibility using
next/headornext-seo. - Customizable Call-to-Action (CTA): Define the text and link for compelling Call-to-Action React components.
- Testimonials Section: Include a configurable number of customer testimonial React components and data examples (1-5).
- Blog Post Section: Generate ideas, summaries, and dynamic pages (
pages/blog/[slug].tsx) for blog posts (1-5). - Custom Footer Content: Define specific text and links to be included in a reusable footer component.
- Image Generation Prompt: Dedicated field to guide the AI on types of image placeholders or descriptions for inclusion, utilizing
next/image. - Video Generation Prompt: Dedicated field to guide the AI on types of video placeholders or descriptions for inclusion.
- Generate Content Strategy: Option to ask AI for a brief content strategy within code comments for each major section or page.
- Include Structured Data: Option to ask AI to suggest Schema.org structured data markup within pages or a dedicated SEO component.
- AI Accessibility Audit Suggestions: The AI provides recommendations and implements ARIA attributes for improving website accessibility in generated JSX.
- AI Performance Optimization Tips: The AI offers insights and implements strategies for enhancing site loading speed and performance (e.g.,
next/image, data fetching methods). - Social Media Integration: Generates components for social media links and integration points.
- Contact Form Inclusion: Generates a basic structure for a contact form React component with a corresponding Next.js API route for submission.
- User Authentication Requirement: Option to specify if the generated project requires user login/authentication features, with boilerplate for
NextAuth.js. - Analytics Integration: Guidance or placeholders for integrating analytics platforms (e.g., Vercel Analytics, Google Analytics snippet in
_app.tsx). - Custom CSS Snippets: Allows users to inject custom CSS rules directly into
styles/globals.cssor component styles. - Custom JS Snippets: Allows users to inject custom JavaScript/TypeScript code into
_app.tsxor utility hooks. - Payment Gateway Integration (Stripe): AI can suggest and provide boilerplate code for Stripe payment gateway integration in an API route.
- CRM Integration Suggestions: AI can suggest CRM integrations (e.g., Salesforce, HubSpot) via API routes and webhook examples.
- Email Marketing Suggestions: AI can suggest email marketing platform integrations (e.g., Mailchimp, SendGrid) via API routes.
- Database Preference: Choose a database (PostgreSQL, MongoDB, SQLite) for the AI to generate relevant schema and basic CRUD API routes, along with an ORM setup (e.g., Prisma, Mongoose, Drizzle).
- Real-time Next.js Code Preview: Displays the generated Next.js code structure and content within an interactive iframe, formatted for readability.
- Interactive Scroll Animations: Utilizes Angular directives for smooth scroll-based content revealing (fade-in, translate-y) within the Neura AI app itself.
- Comprehensive Loading State: Provides clear visual feedback during the AI generation process.
- Robust Error Handling: Displays user-friendly messages for AI generation failures.
- Form Reset Functionality: Easily clear and revert all form inputs to their default values.
- Reactive Form Validation: Ensures data quality and guides user input with immediate feedback.
- Include Preloader: Option to include suggestions for a simple preloader/loading animation in the generated Next.js app.
- Include Cookie Consent: Option to include a cookie consent banner suggestion in the generated Next.js app.
- Multi-language Support (for Generated Content): Select the primary language for the generated Next.js content.
- Download Generated Content: New buttons to download the generated Next.js project files (as JSON) or Markdown description directly from the preview.
The application now features the following pages:
- Home: The main Neura AI Next.js Generator interface with the form and preview.
- Terms of Service: A dedicated page outlining the application's terms and conditions.
- Privacy Policy: A dedicated page explaining how user data is handled.
- Angular v20+: The powerful framework for building the Neura AI web application.
- TypeScript: Type-safe JavaScript for robust development.
- Tailwind CSS: A utility-first CSS framework for rapid and consistent styling, providing an aesthetic dark and vibrant theme for Neura AI.
- Google Gemini API (
@google/genai): Powers the AI Next.js code generation logic. - Signals: Angular's modern reactivity model for state management.
- Standalone Components: Modern Angular architecture for improved modularity.
- Angular Router: For seamless multi-page navigation within Neura AI.
Follow these steps to get Neura AI up and running on your local machine.
- Node.js (LTS version recommended)
- npm or yarn
- A Google Cloud Project with the Gemini API enabled.
- An API Key for the Google Gemini API.
git clone <(https://github.com/itriedcoding/ai-website-builder)>
cd neura-ai-nextjs-generatornpm install
# or
yarn installThe application expects the Gemini API key to be available via process.env.API_KEY.
You need to set this environment variable before running the application.
Local Development (Example with dotenv or direct export):
- Create a
.envfile in the root directory of your project. - Add your API key to this file:
(Note: For Applets environments,
API_KEY="YOUR_GEMINI_API_KEY_HERE"process.env.API_KEYis automatically provided. This step is mainly for local testing and development outside the Applets environment if you were to run it as a standard Angular app.)
Alternatively, you can export it directly in your terminal (for the current session):
export API_KEY="YOUR_GEMINI_API_KEY_HERE"Or, when running the npm start command:
API_KEY="YOUR_GEMINI_API_KEY_HERE" npm startnpm start
# or
yarn startThis will compile and launch the application. Open your browser and navigate to http://localhost:4200 (or the port specified in your terminal).
- Navigate the App: Use the header navigation to switch between the Home (Neura AI Generator), Terms of Service, and Privacy Policy pages.
- Configure Your Next.js Project (on Home page): Use the comprehensive form on the left side to define your project's type, industry, audience, design preferences (colors, fonts, layout, animation intensity), key pages, AI configuration, and advanced features.
- Input Your Vision: Provide a clear project idea or description.
- Click "Generate Next.js Project": The AI will process your inputs and generate either a comprehensive Markdown description of your project or a structured JSON output representing the project files.
- Preview and Refine: The generated content will appear in the preview pane on the right. You can download the generated Markdown or JSON, and review any Google Search sources. Refine your inputs in the form and regenerate to iterate on the project structure and code.
- Backend & Vercel: The AI will provide suggestions for backend integration (e.g., database setup, API routes) and considerations for easy deployment to Vercel.
We welcome contributions to Neura AI! Please refer to our Contribution Guidelines for more details on how to get involved.
This project is licensed under the MIT License. See the LICENSE file for details.
Built with 💙 by Your Name/Team Powered by Google Gemini
See CHANGELOG.md for detailed release notes.