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

slidev-addon-quantide-layout-xhs

v0.2.7

Published

Quantide portrait layout addon for Slidev

Readme

slidev-addon-quantide-layout-xhs

Open in StackBlitz

A Slidev addon for Xiaohongshu-style layouts with Pixabay image integration.

Install

Add the following frontmatter to your slides.md:

---
addons:
  - slidev-addon-quantide-layout-xhs
---

If you want to use !!! tip, !!! note, !!! warning and other admonition syntax, add slidev-addon-quantide-admonition explicitly:

---
addons:
  - slidev-addon-quantide-layout-xhs
  - slidev-addon-quantide-admonition
---

Layouts

This addon provides the following layouts:

  • cover-photo-down - Cover with photo at bottom half
  • cover-photo-up - Cover with photo at top half
  • image-down - Content with image at bottom
  • image-top - Content with image at top
  • grid - Grid layout for cards
  • blank - Blank layout
  • default - Default layout

Configuration

Pixabay API Key Setup

To use the cover-photo-* layouts with keyword-based image search, you need to configure a Pixabay API Key:

  1. Get your free API key from Pixabay

  2. Add to your .env file (in project root):

    VITE_PIXABAY=your_pixabay_api_key_here
  3. Restart your Slidev dev server

Usage Example

---
layout: cover-photo-down
title: "My Article Title"
installment: "Series Name"
excerpt: "A brief description of the article"
img: "nature landscape"  # Can be a keyword or full URL
---

Frontmatter Options

| Property | Type | Description | | ------------- | ------ | ------------------------------ | | title | string | Article title | | installment | string | Series name (use "NA" to hide) | | excerpt | string | Article excerpt/description | | img | string | Image URL or search keyword | | photo | string | Custom photo credit text |

Image Source Priority

  1. If img is a full URL (starts with http), it will be used directly
  2. If img is a keyword and VITE_PIXABAY is configured in .env, it will search Pixabay
  3. If no API key is configured, the layout will show a placeholder

Troubleshooting

Images not loading

  1. Check browser console for error messages
  2. Verify VITE_PIXABAY is set in .env (project root directory)
  3. Ensure you've restarted the dev server after adding the API key
  4. Check that your Pixabay API key is valid and has not exceeded rate limits

CORS issues

If you encounter CORS errors when loading images, try:

  • Using a different image source
  • Configuring a proxy in your Vite config