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

astro-caliper

v1.1.0

Published

Astro toolbar app designed to assist developers in converting designs to code. It provides visual aids and inspection tools directly within the browser.

Readme

Astro Caliper banner

Layout tool for Astro dev toolbar

npm verions dependencies

Caliper is a precision layout tool for the Astro (v 5+) Dev Toolbar. Stop guessing margins and hunting through the "Elements" tab — measure, inspect and check alignment of your components with pixel perfection directly in the browser.

🚀 Quick Features

| Feature | Action / Shortcut | Description | | :----------------- | :----------------- | :---------------------------------------------------------------------- | | 🔍 Inspector | Hover Element | View live dimensions, font families, and computed styles. | | 📏 Ruler | Alt / + Drag | Measure pixel-perfect X & Y distances between any two points. | | 📱 Breakpoints | Top Overlay | Real-time indicator for active CSS breakpoints (SM, MD, LG, etc.). | | ⚓ Click Trap | Hold P | Disable click events to prevent accidental navigation while inspecting. | | 🎨 Outlines | Toggle Settings | Visualizes element boundaries to debug layout shifts and alignment. | | 💾 Persistence | Auto-save | Remembers your "ON" state and settings across page refreshes. |

🔍 Tooltip Inspector

GIF featuring tooltip inspector feature

Provides detailed information about element when you hover over it.

  • Shows element tag name.
  • Shows width and height of hovered element.
  • Shows font family, size, line height, and font weight for elements with text content.
  • Adds a red outline to all elements and stronger outline to element currently being inspected to reveal its boundaries.

Individual tooltip features can be turned on and off in dedicated settings panel activated through ⚙️ button located on the breakpoint indicator.

📏 Ruler

GIF featuring ruler feature

Hold Alt / Option key and drag to measure X & Y distance between elements.

📱 Breakpoint Indicator

GIF featuring breakpoint indicator feature

Current breakpoint (SM, MD etc.) and screen width is shown at the top of the screen.

⚓ Click trap

GIF featuring click trap feature

Hold P to disable click events and prevent accidental navigation (ideal for dev tools mobile mode with Touch Emulation).

💾 Persisted ON state

Tool can persist its ON state (trough localstorage) between page reloads and navigation (can be turned off in settings).

Installation

pnpm add -D astro-caliper
# or
npm install --save-dev astro-caliper

Usage

Add to your Astro config:

// astro.config.mjs
import { defineConfig } from "astro/config";
import caliper from "astro-caliper";

export default defineConfig({
  integrations: [caliper()],
});

Configuration

Caliper accepts an optional configuration object:

// astro.config.mjs
import { defineConfig } from "astro/config";
import caliper from "astro-caliper";

export default defineConfig({
  integrations: [
    caliper({
      // Custom breakpoints (defaults to Tailwind CSS breakpoints)
      breakpoints: [
        { name: "XS", minWidth: 0 },
        { name: "SM", minWidth: 640 },
        { name: "MD", minWidth: 768 },
        { name: "LG", minWidth: 1024 },
        { name: "XL", minWidth: 1280 },
        { name: "2XL", minWidth: 1536 },
      ],
      // Outline color for all elements
      outlineColor: "rgba(255, 0, 0, 0.2)",
      // Outline color for the active/hovered element
      activeOutlineColor: "red",
    }),
  ],
});

Options

| Option | Type | Default | Description | | -------------------- | -------------------------------------- | ------------------------ | ---------------------------------------- | | breakpoints | { name: string; minWidth: number }[] | Tailwind defaults | Breakpoint definitions for the indicator | | outlineColor | string | "rgba(255, 0, 0, 0.2)" | Outline color for all elements | | activeOutlineColor | string | "red" | Outline color for highlighted elements |

All options are optional — Caliper works out of the box with sensible defaults.

Usage

  1. Run your Astro dev server (npm run dev).
  2. Open the Astro Developer Toolbar (usually at the bottom of the screen).
  3. Click on the "Caliper" icon on the Astro dev toolbar in the bottom of the screen.