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

storybook-device-viewports

v0.1.2

Published

[日本語版](./README.ja.md)

Readme

日本語版

Storybook Device Viewport

A TypeScript library providing viewport configurations for various devices to use with Storybook.

Includes predefined viewport settings for devices from Apple (iPhone / iPad) and Google (Pixel).

Installation

pnpm add -D storybook-device-viewports

Usage

Add viewports in your Storybook configuration file.

To use all devices

// .storybook/preview.ts
import { AWESOME_DEVICE_VIEWPORTS } from 'storybook-device-viewports';

const preview: Preview = {
  parameters: {
    viewport: {
      viewports: AWESOME_DEVICE_VIEWPORTS,
    },
  },
};

To use specific device categories only

import { APPLE_MOBILE_VIEWPORTS, GOOGLE_MOBILE_VIEWPORTS } from 'storybook-device-viewports';

const preview: Preview = {
  parameters: {
    viewport: {
      viewports: {
        ...APPLE_MOBILE_VIEWPORTS,
        ...GOOGLE_MOBILE_VIEWPORTS,
      },
    },
  },
};

Supported Devices

Apple

iPhone

  • iPhone 17 Pro Max / Pro / Air / 17
  • iPhone 16 Pro Max / Pro / Plus / 16 / 16e
  • iPhone 15 Pro Max / Pro / Plus / 15
  • iPhone 14 Pro Max / Pro / Plus / 14
  • iPhone 13 Pro Max / Pro / 13 / Mini
  • iPhone 12 Pro Max / Pro / 12 / Mini
  • iPhone 11 Pro Max / Pro / 11
  • iPhone XS Max / XS / XR / X
  • iPhone 8 Plus / 8
  • iPhone 7 Plus / 7
  • iPhone 6s Plus / 6s
  • iPhone SE (2022 / 2020 / 1st Gen)

iPad

iPad Pro

  • 13" (7th Gen / 1st Gen)
  • 11" (7th Gen / 3rd Gen)
  • 12.9" (6th Gen / 1st Gen)
  • 10.5" (2nd Gen)
  • 9.7" (1st Gen)

iPad Air

  • 13" (6th Gen)
  • 11" (6th Gen)
  • 5th Gen / 4th Gen / 3rd Gen / 2nd Gen

iPad

  • 10th Gen / 9th Gen / 8th Gen / 7th Gen / 6th Gen / 5th Gen

iPad mini

  • 7th Gen / 6th Gen / 5th Gen / 4th Gen

Google (Pixel)

  • Pixel 10
  • Pixel 9
  • Pixel 8 Pro / 8
  • Pixel 7 Pro / 7 / 7a
  • Pixel 6 Pro / 6
  • Pixel 5
  • Pixel 4 XL / 4
  • Pixel 3 XL / 3a XL / 3a / 3
  • Pixel 2 XL / 2
  • Pixel XL / Pixel

Export List

| Export | Description | |--------|-------------| | AWESOME_DEVICE_VIEWPORTS | Viewport settings for all devices | | APPLE_MOBILE_VIEWPORTS | iPhone viewport settings | | APPLE_TABLET_VIEWPORTS | iPad viewport settings | | GOOGLE_MOBILE_VIEWPORTS | Pixel viewport settings |

License

MIT