[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116070":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":13,"forks30d":13,"starsTrendScore":17,"compositeScore":14,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":10,"pushedAt":35,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":13,"starSnapshotCount":13,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},116070,"zriz","pqoqubbw\u002Fzriz","pqoqubbw","headless image cropper for react and typescript. crop, straighten, rotate, flip and zoom, with the feel of ios photos","https:\u002F\u002Fzriz.dev",null,"TypeScript",69,0,51,1,15,5,"MIT License",false,"main",[22,23,24,25,26,27,28,29,30,31,32,33,34],"avatar","crop","cropper","headless","image-crop","image-cropper","nextjs","react","react-component","react-cropper","rotate","typescript","zoom","2026-11-23 12:50:04","2026-11-23 04:54:56","# zriz\n\nHeadless image cropper for React and plain TypeScript, with the feel of the crop tool in iOS Photos. Crop a photo, straighten it with a dial, rotate, flip and zoom it, then export the result.\n\n- Unstyled parts you compose and style yourself, plus an optional stylesheet.\n- Pinch, twist, wheel and trackpad zoom, with a rubber band at the edges.\n- No empty corners at any angle, on screen and in the exported file.\n- Full keyboard control, screen reader labels and reduced motion.\n- Export in a worker from the full-resolution photo, or crop on your server with sharp. A cropped JPEG never comes out at a higher quality than the photo it came from.\n- Opens SVG too, after a check that refuses a file that would freeze the page.\n- Zero runtime dependencies. React 18.2 and 19 from one build, and a plain TypeScript API for everything else.\n\nDocs, demos and the API live at [zriz.dev](https:\u002F\u002Fzriz.dev).\n\n## Install\n\n```sh\npnpm add @zriz\u002Freact @zriz\u002Fcore\n```\n\n```tsx\n\"use client\";\n\nimport * as Cropper from \"@zriz\u002Freact\u002Fcropper\";\n\nimport \"@zriz\u002Freact\u002Fstyles.css\";\n\nexport const PhotoCropper = ({ photo }: { photo: File }) => (\n  \u003CCropper.Root\n    src={photo}\n    onValueCommit={(value, details) => console.log(details.pixelCrop)}\n  >\n    \u003CCropper.Viewport style={{ maxWidth: 400, height: 300, padding: 24 }}>\n      \u003CCropper.Image \u002F>\n      \u003CCropper.Mask \u002F>\n      \u003CCropper.Area aria-label=\"Crop area\">\n        \u003CCropper.Handle position=\"top-left\" \u002F>\n        \u003CCropper.Handle position=\"top-right\" \u002F>\n        \u003CCropper.Handle position=\"bottom-right\" \u002F>\n        \u003CCropper.Handle position=\"bottom-left\" \u002F>\n      \u003C\u002FCropper.Area>\n    \u003C\u002FCropper.Viewport>\n    \u003CCropper.Dial aria-label=\"Straighten\" style={{ maxWidth: 361 }}>\n      \u003CCropper.DialTicks \u002F>\n    \u003C\u002FCropper.Dial>\n  \u003C\u002FCropper.Root>\n);\n```\n\n[Quick start](https:\u002F\u002Fzriz.dev\u002Fdocs\u002Fquick-start) goes from here to a file picker and the crop in pixels.\n\n## Packages\n\n| Package |  |\n| --- | --- |\n| [`@zriz\u002Freact`](packages\u002Freact) | Unstyled React parts and hooks |\n| [`@zriz\u002Fcore`](packages\u002Fcore) | Geometry, the coverage solver, DOM binders, export |\n\n## Found a bug or want a feature\n\nOpen an [issue](https:\u002F\u002Fgithub.com\u002Fpqoqubbw\u002Fzriz\u002Fissues\u002Fnew\u002Fchoose). I don't take pull requests. [CONTRIBUTING.md](.github\u002FCONTRIBUTING.md) explains why and what helps most instead.\n\n## License\n\nMIT\n","zriz 是一个面向 React 和 TypeScript 的无样式图像裁剪库，提供类似 iOS 照片应用的裁剪体验。核心功能包括自由裁剪、旋转、翻转、缩放及通过旋钮校正倾斜角度，并支持触控、滚轮、轨迹板等多种交互方式；采用零运行时依赖设计，内置无障碍支持、键盘控制与导出工作线程，可处理 JPEG\u002FSVG 源图并保证输出质量不高于原图。适用于需要高度定制化 UI 的头像上传、证件照处理、内容编辑器等前端图像编辑场景。",2,"2026-11-24 04:52:43","CREATED_QUERY"]