{"_id":"@crazygl/hero-window-lens","name":"@crazygl/hero-window-lens","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@crazygl/hero-window-lens","version":"0.1.1","description":"Window Lens — A draggable OS-style window is a sharp 'lens' over an image or video: crisp inside the window, processed outside — pixelate, blur, black-&-white dither, ASCII, or none. Use a separate custom image for the… A customizable CrazyGL animated her","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./metadata.json":"./metadata.json","./style.css":"./style.css"},"dependencies":{"@crazygl/core":"^0.1.1"},"peerDependencies":{"react":">=18","react-dom":">=18"},"keywords":["window","macos","windows","retro","pixelate","ascii","dither","video","interactive","webgl","window-lens","crazygl","hero","hero-section","react","animation","ui","landing-page","frontend","component","canvas","three"],"license":"Apache-2.0","author":{"name":"ybouane"},"homepage":"https://crazygl.com/hero/window-lens","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-window-lens.git"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/crazygl-com/hero-window-lens/issues"},"gitHead":"91f1c93cd7db7a86f86b1e139a829d7bfbd9181f","_id":"@crazygl/hero-window-lens@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-j0cQypQed4PR8zPv+3oGLApuOEweBIAwGJkU58OPys8tHgvp3lFaLqlGaK9utkiBXFMBNLQYF6x6wBYemp4Hyw==","shasum":"4a8aedfd1c52a262a7be8d031135910ce2c958dc","tarball":"https://registry.npmjs.org/@crazygl/hero-window-lens/-/hero-window-lens-0.1.1.tgz","fileCount":9,"unpackedSize":61572,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFN3dd4Vf/0wDVTe7CPNeQht5dcmqF+1IVFcaS309ZjjAiEA5tHeg6ihGUprNz3tLJ7I1mS5DFDA9/yjIq2Jikzo7+I="}]},"_npmUser":{"name":"ybouane","email":"ybouane@ybouane.com"},"directories":{},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hero-window-lens_0.1.1_1782968948736_0.2122975198272825"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-02T05:09:08.631Z","0.1.1":"2026-07-02T05:09:08.888Z","modified":"2026-07-02T05:09:09.139Z"},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"description":"Window Lens — A draggable OS-style window is a sharp 'lens' over an image or video: crisp inside the window, processed outside — pixelate, blur, black-&-white dither, ASCII, or none. Use a separate custom image for the… A customizable CrazyGL animated her","homepage":"https://crazygl.com/hero/window-lens","keywords":["window","macos","windows","retro","pixelate","ascii","dither","video","interactive","webgl","window-lens","crazygl","hero","hero-section","react","animation","ui","landing-page","frontend","component","canvas","three"],"repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-window-lens.git"},"author":{"name":"ybouane"},"bugs":{"url":"https://github.com/crazygl-com/hero-window-lens/issues"},"license":"Apache-2.0","readme":"<sub>*Hero made by [@ybouane](https://x.com/ybouane).*</sub>\n<p align=\"center\">\n  <img src=\"https://crazygl.com/heroes/hero-window-lens/banner-full.png\" alt=\"Window Lens\" width=\"640\">\n</p>\n\n# @crazygl/hero-window-lens\n\nA draggable OS-style window is a sharp 'lens' over an image or video: crisp inside the window, processed outside — pixelate, blur, black-&-white dither, ASCII, or none. Use a separate custom image for the processed outside region, and pick any of four chrome styles (classic Mac, modern Mac, Windows XP, Windows 95).\n\n## Demo\n[Window Lens](https://crazygl.com/hero/window-lens)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-window-lens\n```\n\n## Usage\n\n```tsx\nimport WindowLens from '@crazygl/hero-window-lens';\n\nexport default function Hero() {\n  return (\n    <WindowLens\n      image=\"https://crazygl.com/samples/hands.avif\"\n      effect=\"pixelate\"\n      windowType=\"mac-old\"\n      windowTitle=\"my window\"\n    />\n  );\n}\n```\n\n## Customise\n\n- **Source** — `image` (image or MP4/WebM video; sharp inside, processed outside), `useOuterImage` / `outerImage` for a separate processed-region image.\n- **Outside effect** — `effect` (pixelate / blur / dither / ascii / none) plus `cellSize`, `blurAmount`, `ditherFg` / `ditherBg`, `asciiChars` / `asciiFg` / `asciiBg`.\n- **Window** — `windowType` (Classic Mac, Modern Mac, Windows XP, Windows 95), `windowTitle`, `windowWidth`, `windowAspect`, `draggable`.\n\n## Best for\n\n- Developer-tool, design-tool, and creative-software landing pages.\n- Retro / nostalgia-themed brands and portfolio sites.\n- Interactive \"before/after\" or reveal moments where dragging is the point.\n\n\n\nThis hero is part of [CrazyGL](https://crazygl.com), a collection of production-ready WebGL, canvas, 3D, and typography effects. Every CrazyGL hero ships with an agent-ready `SKILL.md` file that helps developers and coding agents adapt the effect into custom landing pages and interactive experiences.\n","readmeFilename":"README.md","_rev":"1-9baf50b25cf43db5fe6add6dc799adcf"}