InstaGift is an AI-powered gift recommendation system that analyzes Instagram profiles and images to suggest personalized gifts. Using OpenAI's GPT-4 and Vision models, it provides tailored gift suggestions based on interests, age, and budget.
- Instagram profile analysis
- Image-based interest detection
- Age-appropriate gift recommendations
- Budget-conscious suggestions
- Amazon and Etsy product links
- Festive holiday theme with snowflake animations
- Responsive design
- Frontend: Next.js 15.1, React 19, TailwindCSS
- Backend: Next.js API Routes
- AI: OpenAI GPT-4 and GPT-4 Vision
- Image Processing: Base64 encoding
- API Integration: Amazon and Etsy search links
- Clone the repository:
git clone https://github.com/yourusername/instagift.git
cd instagift
- Install dependencies:
npm install
- Set up environment variables:
cp .env.example .env
Then edit .env
with your API keys:
OPENAI_API_KEY=your_openai_api_key_here
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser
Create a .env.example
file in the root directory:
# OpenAI API Configuration
OPENAI_API_KEY=
# Optional: Instagram API (if using)
INSTAGRAM_API_KEY=
# Optional: Development Settings
NODE_ENV=development
Required environment variables:
OPENAI_API_KEY
: Your OpenAI API key for GPT-4 and Vision APIs
Optional environment variables:
INSTAGRAM_API_KEY
: For direct Instagram API integrationNODE_ENV
: Development/production environment setting
- Enter age and budget
- Upload an Instagram grid image or provide interests
- Submit the form
- View personalized gift recommendations
- Click through to Amazon or Etsy to purchase
src/
├── app/
│ ├── api/ # API routes
│ ├── gifts/ # Gift recommendation page
│ └── hidden/ # Instagram analysis features
├── components/ # Reusable components
└── utils/ # Utility functions
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
MIT License
- OpenAI for GPT-4 and Vision APIs
- Next.js team for the framework
- Vercel for hosting capabilities