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

vue-expandable-grid

v0.2.0-2

Published

Vue component representing an infinitely-expandable grid

Downloads

33

Readme

vue-expandable-grid

npm version Build Status

Vue component that acts as a grid that can expand indefinitely in all directions. This library builds upon Weijia Wang's vue-virtual-collection.

Features

  • Supports zooming in and out. Zoom levels are customisable.
  • Publishes grid mouse events (move and click) & zoom events.
  • Customisable grid tiles.
  • Small catalog of pre-made grid tiles.
  • Allows adding arbitrary items to the grid.

Usage

Install from NPM:

$ npm install vue-expandable-grid

OR

$ yarn add vue-expandable-grid

In a *.vue file, import the component:

<template>
  <ExpandableGrid />
</template>

<script language="typescript">
import ExpandableGrid from "vue-expandable-grid"

// TODO
</script>

Terminology

Grid: the component representing a two-dimensional space that tiles and grid items are rendered on.

Viewport: The recentangular subset of the grid that is visible on the screen. The viewport can be scrolled to make different areas of the grid visible. The grid can also be zoomed to make more or less of it visible through the viewport.

Extent: The position and size of an entity in a Cartesian (2D) plane. In other words, an object's extent is determined by its x, y, width and height properties.

Zoom Level: the extent to which the grid is zoomed in or out by. Represented as a numerical value that acts as a scale factor applied to the extent of all grid objects (tiles and items).

Logical grid coordinate space: A zoom-independent coordinate space used for specifying the extent of an object in the grid. For example, an object that is 50x50 pixels in logical coordinates remains 50x50 pixels regardless of how far the grid is scrolled in or out.

Physical grid coordinate space: A zoom-dependent coordinate space that expresses the extent of objects in terms of the actual pixels that will be used to draw them. An object that is 50x50 pixels in physical coordinates at a zoom level of 1 will be 100x100 at zoom level of 2 and 25x25 at a zoom level of 0.5, since the physical size of this object will change based on zoom.

Tiles: Grid objects representing fixed-extent tiles that are automatically generated as the grid is resized or the viewport repositioned. Vue components making use of the grid cannot control the generation, position or size of the tiles, but they can control the appearance.

Grid Items: Objects that Vue components making use of the grid can place on the grid. Each item has an extent that determines where its position and size on the grid. The extent of each item should be declared in logical coordinate space - the grid takes care of resizing and repositioning the items as the zoom level changes.

Grid Events: Vue events published by the grid in response to events occurring on the grid. Events associated with a position on the grid will express that position in logical coordinate space.