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

livephoto-vue

v1.0.2

Published

A Vue 3 Live Photo component with dual-mode support (Apple LivePhotosKit + Custom implementation)

Downloads

8

Readme

LivePhoto Vue

一个强大的Vue 3 Live Photo组件,支持Apple官方模式和自定义实现。

特性

  • 🍎 双模式支持:Apple官方LivePhotosKit + 自定义实现
  • 📱 移动端优化:完美适配移动设备
  • ⚡ 开箱即用:TypeScript支持,简单配置
  • 🎨 高度定制:支持自定义样式和交互

安装

npm install livephoto-vue

使用

<script setup>
import { LivePhoto } from 'livephoto-vue'
</script>

<template>
  <LivePhoto 
    photo-src="path/to/photo.jpg"
    video-src="path/to/video.mp4"
    :use-apple="false"
    :muted="true"
  />
</template>

API

| 参数 | 类型 | 默认值 | 说明 | |------|------|--------|------| | photo-src | String | '' | 照片资源URL | | video-src | String | '' | 视频资源URL | | use-apple | Boolean | false | 是否使用Apple官方模式 | | muted | Boolean | false | 是否静音播放 | | loop | Boolean | false | 是否循环播放 |

模式说明

自定义模式 (use-apple=false)

  • 显示"LIVE"标识按钮
  • 点击按钮播放/暂停视频
  • 点击其他区域预览原图
  • 适合大多数使用场景

Apple模式 (use-apple=true)

  • 使用Apple官方LivePhotosKit
  • 提供与iOS设备相同的交互体验
  • 长按触发播放
  • 需要符合Apple Live Photo格式

许可证

MIT