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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@katzumi/slidev-addon-ogp-image

v0.0.5

Published

Slidev add-on for embedding OGP images in slides

Readme

Slidev OGP Image Add-on

A Slidev addon that displays Open Graph Protocol (OGP) data from URLs as interactive cards in your presentations.

Features

  • OGP Data Display: Renders Open Graph meta tags as formatted cards
  • Vue Component Integration: Provides a reusable Vue component for Slidev
  • Interactive Cards: Displays clickable cards with page information
  • Error Handling: Graceful fallbacks when OGP data is unavailable
  • Click-to-Open: Opens URLs in new tabs when cards are clicked

Example

example.md
screenshot

Installation

npm i @katzumi/slidev-addon-ogp-image

Usage

Add the addon to your slides.md frontmatter:

---
addons:
  - "@katzumi/slidev-addon-ogp-image"
---

Use the component in your slides:

<OgpImage url="https://github.com/k2tzumi/slidev-addon-ogp-image" />

<OgpImage 
  url="https://github.com/k2tzumi/slidev-addon-ogp-image"
  :width="800"
  :height="400"
/>

Component Properties

  • url (required): URL to fetch OGP data from
  • width: Display width for the card (default: 1200px)
  • height: Display height for the card (default: 630px)

Project Structure

slidev-addon-ogp-image/
├── index.ts                    # Main addon entry point
├── setup/
│   └── main.ts                # Client setup
├── lib/
│   └── ogp-generator.ts       # OGP fetching and processing logic
├── components/
│   └── OgpImage.vue           # Vue component
└── assets/
    └── NotoSansJP-Bold.ttf    # Optional font file

Examples

Single Link

---
addons:
  - "@katzumi/slidev-addon-ogp-image"
---

# Check out this resource

<OgpImage url="https://docs.microsoft.com/en-us/azure/" />

Multiple Links

---
# Multiple Links

<div class="grid grid-cols-2 gap-4">
  <OgpImage url="https://vuejs.org/" />
  <OgpImage url="https://react.dev/" />
</div>

Technical Limitations

Browser Security Restrictions

Due to browser same-origin policy restrictions, this addon has the following limitations:

  • CORS Restrictions: Direct fetching of OGP data from external domains is blocked by browsers
  • Proxy Dependency: Requires external CORS proxy services for cross-origin requests
  • Network Reliability: Dependent on third-party proxy service availability

Recommended Usage

  • Development: Suitable for development and demonstration purposes
  • Production: Consider server-side OGP fetching for production environments
  • Fallbacks: Always provide fallback content when OGP data is unavailable

Browser Compatibility

  • Modern browsers with ES2015+ support
  • Chrome 60+
  • Firefox 55+
  • Safari 11+
  • Edge 79+

Development

Setup

# Install dependencies
npm install

# Build the addon
npm run build

# Watch mode for development
npm run dev

Local Development

The addon is designed to work as a local addon in your Slidev project. For development:

  1. Clone this repository
  2. Install dependencies
  3. Link to your Slidev project for testing

Contributing

Contributions are welcome! Please ensure all code follows the project's coding standards and includes appropriate tests.

License

MIT License - see LICENSE file for details.

Acknowledgments

This addon builds upon the Slidev ecosystem and leverages Vue.js component architecture for seamless integration with presentation workflows.