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

hexo-filter-live-photo

v0.1.4

Published

Add live photo to your Hexo blog.

Downloads

83

Readme

hexo-filter-live-photo

A lightweight and easy-to-use Hexo plugin designed to elegantly insert Live Photos into your Hexo blog.

一款轻量、易用的 Hexo 插件,用于在 Hexo 博客中优雅插入动态照片。

Language: English | 中文

Features

This plugin is a secondary development based on @cykzht/hexo-live-photo. Key features include:

  • Core Functionality: Comprehensive display and playback settings for Live Photos, including optimization for the WeChat environment.

  • Code Block Syntax: Insert Live Photos effortlessly using custom Markdown code blocks.

  • Loading States: Built-in visual feedback during video buffering.

  • Loop Support: Configurable looping for seamless motion.

  • Interactive Audio: Mute/Unmute toggle with optimized audio playback logic.

  • Enhanced Experience: Various optimizations across visual design, performance, and user interaction.

[!IMPORTANT] This plugin does not support Hexo's Tag syntax. If you prefer using Tag plugins, please refer to @cykzht/hexo-live-photo.

Demonstration

You can also download this Markdown file and place it in your Hexo blog to test the effect. Alternatively, you can visit this page directly to see how the plugin performs under the Hexo-Butterfly theme.

Installation

Run the following command in your Hexo project root directory:

npm install hexo-filter-live-photo --save

Configuration

Add the following options to your Hexo configuration file (_config.yml):

livephoto:
  enable: true
  autoplay: true                # Autoplay when entering the viewport
  hover_to_play: true           # Enable play on mouse hover
  click_to_play: true           # Enable play on click
  lazy_load: true               # Enable lazy loading
  threshold: 0.8                # Intersection ratio to trigger autoplay
  badge: true                   # Show the "Live" badge
  badge_text: 'Live'            # Badge text content
  badge_position: 'top-left'    # Position: bottom-left, bottom-right, top-left, top-right
  loading_animation: true       # Show loading spinner
  preload: 'auto'               # Video preload strategy: auto, metadata, none
  keep_observing: false         # Whether to continue observing elements after trigger
  hover_delay: 300              # Delay before hover playback (ms)
  weixin_disable_autoplay: true # Disable autoplay in WeChat environment
  loop: false                   # Global loop setting for videos
  inject_to: default            # Injection scope: default, home, post, page, etc. Defaults to default.

Usage

Insert Live Photos by using the livephoto or live-photo custom code block in your Markdown files.

```livephoto
src: /live-photo.mp4
```

OR

```live-photo
video: /live-photo.mp4
cover: /live-photo-cover.jpg
```

Parameter Details:

  • video (or src, live): [Required] URL of the video file.

  • cover (or img, poster): URL of the cover image.

  • alt: ALT text for the cover image.

  • caption: Title or caption displayed below the Live Photo.

  • width: Container width (e.g., 600px, 100%, 50vw, 30rem).

  • height: Container height (e.g., 400px, 80%, auto).

  • loop: Whether to loop the video. This local setting overrides the global configuration.

Credits

This plugin is developed based on @cykzht/hexo-live-photo.

Icon resources provided by: Iconfont.

License

MIT License

More Information

For more information, please refer to my blog post (Chinese).