Mosaic Maker is a privacy-focused, in-browser application that transforms source images into full-resolution photomosaics. All processing happens locally in your browser - your images never leave your device.
A photomosaic is a mosaic made up of small photographs, creating a larger composite image. Each small image (called a "tessera") contributes to forming the overall picture when viewed from a distance.
- Privacy First: All image processing happens in your browser, nothing is uploaded to any server
- Full Resolution Output: Generate high-quality mosaics that maintain the resolution of your source image
- Custom Tesserae: Upload your own images or generate random colored tesserae as building blocks
- Responsive Design: Works on desktop and mobile devices
- Export Options: Download your finished mosaic as a PNG image
You can try Mosaic Maker online at: https://alt-ctrl-dev.github.io/mosaic-maker/
Mosaic Maker follows a four-step workflow:
- Choose Source Image: Select the image you want to turn into a mosaic
- Build Tesserae: Upload or generate the small images that will form your mosaic
- Generate and Preview: Watch your mosaic come together in real-time
- Export Mosaic: Download your finished creation
# Clone the repository
git clone https://github.com/alt-ctrl-dev/mosaic-maker.git
cd mosaic-maker
# Install dependencies
pnpm install
# Start the development server
pnpm run devThe application will be available at http://localhost:5173 (or the port shown in your terminal).
# Build the application
pnpm run build
# The built files will be in the `dist` directorypnpm run dev- Start the development serverpnpm run build- Build the application for productionpnpm run test- Run the test suitepnpm run lint- Check code for linting issuespnpm run format- Check code formattingpnpm run typecheck- Run TypeScript type checkingpnpm run check- Run all checks (lint, format, test, typecheck)
src/
βββ components/ # React components for each step of the workflow
βββ engine/ # Core logic for image processing and mosaic generation
βββ hooks/ # Custom React hooks
βββ App.tsx # Main application component
βββ main.tsx # Application entry point
βββ styles/ # StyleX design tokens and shared styles
This project uses Vitest for testing with React Testing Library for component testing:
# Run all tests
pnpm run test
# Run tests in watch mode
pnpm exec vitest- React - UI library
- TypeScript - Type safety
- Vite - Build tool and development server
- StyleX - Shared component styling, alongside local layout CSS
- Vitest - Test runner
- GitHub Pages - Hosting for the demo
Mosaic Maker works in all modern browsers that support the following features:
- Canvas API
- File API
- Modern JavaScript (ES2017+)
Internet Explorer is not supported.
Contributions are welcome! Please feel free to submit a Pull Request.
Before submitting changes:
- Ensure all tests pass (
pnpm run test) - Check code formatting (
pnpm run format) - Run linting checks (
pnpm run lint) - Verify type checking (
pnpm run typecheck)
This project is licensed under the MIT License - see the LICENSE file for details.
Mosaic Maker does not collect, store, or transmit any personal data or images. All processing occurs locally in your browser, and images are never sent to any server.
However, to help us improve the application, we collect anonymous usage data when you opt-in. This includes:
- Performance metrics and page load times
- Feature usage statistics
- Error reports to help identify bugs
- Device information (browser type, screen resolution, etc.)
This telemetry is completely optional and can be disabled at any time using the checkbox in the footer. When disabled, no data is collected or transmitted.
We never collect:
- Your source images or tesserae
- Personal identification information
- File names or paths
- Content of any kind
All telemetry data is collected in accordance with our commitment to privacy and is used solely to improve the application experience.