AltImageOptimizer is a web-based application designed to optimize images for websites by automating the generation of SEO-friendly alt text and file names. Users can upload JPEG or PNG images along with contextual information. The application validates the file (checking extension, size, MIME type, and actual file size), generates AI-powered suggestions for alt text and file names, and saves each optimization action to a history tied to user accounts. This process streamlines image management while improving SEO, UX/UI, and accessibility compliance.
- Frontend: Astro 5, React 19, TypeScript 5, Tailwind CSS 4, Shadcn/ui
- Backend: Supabase (PostgreSQL, Authentication)
- AI Integration: OpenRouter.ai (access to models such as OpenAI, Anthropic, Google, etc.)
- Image Processing: Sharp (for image conversion to WebP, resizing, and quality optimization)
- CI/CD and Hosting: GitHub Actions, DigitalOcean (Docker)
- Testing:
- Unit/Integration: Vitest, React Testing Library
- E2E: Playwright
- Clone the repository:
git clone <repository-url> cd AltImageOptimizer
- Install dependencies:
npm install
- Ensure you are using the correct Node.js version:
This project requires Node.js version
22.14.0as specified in the.nvmrcfile. If you use nvm, run:nvm use
- Run the development server:
The application will be available at
npm run dev
http://localhost:3000.
npm run dev: Starts the development server.npm run build: Builds the application for production deployment.npm run preview: Serves the production build locally.npm run astro: Runs Astro commands.npm run lint: Analyzes the codebase for linting issues.npm run lint:fix: Automatically fixes linting issues.npm run format: Formats the codebase using Prettier.
AltImageOptimizer focuses on automating the process of image optimization through:
- Image Upload & Validation: Supporting JPEG and PNG files with initial file extension and size checks, followed by MIME type and actual file size validation.
- AI-Powered Suggestions: Generating SEO-friendly alt text and file name suggestions using AI.
- Optimization History: Saving each optimization action, enabling users to review, edit, and delete past optimizations.
- User Authentication: Tying each user's optimization history to their authenticated account.
The project is currently in its MVP stage. Core functionalities have been implemented, with ongoing improvements and future feature additions planned.
This project is licensed under the MIT License. See the LICENSE file for details.