plainJS

Libraries / Inputs

Croppr.js

A vanilla JavaScript image cropper that's lightweight, awesome, and has absolutely zero dependencies.

No-build verifiedDormant0 dependenciesScript tagTypes bundledMIT

Facts

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size19.6 KB minified, 5.3 KB gzipped (dist/croppr.js)
LicenceMIT
Dependenciesnone
Last releasev2.3.1, July 2018
Last activity2022-12-06 (Dormant)
Stars392 on GitHub
Formatsclassic script (global Croppr); TypeScript types in the package
CDN hits93,816 a month on jsDelivr
npm downloads36,721 a month
GatesG1 passed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 passed (not archived or deprecated). Smoke test on v2.3.1 in headless Chromium, 2026-10-30

Load it

Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.

htmlscript tag, with SRI
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/croppr.js"
        integrity="sha384-pR1YPik6jdraGDapoGPuTQZ0nrlf5ughfoyooHyid5Hn/tmXo6aYomKb+IMnxd+j" crossorigin="anonymous"></script>
Advertisement

Entry 149 in the directory. Facts refreshed monthly; last run 2026-10-30.