Quickstart Guide

hop.js was built with “less is more” in mind. Privacy by default, performance at the edge, and setup that’s basically copy-paste. Choose a version, grab the tag, and go back to building your app.

// (\_/) NPM example
// https://cdn.hopjs.net/npm/{package_name}@{package_version}/{file_path}
https://cdn.hopjs.net/npm/jquery@3.7.1/dist/jquery.min.js
// (\_/) CDNJS example
// https://cdn.hopjs.net/ajax/libs/{package_name}/{package_version}/{file_path}
https://cdn.hopjs.net/ajax/libs/bootstrap/5.3.8/css/bootstrap.min.css


Load any package from the npm, or cdnjs registry
Or explore millions of packages on hopjs.bunny.net

Drop-in API support

hop.js was built for simplicity. It’s compatible with common cdnjs and jsDelivr URL formats, so in many cases you can swap the hostname and keep the rest of the path the same. You’ll get the same great performance—without sacrificing privacy.

Note: Advanced features such as on-the-fly minification, bundling, or transformation are not supported. Serve pre-minified files (e.g., *.min.js) from your package.

How to use hop.js?

Under the hood, hop.js automatically maps package names to high-performance CDN endpoints, so you get instant, reliable delivery without extra configuration by simply crafting the URL based on the format above.

If you need help, you can also browse from millions of packages on the website. Just search for a library, choose the exact version and file you need, and copy the prebuilt <script> or <link> tag.

What does zero logging mean?

Zero logging means we do not collect or store any request-level data that can be tied back to you or your users. That includes:

  • No IP addresses
  • No user-agent or referrer logs
  • No cookies or identifiers

We keep only the minimal, aggregated metrics required to keep the network healthy—without tracking individuals. Your users get performance. You keep their privacy.

How to use the SRI hash

Every file hosted on hop.js is signed with a SHA-256 hash. This hash can be used to verify the integrity of the file.

To copy the hash, find the package page and click the "Copy SRI" button, or use the preconfigured script tag provided.

An unhandled error has occurred. Reload 🗙