DEV Community

Cover image for Scrapify.ai
YOGARATHNAM-S
YOGARATHNAM-S Subscriber

Posted on

Scrapify.ai

๐ŸŒฑ Scrapify.AI

AI-powered waste analysis and scrap donation platform to protect the environment

๐Ÿš€ Overview

Scrapify.AI is a modern web application that combines artificial intelligence with environmental sustainability. It helps users identify recyclable materials through AI-powered image analysis and facilitates scrap material donations through a community-driven platform.

โœจ Features

๐Ÿค– AI Waste Analyzer

  • Smart Image Recognition: Upload photos of items to instantly determine if they're recyclable
  • Detailed Analysis: Get comprehensive waste type, sustainability, and recyclability ratings
  • Google Gemini Integration: Powered by Google's advanced AI for accurate results
  • Drag & Drop Interface: Easy-to-use file upload with instant preview

๐Ÿค Scrap Donation Platform

  • Community Marketplace: Browse and discover available scrap materials from donors
  • Easy Donation Process: List your scrap materials with AI-powered categorization
  • Location-Based Listings: Find donors and materials in your area
  • Material Categories: Support for metals, plastics, paper, electronics, and more

๐ŸŽจ Modern User Experience

  • Responsive Design: Works seamlessly on desktop, tablet, and mobile devices
  • Clean Interface: Intuitive design with smooth animations and transitions
  • Real-time Updates: Instant feedback and loading states
  • Accessibility: Built with accessibility best practices

๐Ÿ› ๏ธ Technology Stack

  • Frontend: Next.js 15.1.6, React 19, TailwindCSS
  • UI Components: Lucide React icons, Styled Components
  • File Handling: React Dropzone
  • AI Integration: Google Gemini 2.0 Flash API
  • Deployment: Vercel-ready configuration

๐Ÿ“ฆ Installation

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Google AI API key

Setup Instructions

  1. Clone the repository
   git clone https://github.com/YOGARATHNAM-S/Scrapify.AI.git
   cd Scrapify.AI
Enter fullscreen mode Exit fullscreen mode
  1. Install dependencies
   npm install
Enter fullscreen mode Exit fullscreen mode
  1. Environment Configuration

Create a .env.local file in the root directory:

   NEXT_PUBLIC_GOOGLE_API_KEY=your_google_ai_api_key_here
Enter fullscreen mode Exit fullscreen mode

To get your Google AI API key:

  • Visit Google AI Studio
  • Create a new project and generate an API key
  • Enable the Generative Language API
  1. Run the development server
   npm run dev
Enter fullscreen mode Exit fullscreen mode
  1. Open your browser

Navigate to http://localhost:3000

๐Ÿš€ Usage

AI Waste Analyzer

  1. Navigate to the AI Waste Analyzer page
  2. Upload an image by dragging and dropping or clicking to select
  3. Analyze - Click the "Analyze Image" button
  4. Review the AI-generated results including:
    • Waste type identification
    • Sustainability rating
    • Recyclability score
    • Disposal recommendations

Scrap Donation Platform

  1. Browse existing donations on the main donation page
  2. View Details - Click on any donation to see more information
  3. Add Donation - Use the form to list your own scrap materials:
    • Upload an image of your scrap
    • AI will automatically categorize the material
    • Add description and location details
    • Submit to make it available to the community

๐Ÿ“ Project Structure

Scrapify.AI/
โ”œโ”€โ”€ app/                    # Next.js app directory
โ”‚   โ”œโ”€โ”€ page.js            # Homepage
โ”‚   โ”œโ”€โ”€ layout.js          # Root layout
โ”‚   โ”œโ”€โ”€ globals.css        # Global styles
โ”‚   โ”œโ”€โ”€ scanner/           # AI waste analyzer
โ”‚   โ”‚   โ””โ”€โ”€ page.jsx
โ”‚   โ””โ”€โ”€ donation/          # Scrap donation platform
โ”‚       โ””โ”€โ”€ page.jsx
โ”œโ”€โ”€ components/            # Reusable React components
โ”‚   โ”œโ”€โ”€ Card.jsx          # Feature cards
โ”‚   โ”œโ”€โ”€ CustomButton.jsx  # Styled buttons
โ”‚   โ””โ”€โ”€ Navbar.jsx        # Navigation component
โ”œโ”€โ”€ public/               # Static assets
โ”‚   โ”œโ”€โ”€ scrap*.jpg       # Sample scrap images
โ”‚   โ””โ”€โ”€ *.svg           # Icons and logos
โ”œโ”€โ”€ package.json         # Dependencies and scripts
โ”œโ”€โ”€ tailwind.config.mjs  # TailwindCSS configuration
โ”œโ”€โ”€ next.config.mjs      # Next.js configuration
โ””โ”€โ”€ README.md           # Project documentation
Enter fullscreen mode Exit fullscreen mode

๐Ÿ”ง Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm start - Start production server
  • npm run lint - Run ESLint

๐ŸŒ Environmental Impact

Scrapify.AI contributes to environmental sustainability by:

  • Reducing Waste: Helping users identify recyclable materials
  • Promoting Reuse: Facilitating donation and exchange of scrap materials
  • Education: Providing detailed information about waste management
  • Community Building: Connecting people interested in sustainable practices

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

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

Development Guidelines

  • Follow the existing code style and conventions
  • Write clear commit messages
  • Test your changes thoroughly
  • Update documentation as needed

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘ฅ Team

๐Ÿ”ฎ Future Enhancements

  • [ ] User authentication and profiles
  • [ ] Advanced filtering and search for donations
  • [ ] Mobile app development
  • [ ] Integration with local recycling centers
  • [ ] Gamification with sustainability points
  • [ ] Multi-language support
  • [ ] Real-time chat between donors and recipients

๐Ÿ“ž Support

If you encounter any issues or have questions:

๐Ÿ™ Acknowledgments

  • Google AI for providing the Gemini API
  • The open-source community for the amazing tools and libraries
  • Environmental organizations inspiring sustainable technology solutions

Made with ๐Ÿ’š for a sustainable future

Top comments (0)