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

@joelmturner/zine-viewer-web-component

v0.1.6

Published

A web component for viewing zines or small books.

Downloads

145

Readme

zine-web-component

Preview

https://github.com/user-attachments/assets/b78a8912-df38-423c-aa78-4e412dadc595

Local Development

Run pnpm dev to start the local development server.

Publishing (maintainers)

Publishing runs from GitHub Actions (.github/workflows/publish-npm.yml).

  1. Add an npm Automation or Granular token with publish access to this package as the repo secret NPM_TOKEN (GitHub repo → Settings → Secrets and variables → Actions).
  2. Bump version in package.json, commit, and push a matching git tag (for example v0.1.2).
  3. Create a GitHub Release from that tag and publish the release. The workflow publishes to npm when the release is published. You can also run the workflow manually via Actions → Publish to npm → Run workflow.

Usage

Use the zine-web-component element in your HTML.

Add the script to the head of your page.

<script
  type="module"
  src="https://unpkg.com/@joelmturner/zine-viewer-web-component?module"
></script>

Add an element with the img-src and back-img-src attributes for each page of the zine.

<zine-viewer id="zine-viewer">
  <div
    img-src="https://res.cloudinary.com/joelmturner/image/upload/v1736665494/zines/pick%20me%20ups/FRONT.jpg"
    back-img-src="https://res.cloudinary.com/joelmturner/image/upload/v1736665494/zines/pick%20me%20ups/1.jpg"
  ></div>
  <div
    img-src="https://res.cloudinary.com/joelmturner/image/upload/v1736665494/zines/pick%20me%20ups/2.jpg"
    back-img-src="https://res.cloudinary.com/joelmturner/image/upload/v1736665494/zines/pick%20me%20ups/3.jpg"
  ></div>
  <div
    img-src="https://res.cloudinary.com/joelmturner/image/upload/v1736665494/zines/pick%20me%20ups/4.jpg"
    back-img-src="https://res.cloudinary.com/joelmturner/image/upload/v1736665494/zines/pick%20me%20ups/5.jpg"
  ></div>
  <div
    img-src="https://res.cloudinary.com/joelmturner/image/upload/v1736665494/zines/pick%20me%20ups/6.jpg"
    back-img-src="https://res.cloudinary.com/joelmturner/image/upload/v1736665494/zines/pick%20me%20ups/BACK.jpg"
  ></div>
</zine-viewer>

Page size (size attribute and CSS variables)

Each page uses --page-width and --page-height on the host (defaults match one panel of an 8-page US Letter sheet: 4×2 landscape imposition, ~2.75×4.25 in, ratio 11:17).

Use the size attribute for common presets (ids are case-insensitive):

| size value | Notes | | ---------------- | ------------------------------------------ | | letter-8up | default ratio; 8-up one-sheet Letter panel | | letter-half | same ratio as letter-8up (5.5×8.5 in half-sheet) | | a5 | ISO A5 portrait (148×210 mm) | | a6 | ISO A6 portrait (105×148 mm) | | square | 1:1 page | | digest-6x9 | 6×9 in trade / chapbook proportion |

Omit size (or use an unknown value) to rely only on CSS: set --page-width and --page-height on zine-viewer yourself. If you use custom properties that way, leave size unset so the component does not overwrite them with inline styles.

Example:

<zine-viewer size="a5"> … </zine-viewer>

License

MIT