react-zoom-pan-pinch / rules
Cursor rule2k starsChanged 8 months agoMITView on GitHub
Prefer deep modules: a lot of behaviour behind a small interface. - Fewer functions with real behaviour beat many thin pass-through helpers. - A module is shallow when its interface is nearly as complex as its implementation — a wrapper that only renames or forwards arguments adds cost, not value. - Deletion test: if deleting a helper would just inline one line at each call site, delete it. If it would scatter real complexity across callers, it earns its place.…
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about BetterTyped/react-zoom-pan-pinch
- blakeblackshear/frigate“Bump the web-minor-patch group across 1 directory with 23 updates”GitHub · Oct 18, 2026 · 1 reactions
- concrnt/concrnt-world“画像を開いた時に右クリックに画像保存が出てこなかった問題を修正”GitHub · Oct 24, 2024 · 1 reactions
- mattermost/mattermost“zoomable images feature”GitHub · Mar 12, 2024 · 1 reactions
- maronnjapan/maronn-openid-connect“build(deps): Bump react-zoom-pan-pinch from 4.2.0 to 4.4.0”GitHub · Nov 24, 2026
- Happy-Creative-LLC/HappyC_Product_Preview_Studio“chore(deps): bump the npm-minor-patch group across 1 directory with 12 updates”GitHub · Nov 23, 2026
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub (50 times).
On GitHub · 50
- Oct 18, 2026Bump the web-minor-patch group across 1 directory with 23 updates — blakeblackshear/frigate1 reaction · 2 comments
- Oct 24, 2024画像を開いた時に右クリックに画像保存が出てこなかった問題を修正 — concrnt/concrnt-world1 reaction
- Mar 12, 2024zoomable images feature — mattermost/mattermost1 reaction · 29 comments
- Nov 24, 2026build(deps): Bump react-zoom-pan-pinch from 4.2.0 to 4.4.0 — maronnjapan/maronn-openid-connect0 reactions · 1 comment
- Nov 23, 2026chore(deps): bump the npm-minor-patch group across 1 directory with 12 updates — Happy-Creative-LLC/HappyC_Product_Preview_Studio0 reactions
45 more on GitHub
- Nov 23, 2026Bump the production-minor-patch group with 2 updates — seanfinchg/seanfinch.com0 reactions · 1 comment
- Nov 23, 2026Bump the production-dependencies group with 4 updates — jonohey/sketchplanations0 reactions · 1 comment
- Nov 23, 2026chore(deps): bump react-zoom-pan-pinch from 3.7.0 to 4.4.0 — Codename-11/SubFrame0 reactions
- Nov 23, 2026Bump react-zoom-pan-pinch from 4.2.0 to 4.4.0 — Fotogjengen/hilfling-frontend0 reactions
- Nov 23, 2026Bump the npm-minor-patch group with 7 updates — Dustin-Klein/dg-putting-league0 reactions · 2 comments
- Nov 23, 2026chore(deps): bump the production-minor-patch group across 1 directory with 4 updates — meraxes89/algorithmvizualizer0 reactions · 1 comment
- Nov 23, 2026chore(deps): bump the minor-and-patch group across 1 directory with 14 updates — mal-nushi-dev/fisi0 reactions · 2 comments
- Nov 23, 2026build(deps): bump the minor-patches group with 11 updates — noa10/mataresit0 reactions · 3 comments
- Nov 23, 2026chore(deps): bump the minor-and-patch group with 5 updates — ShervinBabaei2007/Shervin-Portfolio0 reactions · 1 comment
- Nov 23, 2026build(deps): bump react-zoom-pan-pinch from 4.2.0 to 4.4.0 — apvarun/graphize0 reactions
- Nov 22, 2026build(deps): bump react-zoom-pan-pinch from 4.0.3 to 4.4.0 — FDHS-Westchase-Gastroenterology/westchase-gi0 reactions · 3 comments
- Nov 22, 2026chore(deps): bump the npm-minor-and-patch group across 1 directory with 12 updates — ring9834/TableReservation0 reactions
- Nov 21, 2026chore(deps): update dependency react-zoom-pan-pinch to v4.4.0 — Patrikmulato/GeoHelper0 reactions · 2 comments
- Nov 2, 2026chore(deps): bump react-zoom-pan-pinch from 4.0.4 to 4.2.0 — Sallyn0225/seatview0 reactions · 1 comment
- Oct 31, 2026chore(deps): bump react-zoom-pan-pinch from 3.7.0 to 4.2.0 — sprmke/kame-space0 reactions · 3 comments
- Oct 28, 2026chore(deps): bump react-zoom-pan-pinch from 3.7.0 to 4.2.0 — lamassuiot/lamassu-dashboard0 reactions · 3 comments
- Oct 25, 2026build(deps): bump the frontend-minor group in /frontend with 2 updates — soqlab/Q-lab0 reactions · 3 comments
- Oct 21, 2026chore(deps): bump react-zoom-pan-pinch from 4.0.3 to 4.2.0 — domidyon/roborock-vacuum-map-card0 reactions · 2 comments
- Oct 21, 2026chore(deps)(deps): bump react-zoom-pan-pinch from 4.0.3 to 4.2.0 in /mygitnexus-web — DingYong4223/MyGitNexus0 reactions · 3 comments
- Oct 19, 2026fix(deps)(deps): bump react-zoom-pan-pinch from 4.0.4 to 4.2.0 — Laifa-ait/Laifa-ait-30 reactions · 2 comments
- Oct 18, 2026Bump react-zoom-pan-pinch from 4.0.4 to 4.2.0 — booknomics0-art/booknomics-platform210 reactions · 1 comment
- Oct 11, 2026build(deps): bump react-zoom-pan-pinch from 4.0.4 to 4.2.0 — Eliav2/react-xarrows0 reactions · 3 comments
- Oct 7, 2026Bump react-zoom-pan-pinch from 4.0.3 to 4.2.0 in /frontend — ryleymcc/equipmap-community0 reactions
- Oct 1, 2026build(deps): bump react-zoom-pan-pinch from 4.0.3 to 4.2.0 — u14app/neo-chat0 reactions · 2 comments
- Sep 28, 2026chore(deps): bump react-zoom-pan-pinch from 4.0.4 to 4.2.0 — pablocolaiacovo/dzts-website0 reactions · 4 comments
- Sep 28, 2026Bump react-zoom-pan-pinch from 3.7.0 to 4.2.0 — dtwiki/dragon-traveler-wiki0 reactions
- Sep 26, 2026chore(deps): bump react-zoom-pan-pinch from 3.7.0 to 4.2.0 — openkku/cp-examseat-frontend0 reactions · 1 comment
- Sep 25, 2026chore(deps): bump react-zoom-pan-pinch from 4.0.3 to 4.2.0 in /frontend — SahanPramuditha-Dev/I-Store-Website0 reactions · 1 comment
- Sep 22, 2026chore(deps)(deps): bump react-zoom-pan-pinch from 4.0.3 to 4.2.0 — supremejarvis/this-is-for-video0 reactions · 1 comment
- Sep 16, 2026Bump react-zoom-pan-pinch from 3.4.4 to 4.2.0 in /web — blakeblackshear/frigate0 reactions · 1 comment
- Sep 7, 2026chore(deps): bump react-zoom-pan-pinch from 3.7.0 to 4.2.0 — Codename-11/SubFrame0 reactions · 1 comment
- Aug 27, 2026chore(deps)(deps): bump react-zoom-pan-pinch from 4.0.3 to 4.0.4 in /gitnexus-web — carlosq12/analisis-de-datos-iu0 reactions · 3 comments
- Aug 27, 2026chore(deps)(deps): bump react-zoom-pan-pinch from 3.7.0 to 4.0.4 — alexgutscher26/Sleek-AI-WebDesign-Agent-main0 reactions · 1 comment
- Aug 25, 2026Bump react-zoom-pan-pinch from 4.0.3 to 4.0.4 in /telecaller-app — salesgoldenacres-netizen/crm-app0 reactions
- Aug 17, 2026chore(deps): bump react-zoom-pan-pinch from 3.7.0 to 4.0.4 — xiaomizhoubaobei/302_image_toolbox0 reactions · 3 comments
- Aug 12, 2026Demo: SvgDisplay position resets on light/dark mode updates — david-yz-liu/memory-viz0 reactions
- Jul 21, 2026deps: bump react-zoom-pan-pinch from 3.7.0 to 4.0.3 — wukki/quest-forge-interactive0 reactions · 1 comment
- Jun 13, 2026Bump react-zoom-pan-pinch from 3.7.0 to 4.0.3 in /packages/web — MukundaKatta/Oradent0 reactions
- May 12, 2026chore(deps): bump react-zoom-pan-pinch from 3.7.0 to 4.0.3 — sebasrda/leyopolis0 reactions · 1 comment
- May 8, 2026fix(deps): bump react-zoom-pan-pinch from 3.7.0 to 4.0.3 in /ui — phuongnamngo/webapp-booking0 reactions
- May 2, 2026fix(deps): bump react-zoom-pan-pinch from 3.7.0 to 4.0.3 in /ui — evernile/seatsurfing-fullstack0 reactions
- May 29, 2025Zooming in on Safari loads the original image, but Safari does not render it at full resolution — immich-app/immich0 reactions · 9 comments
- May 24, 2025Bump react-zoom-pan-pinch from 3.4.4 to 3.7.0 — mofitn3577/test20 reactions
- Apr 3, 2025Bump react-zoom-pan-pinch from 3.4.4 to 3.7.0 in /web — mohammedablan/dd0 reactions
- Mar 3, 2025Bump react-zoom-pan-pinch from 3.4.4 to 3.7.0 in /web — jsboyana/frigate0 reactions
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,373 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository16 other files it gives its agents.
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/commit-conventions.mdcCursor rule
- .cursor/rules/debugging.mdcCursor rule
- .cursor/rules/decisions.mdcCursor rule
- .cursor/rules/github-issues-triage.mdcCursor rule
- .cursor/rules/library-changes-consult-docs.mdcCursor rule
- .cursor/rules/library-context.mdcCursor rule
- .cursor/rules/testing.mdcCursor rule
- .cursor/rules/testing-regressions.mdcCursor rule
- .cursor/rules/testing-workflow.mdcCursor rule
- .cursor/rules/verification.mdcCursor rule
- brainstormingSkill
- find-skillsSkill
- reactSkill
- react-performanceSkill
The file
We split this module-design.mdc into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Prefer deep modules: a lot of behaviour behind a small interface.
- Distinctive: line 19
Deletion test: if deleting a helper would just inline one line at each call site, delete it.
- Very specific: line 29
Every public prop is forever: Do not add a prop, option or callback argument for a need nobody has.
- Distinctive: line 33
No abstraction until there are at least two real call sites that want it.
- Distinctive: line 34
Don't scaffold empty folders or files "for later".
- Distinctive: line 38
Before declaring work done, scan your own diff for these.
≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: Module design for library code — deep modules, no speculative generality, every public prop is forever, self-review smells globs: src/**/* alwaysApply: false --- # Module design ## Deep modules Prefer **deep modules**: a lot of behaviour behind a small interface. - Fewer functions with real behaviour beat many thin pass-through helpers. - A module is shallow when its interface is nearly as complex as its implementation — a wrapper that only renames or forwards arguments adds cost, not value. - **Deletion test**: if deleting a helper would just inline one line at each call site, delete it. If it would scatter real complexity across callers, it earns its place. - Gesture handlers (`src/core/*/*.logic.ts`) stay thin; the math lives in the `*.utils.ts` helpers, where it can be unit tested. ## No speculative generality Build for the requirements that exist, not the ones you imagine. - **Every public prop is forever.** Do not add a prop, option or callback argument for a need nobody has; once published it is semver surface. Prefer a fixed, well-chosen constant (e.g. the rubber band's `0.55`) until a real request asks for a knob. - No abstraction until there are at least two real call sites that want it. - Don't scaffold empty folders or files "for later". ## Self-review smells Before declaring work done, scan your own diff for these. Each is a judgement call, not a hard violation — but if you leave one in, be able to say why. - **Mysterious name** — a function, variable or type whose name doesn't say what it does. If no honest name comes, the design is murky. - **Duplicated code** — the same logic shape in more than one place in the change (e.g. per-axis code copied for X and Y instead of one helper). - **Data clumps** — the same few fields travelling together through signatures (`minX, maxX, minY, maxY, paddingX, paddingY`). Bundle them into one type. - **Primitive obsession** — a raw number standing in for a concept (px vs % of the wrapper). Name it, or at least document its unit. - **Speculative generality** — see above. Delete it. - **Middle man** — a function that mostly delegates onward. Call the real target.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

