{"id":34538414,"url":"https://github.com/yunkhngn/pixshade","last_synced_at":"2026-04-12T08:37:36.169Z","repository":{"id":328285515,"uuid":"1114929362","full_name":"yunkhngn/pixshade","owner":"yunkhngn","description":"Protect your images from AI training — A browser-based tool using Multi-Scale DCT perturbation and metadata obfuscation.","archived":false,"fork":false,"pushed_at":"2025-12-12T12:06:15.000Z","size":1887,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-12T08:37:34.825Z","etag":null,"topics":["imageprocessing","reactjs"],"latest_commit_sha":null,"homepage":"https://pixshade.yunkhngn.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yunkhngn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-12T05:06:46.000Z","updated_at":"2025-12-17T07:47:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/yunkhngn/pixshade","commit_stats":null,"previous_names":["yunkhngn/pixshade"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yunkhngn/pixshade","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunkhngn%2Fpixshade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunkhngn%2Fpixshade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunkhngn%2Fpixshade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunkhngn%2Fpixshade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yunkhngn","download_url":"https://codeload.github.com/yunkhngn/pixshade/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunkhngn%2Fpixshade/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31709294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["imageprocessing","reactjs"],"created_at":"2025-12-24T06:12:05.716Z","updated_at":"2026-04-12T08:37:36.162Z","avatar_url":"https://github.com/yunkhngn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PixShade\n\n**Protect your images from AI training** — A browser-based tool using Multi-Scale DCT perturbation and metadata obfuscation.\n\n## Features\n\n- **Drag-and-drop** or paste image URL\n- **Multi-Scale DCT Perturbation** - Add frequency-domain noise to disrupt AI\n- **Tiled Signature** - Deterministic digital signature for image authentication\n- **Metadata Poisoning** - Inject fake EXIF/XMP data\n- **Subtle Watermark** - Semi-transparent protective pattern (optional)\n  - Upload your own transparent PNG\n  - Adjustable opacity (5-50%)\n  - Default: \"© PixShade\" text\n- Beautiful pastel UI design\n- **100% Client-side** - No server uploads\n\n## Tech Stack\n\n- **React 18** + TypeScript\n- **Vite 7** for fast development\n- **TailwindCSS 4** for styling\n- **Framer Motion** for animations\n- **Lucide React** for icons\n- **Web Workers** for non-blocking processing\n\n## Protection Pipeline\n\n1. **Universal Perturbation** (Strong mode) - Adversarial pattern overlay\n2. **Multi-Scale DCT** - 16×16, 8×8, 4×4 block processing\n3. **Tiled Signature** - Deterministic mid-frequency patterns\n4. **Watermark** (Optional) - Semi-transparent tiled pattern\n5. **Split XMP Injection** - Fragmented metadata poisoning\n\n## Design System\n\n### Color Palette\n\n| Token | Value | Usage |\n|-------|-------|-------|\n| `cream` | `#FFF9F2` | Background |\n| `primary` | `#FFB86B` | Primary actions, accents |\n| `primary-600` | `#FF9F3B` | Hover states |\n| `accent-mint` | `#D6F0E0` | Secondary accent (Watermark) |\n| `accent-lavender` | `#F3D8F3` | Tertiary accent |\n| `neutral-600` | `#4B5563` | Body text |\n\n### Typography\n\n- **Display**: Poppins (headings)\n- **Body**: Inter (text, UI)\n\n### Shadows\n\n- `shadow-soft`: Subtle card elevation\n- `shadow-card`: Main card shadow\n- `shadow-glow`: Interactive glow effects\n\n## Getting Started\n\n```bash\n# Install dependencies\nnpm install\n\n# Start development server\nnpm run dev\n\n# Build for production\nnpm run build\n```\n\n## Project Structure\n\n```\nsrc/\n├── components/\n│   ├── Header.tsx         # Logo, headline, nav\n│   ├── DropzoneCard.tsx   # Main card with dropzone + controls\n│   ├── ExampleChips.tsx   # Sample image buttons\n│   ├── PreviewBox.tsx     # Before/after preview\n│   ├── FooterBar.tsx      # Privacy note, CTA\n│   ├── SupportBanner.tsx  # Buy me a coffee banner\n│   └── index.ts           # Barrel exports\n├── worker/\n│   ├── pixshadeWorker.ts  # Main worker entry\n│   ├── dct.ts             # DCT perturbation algorithms\n│   ├── watermark.ts       # Tiled watermark rendering\n│   ├── metadata.ts        # XMP injection\n│   ├── universal.ts       # Universal perturbation\n│   └── utils.ts           # PRNG, PSNR calculation\n├── lib/\n│   └── protection.ts      # Protection service API\n├── pages/\n│   └── HowItWorks.tsx     # Algorithm documentation\n├── App.tsx                # Main composition\n└── index.css              # Tailwind config\n```\n\n## API\n\n```typescript\ninterface ProtectionOptions {\n  intensity: number;        // 0-100\n  metadataPoisoning: boolean;\n  watermark?: {\n    enabled: boolean;\n    type: 'text' | 'image';\n    imageBitmap?: ImageBitmap;\n    opacity?: number;       // 0.0-1.0\n    scale?: number;\n  };\n}\n\nconst result = await protectImage(file, options);\n// result: { blob, url, size, processingTime, psnr }\n```\n\n## License\n\nMIT © [yunkhngn](https://github.com/yunkhngn)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunkhngn%2Fpixshade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyunkhngn%2Fpixshade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunkhngn%2Fpixshade/lists"}