Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 MindMeld - AI-Powered Idea Clarifier

Transform your messy thoughts into clear, structured project outlines using AI. Users can either type or speak their ideas, and MindMeld uses the Google Gemini API to return a complete project plan with name, description, features, tech stack, and roadmap.

πŸš€ Live Demo

πŸ”— Try MindMeld Live (Deploy to see live demo)

MindMeld Demo

✨ Features

  • πŸŽ™οΈ Voice or text input - Speak your ideas naturally or type them out
  • 🧠 Gemini-powered parsing - Uses Google's Gemini Pro to understand and structure ideas
  • πŸ“‹ Complete project outlines - Get project name, description, features, tech stack, and roadmap
  • πŸ’‘ Smart suggestions - AI recommends appropriate technologies and tools
  • πŸ—ΊοΈ Development roadmap - Step-by-step plan to bring your idea to life
  • πŸ“± Modern responsive design - Beautiful, clean interface that works on all devices
  • ✨ Smooth animations - Typewriter effects, staggered loading, and micro-interactions
  • πŸ”„ Export functionality - Download your project plan as a text file
  • 🌐 Web Speech API - Native browser voice recognition (no external dependencies)

πŸš€ Quick Start

Prerequisites

  • Node.js (v14 or higher)
  • Google Gemini API key (Get one here)

Installation

  1. Clone or download this project

  2. Install dependencies:

    npm install
  3. Set up your Gemini API key:

    • Copy .env.example to .env
    • Get your API key from Google AI Studio
    • Replace your_gemini_api_key_here with your actual API key
    # Copy the example file
    cp .env.example .env
    # Then edit .env with your API key
  4. Start the development server:

    npm run dev
  5. Open your browser and go to:

    http://localhost:5000
    

🎯 How to Use

  1. Enter your idea - Type in the text area or click the microphone to speak
  2. Click "Clarify My Idea" - Let AI process your thoughts
  3. Get your structured plan - Receive a complete project outline with:
    • Creative project name
    • Clear description
    • Core features list
    • Suggested tech stack
    • Step-by-step roadmap
  4. Export or share - Download as text file or share with others

Example Ideas to Try

  • "I want to build an app that helps roommates manage chores without nagging each other"
  • "Create a platform where people can share and discover local hiking trails"
  • "Build a tool that automatically generates workout plans based on available equipment"
  • "Make an app that helps parents track their kids' allowance and chores"

πŸ—οΈ Project Structure

mindmeld/
β”œβ”€β”€ client/                 # Frontend files
β”‚   β”œβ”€β”€ index.html         # Main HTML page
β”‚   β”œβ”€β”€ style.css          # Styles and animations
β”‚   └── script.js          # Frontend JavaScript logic
β”œβ”€β”€ server/                # Backend files
β”‚   └── app.js            # Express server with OpenAI integration
β”œβ”€β”€ .env                  # Environment variables (API keys)
β”œβ”€β”€ .github/              # GitHub configuration
β”‚   └── copilot-instructions.md
β”œβ”€β”€ package.json          # Node.js dependencies and scripts
└── README.md            # This file

πŸ› οΈ Technology Stack

Frontend

  • HTML5 - Semantic markup and structure
  • CSS3 - Modern styling with animations and gradients
  • Vanilla JavaScript - No frameworks, pure JS for simplicity
  • Web Speech API - Browser-native voice recognition
  • Font Awesome - Icons and visual elements

Backend

  • Node.js - JavaScript runtime
  • Express.js - Web framework for APIs
  • OpenAI SDK - Official OpenAI API client
  • CORS - Cross-origin resource sharing
  • dotenv - Environment variable management

AI Integration

  • OpenAI GPT-4 - Large language model for idea processing
  • Structured prompts - Carefully crafted prompts for consistent output
  • JSON parsing - Reliable structured data extraction

πŸ”§ API Endpoints

POST /api/generate

Processes a raw idea and returns a structured project plan.

Request:

{
  "input": "I want to build an app that helps roommates manage chores"
}

Response:

{
  "project_name": "ChorePal",
  "description": "An app that helps roommates manage and automate household chores collaboratively and fairly.",
  "features": [
    "Automated chore assignment with fairness algorithm",
    "Task reminders without direct messaging",
    "Shared calendar and notifications",
    "Optional gamification"
  ],
  "tech_stack": ["React", "Firebase", "OpenAI API"],
  "roadmap": [
    "Design input UI",
    "Build chore assignment logic",
    "Add notification system",
    "Integrate user accounts and sharing",
    "Polish UI/UX"
  ]
}

GET /api/health

Health check endpoint to verify the API is running.

🎨 Customization

Modifying the AI Prompt

Edit the prompt in server/app.js to change how ideas are processed:

const prompt = `Turn this unstructured idea into a structured plan:
Input: "${inputText}"

Respond with a JSON object containing:
// ... customize the structure here
`;

Styling Changes

All styles are in client/style.css. The design uses:

  • CSS Grid and Flexbox for layout
  • CSS custom properties for theming
  • Smooth animations and transitions
  • Mobile-first responsive design

Adding New Features

The modular structure makes it easy to add features:

  • Frontend logic in client/script.js
  • Backend routes in server/app.js
  • Styling in client/style.css

πŸš€ Deployment Options

Option 1: Railway (Recommended)

Deploy on Railway

  1. Click the Railway deploy button
  2. Set your GEMINI_API_KEY environment variable
  3. Deploy and enjoy!

Option 2: Vercel

  1. Fork this repository
  2. Connect your GitHub to Vercel
  3. Set environment variables in Vercel dashboard
  4. Deploy automatically on push

Option 3: Heroku

# Install Heroku CLI and login
heroku create your-mindmeld-app
heroku config:set GEMINI_API_KEY=your_api_key_here
git push heroku main

Option 4: DigitalOcean App Platform

  1. Create a new app from GitHub
  2. Configure environment variables
  3. Set build command: npm install
  4. Set run command: npm start

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit changes: git commit -m 'Add amazing feature'
  4. Push to branch: git push origin feature/amazing-feature
  5. Open a Pull Request

πŸ“ Development Scripts

# Start development server with auto-reload
npm run dev

# Start production server
npm start

# Run tests (when implemented)
npm test

πŸ” Environment Variables

Create a .env file in the root directory with the following variables:

Variable Description Required Example
GEMINI_API_KEY Your Google Gemini API key Yes AIzaSyAbc123...
PORT Server port (default: 5000) No 5000

Getting your Gemini API Key:

  1. Go to Google AI Studio
  2. Create a new API key
  3. Copy the key to your .env file

πŸ› Troubleshooting

"OpenAI API key not configured"

  • Make sure you've added your API key to the .env file
  • Verify the key starts with sk-
  • Restart the server after adding the key

Voice recognition not working

  • Voice input only works in modern browsers
  • Requires HTTPS in production
  • Check browser permissions for microphone access

API calls failing

  • Check your OpenAI account has available credits
  • Verify your API key is valid and active
  • Check network connectivity

πŸ“„ License

MIT License - see LICENSE file for details.

πŸ™ Acknowledgments

  • OpenAI for the powerful GPT-4 API
  • The Web Speech API for voice recognition
  • Font Awesome for beautiful icons

Made with ❀️ for creators, students, and builders who want to turn ideas into reality.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages