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

@opengraphplus/tailwind

v0.1.0

Published

TailwindCSS plugin for OpenGraph+

Readme

OpenGraph+ Tailwind Plugin

npm version Test License: MIT

TailwindCSS v4 plugin that adds variants for styling elements specifically for OpenGraph image generation via OpenGraph+.

Installation

npm install @opengraphplus/tailwind

Usage

In your CSS file where you import TailwindCSS:

@import "tailwindcss";
@plugin "@opengraphplus/tailwind";

Then use the ogplus: variant on any utility class:

<!-- Hide elements in OpenGraph images -->
<nav class="ogplus:hidden">...</nav>

<!-- Show elements only in OpenGraph images -->
<div class="hidden ogplus:block">Special OG content</div>

<!-- Different styling for OG -->
<h1 class="text-2xl ogplus:text-4xl">Title</h1>

Provider-Specific Variants

Target specific social platforms with provider variants:

<!-- Different padding per provider -->
<div class="ogplus:p-8 ogplus-linkedin:p-12 ogplus-twitter:p-6">
  Content
</div>

<!-- Provider-specific backgrounds -->
<div class="ogplus:bg-slate-900 ogplus-twitter:bg-blue-500 ogplus-linkedin:bg-blue-700">
  Content
</div>

Available provider variants:

  • ogplus-linkedin: - LinkedIn
  • ogplus-twitter: - Twitter/X
  • ogplus-facebook: - Facebook
  • ogplus-discord: - Discord
  • ogplus-whatsapp: - WhatsApp
  • ogplus-apple: - Apple (iMessage, etc.)
  • ogplus-bluesky: - Bluesky

How It Works

This plugin adds custom variants that target the data-ogplus attribute on the <html> element. When OpenGraph+ renders your page for image generation, it adds this attribute:

<!-- Base render -->
<html data-ogplus>

<!-- Provider-specific render -->
<html data-ogplus="twitter">

The generated CSS uses :where() selectors to match these attributes:

/* ogplus:hidden generates */
:where([data-ogplus]) .ogplus\:hidden { display: none; }

/* ogplus-twitter:bg-blue-500 generates */
:where([data-ogplus="twitter"]) .ogplus-twitter\:bg-blue-500 { background-color: #3b82f6; }

Plain CSS Usage

You can also use the data attributes directly in your CSS without Tailwind:

/* Target all OpenGraph renders */
[data-ogplus] .nav,
[data-ogplus] .footer { display: none; }

[data-ogplus] .hero { padding: 60px; background: #0f172a; }

/* Target specific providers */
[data-ogplus="linkedin"] .hero { padding: 80px; }
[data-ogplus="twitter"] .hero { background: #1da1f2; }