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

@zeitui-org/image-viewer

v1.0.0

Published

Image viewer component with zoom and pan capabilities

Readme

@zeitui-org/image-viewer

Un componente de visualización de imágenes para React con capacidades de zoom y desplazamiento.

Características

  • 🔍 Zoom in/out con controles intuitivos
  • 🔄 Rotación de imagen
  • ⬇️ Descarga de imagen
  • 🖨️ Impresión de imagen
  • 📱 Modo pantalla completa
  • 🔄 Reset a vista original
  • 🎨 Personalización de controles
  • 📦 Ligero y fácil de usar

Requisitos

  • React 18 o superior
  • React DOM 18 o superior
  • Tailwind CSS 3.x (Se recomienda usar Tailwind CSS 3 por estabilidad y compatibilidad. Si bien el componente podría funcionar con Tailwind CSS 4, no se garantiza la compatibilidad completa hasta que esta versión sea estable)

[!NOTE] Se recomienda específicamente usar Tailwind CSS 3.x ya que es la versión estable actual y ha sido probada exhaustivamente con este componente.

Instalación

1. Instalar el componente principal

npm

npm install @zeitui-org/image-viewer

pnpm

pnpm add @zeitui-org/image-viewer

yarn

yarn add @zeitui-org/image-viewer

2. Instalar dependencias de HeroUI

El componente utiliza HeroUI para los controles. Necesitas instalar los siguientes paquetes:

npm

npm install @heroui/button @heroui/theme @heroui/system framer-motion

pnpm

pnpm add @heroui/button @heroui/theme @heroui/system framer-motion

yarn

yarn add @heroui/button @heroui/theme @heroui/system framer-motion

Configuración especial para pnpm

Si estás usando pnpm, necesitas añadir la siguiente línea a tu archivo .npmrc:

public-hoist-pattern[]=*@heroui/*

Configuración

1. Tailwind CSS

Modifica tu archivo tailwind.config.js:

const { heroui } = require("@heroui/theme");

module.exports = {
  content: [
    // ... otras configuraciones
    "./node_modules/@zeitui-org/**/*.{js,jsx,ts,tsx}",
    // Estilos de componentes HeroUI necesarios
    "./node_modules/@heroui/theme/dist/components/(button).js"
  ],
  theme: {
    extend: {},
  },
  darkMode: "class",
  plugins: [heroui()],  // Añade el plugin de HeroUI
}

Uso

import { ImageViewer } from '@zeitui-org/image-viewer';

function App() {
  return (
    <ImageViewer src="ruta-de-tu-imagen.jpg"/>
  );
}

Props

| Prop | Descripción | Tipo | Valor por defecto | |------|-------------|------|-------------------| | src* | URL de la imagen a mostrar | string | - | | controlVariant | Estilo de los controles | 'solid' | 'bordered' | 'light' | 'flat' | 'faded' | 'shadow' | 'ghost' | 'solid' | | controlColor | Color de los controles | 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'default' | | controlSize | Tamaño de los controles | 'sm' | 'md' | 'lg' | 'md' | | controlRadius | Radio de los controles | 'none' | 'sm' | 'md' | 'lg' | 'full' | 'lg' |

Ejemplos

Visor Básico

<ImageViewer src="https://ejemplo.com/imagen.jpg" />

Licencia

MITlicense.