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

canvas-grid-ui

v1.0.2

Published

Sistema de grids animado de alto rendimiento con Visual Engines para React

Readme

🏗️ Canvas Grid UI

npm version npm downloads GitHub stars License: MIT

Sistema de grids animado de alto rendimiento con Visual Engines para React y Astro. No es solo un layout, es un Visual Engine que permite aplicar físicas reales, efectos 3D y sistemas de iluminación reactiva mediante Framer Motion y Tailwind CSS.

📦 Instalación

npm install canvas-grid-ui framer-motion tailwindcss

Configuración de Tailwind CSS

Agrega el paquete a tu tailwind.config.js:

export default {
  content: [
    './src/**/*.{js,jsx,ts,tsx}',
    './node_modules/canvas-grid-ui/**/*.{js,jsx}', // ← Importante
  ],
  theme: {
    extend: {},
  },
}

🚀 Uso Básico

import { GridComponent } from 'canvas-grid-ui';

function App() {
  return (
    <GridComponent 
      columns={3} 
      gap="gap-6" 
      animation="High-Tilt 3D"
    >
      <div className="p-6 bg-white dark:bg-gray-800 rounded-xl">
        <h3 className="text-xl font-bold">Card 1</h3>
        <p className="text-gray-600">Explora efectos 3D</p>
      </div>
      
      <div className="p-6 bg-white dark:bg-gray-800 rounded-xl">
        <h3 className="text-xl font-bold">Card 2</h3>
        <p className="text-gray-600">Físicas reales</p>
      </div>
      
      <div className="p-6 bg-white dark:bg-gray-800 rounded-xl">
        <h3 className="text-xl font-bold">Card 3</h3>
        <p className="text-gray-600">Listo para producción</p>
      </div>
    </GridComponent>
  );
}

✨ Visual Engines Disponibles

High-Tilt 3D

Profundidad agresiva con rotación de 35° y elevación en eje Z.

<GridComponent animation="High-Tilt 3D" columns={3}>
  {/* tus cards */}
</GridComponent>

Perspective Soft

Minimalismo elegante con rotación suave de 12°.

<GridComponent animation="Perspective Soft" columns={4}>
  {/* tus cards */}
</GridComponent>

Magnetic Force

Las tarjetas siguen el cursor con físicas de resorte.

<GridComponent animation="Magnetic Force" columns={2}>
  {/* tus cards */}
</GridComponent>

Ray-Cast Spotlight

Iluminación reactiva que baña bordes según posición del mouse.

<GridComponent animation="Ray-Cast Spotlight" columns={3}>
  {/* tus cards */}
</GridComponent>

🎨 Ejemplo: Layout Bento (Irregular)

<GridComponent columns={4} gap="gap-4" animation="Ray-Cast Spotlight">
  {/* Card grande (2x2) */}
  <div className="col-span-2 row-span-2 p-8 bg-gradient-to-br from-purple-500 to-pink-500 rounded-2xl">
    <h2 className="text-2xl font-bold text-white">Destacado</h2>
    <p className="text-white/80">Ocupa 2x2 espacios</p>
  </div>
  
  {/* Card ancha (2x1) */}
  <div className="col-span-2 p-6 bg-white dark:bg-gray-800 rounded-xl">
    <h3 className="text-lg font-semibold">Card Ancha</h3>
  </div>
  
  {/* Cards normales */}
  <div className="p-6 bg-white dark:bg-gray-800 rounded-xl">Card A</div>
  <div className="p-6 bg-white dark:bg-gray-800 rounded-xl">Card B</div>
</GridComponent>

⚙️ Props API

| Prop | Tipo | Default | Descripción | |------|------|---------|-------------| | columns | number | 3 | Número de columnas en desktop | | gap | string | "gap-6" | Clase de Tailwind para espaciado | | animation | "High-Tilt 3D" | "Perspective Soft" | "Magnetic Force" | "Ray-Cast Spotlight" | "High-Tilt 3D" | Motor visual a utilizar | | className | string | "" | Clases adicionales para el contenedor | | children | ReactNode | - | Elementos hijos a renderizar |


🌙 Dark Mode

Soporte automático para modo oscuro de Tailwind:

<div className="bg-white dark:bg-gray-900 text-black dark:text-white">
  Contenido que se adapta al tema
</div>

📱 Responsive Design

<GridComponent 
  columns={3}
  className="grid-cols-1 md:grid-cols-2 lg:grid-cols-3"
  animation="Magnetic Force"
>
  {/* tus cards */}
</GridComponent>

🔗 Links


📄 Licencia

MIT © noldee