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

@maas/magic-image

v0.0.13

Published

![NPM Version](https://img.shields.io/npm/v/%40maas%2Fmagic-image) ![NPM Downloads](https://img.shields.io/npm/dm/%40maas%2Fmagic-image)

Readme

NPM Version NPM Downloads

🪄 🖼️ Magic Image

Magic Image is a modern, flexible image component for Nuxt applications. It wraps the best features of Unlazy and Nuxt Image into a single, ready-to-use Nuxt module. With Magic Image, you can effortlessly integrate advanced image handling capabilities into your project and benefit from dynamic sizing and best practice lazy loading.


✨ Key Benefits

  • 🌟 Auto-lazy Loading: Optimize load times with automatic lazy loading.
  • 📐 Dynamic Sizing: Automatically adjust image sizes for different devices.
  • ⚡ Optimized Loading: Deliver the most efficient images for your users.
  • 🔗 Unified API: A single API for all your favorite image CDNs.
  • 📦 Extended Providers:
    • 🎥 MUX Video Thumbnails: Seamlessly fetch video thumbnails from MUX (coming soon) (Documentation).
    • 🛍️ Shopify Image CDN: Support for Shopify images (coming soon) (Documentation).

📦 Install

Install the package using your preferred package manager:

# npm
npm install @magic-image/nuxt

# pnpm
pnpm add @magic-image/nuxt

# yarn
yarn add @magic-image/nuxt

⚙️ Configure

To use Magic Image in your Nuxt app, register it as a module and configure it in your nuxt.config.ts file. Below is an example configuration:

export default defineNuxtConfig({
  modules: ['@maas/magic-image/nuxt'],
  magicImage: {
    sizes: '256w:256px 960w:960px 1440w:1440px', // optional srcset custom sizes
    // See: https://image.nuxt.com/get-started/configuration
    image: {
      provider: 'unsplash',
      unsplash: {
        baseURL: '',
        modifiers: {
          auto: 'format,compress',
        },
      },
    },
    // See: https://unlazy.byjohann.dev/integrations/nuxt.html#module-options
    unlazy: {
       ssr: true,
    },
  },
});

🔧 Usage

Magic Image provides a unified API for all your image needs. Here’s an example of how to use it in a Nuxt component:

<template>
  <div>
    <magic-image src="https://images.unsplash.com/photo-1694444070793-13db645409f4" />
  </div>
</template>

🚀 Features

  1. 🔗 Seamless Integration: Combines the power of Unlazy and Nuxt Image into one package.
  2. 📦 Customizable Providers: Support for popular CDNs, including Unsplash, MUX, and Shopify (coming soon).
  3. ⚙️ Flexibility: Easily configure sizes, lazy loading, and more.
  4. ⚡ Performance Optimization: Automatically delivers optimized images for a better user experience.

🗺️ Roadmap

  • [ ] Add MUX Video Thumbnail support.
  • [ ] Shopify Image CDN integration.

🐛 Found a Bug?

If you see something that doesn't look right, submit a bug report.

See it. Say it. Sorted.


📄 License

MIT License © 2024-PRESENT Magic as a Service GmbH