This document lists all dependencies used in the GreenPlate frontend project.
These packages are required for the application to run:
| Package | Version | Purpose |
|---|---|---|
react |
^18.2.0 | Core React library for building UI |
react-dom |
^18.2.0 | React renderer for web applications |
| Package | Version | Purpose |
|---|---|---|
framer-motion |
^11.0.0 | Animation library for smooth transitions and interactions |
lucide-react |
^0.300.0 | Beautiful, consistent icon library |
| Package | Version | Purpose |
|---|---|---|
@google/generative-ai |
^0.21.0 | Google Gemini AI SDK for food image analysis |
These packages are only needed during development:
| Package | Version | Purpose |
|---|---|---|
vite |
^5.0.8 | Fast build tool and development server |
@vitejs/plugin-react |
^4.2.1 | Vite plugin for React support |
| Package | Version | Purpose |
|---|---|---|
typescript |
^5.2.2 | TypeScript compiler |
@types/react |
^18.2.43 | Type definitions for React |
@types/react-dom |
^18.2.17 | Type definitions for React DOM |
| Package | Version | Purpose |
|---|---|---|
tailwindcss |
^3.4.0 | Utility-first CSS framework |
autoprefixer |
^10.4.16 | Adds vendor prefixes to CSS |
postcss |
^8.4.32 | CSS transformation tool |
| Package | Version | Purpose |
|---|---|---|
eslint |
^8.55.0 | JavaScript/TypeScript linter |
@typescript-eslint/eslint-plugin |
^6.14.0 | TypeScript rules for ESLint |
@typescript-eslint/parser |
^6.14.0 | TypeScript parser for ESLint |
eslint-plugin-react-hooks |
^4.6.0 | React Hooks rules for ESLint |
eslint-plugin-react-refresh |
^0.4.5 | React Fast Refresh rules for ESLint |
- Production Dependencies: 5 packages
- Development Dependencies: 14 packages
- Total: 19 direct dependencies
- All Packages (including transitive): 254+ packages
npm outdatednpm updatenpm update <package-name>npm install <package-name>@latestnpm auditnpm audit fixnpm audit fix --force- React - The core UI library, chosen for its component-based architecture and large ecosystem
- Vite - Modern build tool that's faster than traditional bundlers like Webpack
- TypeScript - Adds type safety to catch errors during development
- Tailwind CSS - Utility-first CSS framework for rapid UI development
- Framer Motion - Industry-standard animation library with declarative API
- Lucide React - Modern icon library with tree-shaking support
- Google Generative AI - Official Google SDK for AI features
We use caret (^) version ranges, which means:
^18.2.0allows updates to18.x.xbut not19.0.0- This provides a good balance between stability and getting bug fixes
Some packages have peer dependencies that are automatically installed:
- React plugins require React and React DOM
- ESLint plugins require ESLint
- ✅ React 18 with Concurrent Features
- ✅ TypeScript for type safety
- ✅ Tailwind CSS for utility-first styling
- ✅ Smooth animations with Framer Motion
- ✅ Modern icons with Lucide
- ✅ AI-powered food analysis with Google Gemini
- ✅ Fast development server with HMR
- ✅ Code quality checks with ESLint
Currently there are 2 moderate severity vulnerabilities reported by npm audit. These are in development dependencies and do not affect the production build. We're monitoring these and will update when patches are available.
To view details:
npm audit