npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@frybynite/image-cloud

v0.3.0

Published

Javascript/TypeScript image cloud library with custom loaders, various layouts, full images styling, with animation and zoom effects

Readme

Image Cloud Banner

Image Cloud Library

A TypeScript library for creating interactive image clouds with animated scattered layouts and zoom effects. Supports multiple image sources (static URLs, JSON endpoints, Google Drive) and layout algorithms.

[!WARNING] ⚠️ All minor versions of this library before 1.0 (e.g., 0.1, 0.2, ...) will include breaking changes during development. Please re-test every time before upgrading until we have published v1.0.

Features

  • ✨ Animated image layouts with smooth transitions
  • 🎯 Multiple layout algorithms (radial, grid, spiral, cluster, wave, random)
  • 🎬 Rich entry animations (bounce, elastic, wave paths; spin, wobble rotations)
  • 🔍 Zoom/focus interactions with keyboard navigation
  • 🎨 State-based image styling (borders, shadows, filters for default/hover/focused)
  • 📱 Responsive design with adaptive sizing
  • 🖼️ Multiple image sources (static URLs, JSON endpoints, Google Drive, composite loaders)
  • 🛠️ Interactive configurator for visual configuration
  • 📦 Zero runtime dependencies
  • 🔷 Full TypeScript support

Installation

npm install @frybynite/image-cloud

CDN

No install needed — load directly from a CDN:

jsDelivr

https://cdn.jsdelivr.net/npm/@frybynite/image-cloud@latest/dist/image-cloud.js      (ESM)
https://cdn.jsdelivr.net/npm/@frybynite/image-cloud@latest/dist/image-cloud.umd.js  (UMD)
https://cdn.jsdelivr.net/npm/@frybynite/image-cloud@latest/dist/image-cloud-auto-init.js
https://cdn.jsdelivr.net/npm/@frybynite/image-cloud@latest/dist/style.css

unpkg

https://unpkg.com/@frybynite/image-cloud@latest/dist/image-cloud.js      (ESM)
https://unpkg.com/@frybynite/image-cloud@latest/dist/image-cloud.umd.js  (UMD)
https://unpkg.com/@frybynite/image-cloud@latest/dist/image-cloud-auto-init.js
https://unpkg.com/@frybynite/image-cloud@latest/dist/style.css

Replace @latest with a specific version (e.g., @0.2.1) to pin to that release.

Quick Start

TypeScript/JavaScript (Programmatic API)

import { ImageCloud } from '@frybynite/image-cloud';
import '@frybynite/image-cloud/style.css';

const cloud = new ImageCloud({
  container: 'myCloud',
  images: [
    'https://images.pexels.com/photos/1261728/pexels-photo-1261728.jpeg?auto=compress&w=600',
    'https://images.pexels.com/photos/3225517/pexels-photo-3225517.jpeg?auto=compress&w=600',
    'https://images.pexels.com/photos/1402787/pexels-photo-1402787.jpeg?auto=compress&w=600'
  ],
  layout: {
    algorithm: 'radial'
  }
});

await cloud.init();

HTML (Auto-initialization)

<!DOCTYPE html>
<html>
<body>
  <div
    id="cloud"
    style="width: 100%; height: 100vh"
    data-image-cloud
    data-config='{
      "images": [
        "https://images.pexels.com/photos/1261728/pexels-photo-1261728.jpeg?auto=compress&w=600",
        "https://images.pexels.com/photos/3225517/pexels-photo-3225517.jpeg?auto=compress&w=600",
        "https://images.pexels.com/photos/1402787/pexels-photo-1402787.jpeg?auto=compress&w=600"
      ],
      "layout": {
        "algorithm": "radial"
      }
    }'
  ></div>

  <!-- No CSS link needed — auto-init injects styles automatically -->
  <script type="module" src="https://cdn.jsdelivr.net/npm/@frybynite/image-cloud@latest/dist/image-cloud-auto-init.js"></script>
</body>
</html>

Getting Started

For detailed configuration, see the documentation in the docs/ folder:

  1. Loaders — Configure image sources (static URLs, JSON endpoints, local paths, Google Drive folders)
  2. Layout Generators — Choose and customize layout algorithms (radial, grid, spiral, cluster, random)
  3. Image Sizing — Control base sizes, variance, and responsive/adaptive behavior
  4. Full Parameter Reference — Complete configuration options for animation, interaction, styling, and more
  5. API Reference — TypeScript API documentation for the ImageCloud class, types, loaders, and generators

Using the Configurator

The easiest way to create a custom configuration is with the interactive Configurator tool:

The Configurator lets you visually adjust all settings and exports a ready-to-use JSON configuration.

Events & Interactions

Mouse

  • Click image: Focus/zoom the image
  • Click outside: Unfocus current image
  • Hover: Apply hover styling

Keyboard

  • Arrow Right: Navigate to next image (when focused)
  • Arrow Left: Navigate to previous image (when focused)
  • Enter / Space: Focus hovered image
  • Escape: Unfocus current image

Window

  • Resize: Responsive layout adjustment (debounced)

Browser Support

  • Chrome/Edge: Latest 2 versions
  • Firefox: Latest 2 versions
  • Safari: Latest 2 versions
  • Mobile: iOS Safari 12+, Chrome Android

Examples

Check out the examples/ directory for various usage patterns:

  • esm-example.html - Modern ES module usage
  • cdn-umd-example.html - Traditional script tag / CDN usage
  • auto-init-example.html - HTML data attribute initialization
  • static-loader-example.html - Static image URLs
  • static-urls-shorthand-example.html - Simplest static loader: direct URL array shorthand
  • static-json-source-example.html - Load images from a JSON endpoint
  • google-drive-loader-example.html - Google Drive folder source
  • layout-algorithms.html - Compare all layout algorithms
  • entry-animations.html - Entry animation styles
  • image-style-demo.html - Borders, shadows, and filters
  • typescript-example.ts - TypeScript with React and Vue
  • See examples/README.md for detailed instructions

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

See docs/DEVELOPER.md for build scripts, testing, and project structure.

License

MIT

Author

frybynite