A web-based tool for creating secure text overlays on confidential documents such as Personal Identification documents. This application applies customizable text masks that are difficult to remove while maintaining document readability for verification purposes.
When sharing sensitive documents (IDs, passports, etc.) for verification, you often need to protect confidential information while keeping the document readable. This tool provides a robust masking solution by overlaying text patterns on images that are integrated with the content, making them difficult to remove without damaging the underlying document.
- 🖼️ Drag & Drop Upload: Easy file upload with drag-and-drop support (PNG, JPG up to 10MB)
- 🔍 Advanced Preview Controls:
- Real-time canvas preview showing exactly what will be exported
- Zoom in/out (50%-300%) with pan/drag navigation
- Image rotation (90° increments) for orientation correction
- 📝 Text Customization:
- Custom text input with quick presets (CONFIDENTIAL, FOR VERIFICATION, SAMPLE, DRAFT)
- Font size control (12-72px)
- Color picker with presets (Black, White, Red) + custom colors
- 🎨 Watermark Patterns:
- Single Mode: Positioned watermark with X/Y offset control
- Diagonal Repeat Mode: Repeating pattern with customizable text gap
- ⚙️ Fine-tune Controls:
- Angle adjustment (-45° to 45°)
- Transparency/opacity control (0-100%)
- Text gap spacing (diagonal mode)
- X/Y offset positioning (single mode)
- 💾 Export Options: Download in PNG or JPG format
- 🔒 Privacy First: 100% client-side processing - your documents never leave your device
- 📱 Responsive Design: Mobile-friendly with bottom sheet controls on small screens
- 📱 PWA Support: Install as desktop/mobile app for offline use with zero data transfer
📋 Full Specifications: See .agent/SPECIFICATIONS.md for detailed feature specifications and implementation plan.
- Masking Personal Identification documents for online verification
- Protecting sensitive information in document uploads
- Creating watermarked copies of confidential documents
- Secure document sharing with visible authenticity markers
- Node.js 18+ installed
- npm, yarn, pnpm, or bun package manager
- Clone the repository
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser
- Upload a document image
- Configure the text overlay (content, style, position)
- Preview the masked document
- Download the final masked image
- Framework: Next.js with App Router
- Language: TypeScript
- Styling: Tailwind CSS 4
- UI Components: shadcn/ui (New York style)
- Icons: Lucide React
- Image Processing: Canvas API
- Testing: Vitest + Testing Library
- PWA: next-pwa
npm run dev- Start development servernpm run build- Build for productionnpm start- Run production build locallynpm run lint- Run ESLintnpm run typecheck- TypeScript type checkingnpm run test- Run testsnpm run test:coverage- Run tests with coverage report
All image processing is performed client-side in your browser. Your sensitive documents never leave your device, ensuring maximum privacy and security.
We welcome contributions! Please read our Contributing Guidelines before submitting pull requests.
This project follows Conventional Commits specification. Example:
git commit -m "feat(upload): add drag-and-drop support"
git commit -m "fix(overlay): correct text positioning"
git commit -m "docs: update README"
See CONTRIBUTING.md for detailed guidelines.
See .agent/README.md for detailed agent documentation and project structure.
See CHANGELOG.md for version history and release notes.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with Next.js ❤️