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

@loickit-v/player

v0.0.18

Published

loickit player components for vue

Readme

@loickit-v/player

Components

LPlayer

player component for vue

Props

  • src

    <string> | undefined

    the video source

  • active

    <boolean>

    default: false

    video active, when it changed, video.paused will changed

  • muted

    <boolean>

    video muted

    default: true

    we provide a plugin usePlayer to control global muted

  • poster

    <string>

    video poster

  • loop

    <boolean>

    default: true

    video loop

Expose

  • switchStatus

    switch video.paused

  • state readonly

    video state

    • isPaused
    • isLoading
    • duration
    • currentTime

Usage

<script setup lang="ts">
defineOptions({ name: 'App' });
import { ref } from 'vue';
import { LPlayer } from '@loickit-v/player';

const muted = ref(true);
</script>

<template>
  <LPlayer active :muted="muted" src="" />
</template>

<style></style>

CSS Variable

/* 进度条高度 */
--loickit-player-progress-height: 10px;
/* 进度条圆角 */
--loickit-player-progress-radius: 5px;
/* 进度条按钮大小 */
--loickit-player-progress-btn-size: 20px;
/* 进度条背景色 */
--loickit-player-progress-bar-color: rgba(255, 255, 255, 0.5);
/* 进度条颜色 (进度条的值) */
--loickit-player-progress-color: #fff;
/* 进度条拖拽区域大小 */
--loickit-player-progress-drag-area: 25px;
/* 进度条bottom */
--loickit-player-progress-bottom: 80px;
/* 时间字体大小 */
--loickit-player-time-size: 16px;
/* 时间字体颜色 */
--loickit-player-time-color: #ccc;
/* 居中的图标(loading, pause)大小 */
--loickit-player-icon-size: auto;

Hooks

usePlayer

if u have more video player and want to unifield control their muted or some other status(wait...), use it

Usage

// entry
import lplayer from '@loickit-v/player';

const app = createApp(App);
app.use(lplayer).mount('#app');
<script>
import { usePlayer } from '@loickit-v/player';

const p = usePlayer();
</script>
<template>
  <button @click="p.toggleMuted">control all video</button>
</template>
<script>
import { usePlayer, LPlayer } from '@loickit-v/player';
const list = reacitve([]);
const p = usePlayer();
</script>
<template>
  <LPlayer v-for="i in list" :key="i.id" active :muted="p.muted" />
</template>