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

valaxy-addon-meting

v0.2.0

Published

[![npm](https://img.shields.io/npm/v/valaxy-addon-meting)](https://www.npmjs.com/package/valaxy-addon-meting)

Readme

valaxy-addon-meting

npm

Global music player based on APlayer and MetingJS.

Usage

import { defineConfig } from 'valaxy'
import { addonMeting } from 'valaxy-addon-meting'

export default defineConfig({
  addons: [
    addonMeting({
      global: true,
      props: {
        id: '2049540645',
        server: 'netease',
        type: 'song',
      },
    }),
  ],
})

Custom API

Since the default api.i-meto.com is no longer available, you can set your own Meting API endpoint:

addonMeting({
  global: true,
  props: {
    id: '2049540645',
    server: 'netease',
    type: 'song',
    api: 'https://your-meting-api.example.com/api?server=:server&type=:type&id=:id&r=:r',
  },
})

API URL supports placeholders: :server, :type, :id, :auth, :r

See MetingJS - Advanced Usage for details.

Configuration

MetingOptions

| Option | Type | Default | Description | | --- | --- | --- | --- | | global | boolean | false | Enable global fixed player on all pages | | props | MetingProps | — | Props for <meting-js> element (MetingJS options) | | options | object | — | Addon-specific behaviors (see below) |

props (MetingProps)

All attributes from MetingJS options:

| Prop | Type | Default | Description | | --- | --- | --- | --- | | id | string | — | Song / playlist / album ID or search keyword | | server | 'netease' \| 'tencent' \| 'kugou' \| 'xiami' \| 'baidu' | — | Music platform | | type | 'song' \| 'album' \| 'artist' \| 'playlist' \| 'search' | — | Resource type | | auto | string | — | Music link for auto-parsing | | api | string | — | Custom Meting API URL | | fixed | boolean | false | Enable fixed (sticky bottom) mode | | mini | boolean | false | Enable mini mode | | autoplay | boolean | false | Audio autoplay | | theme | string | '#2980b9' | Theme color | | loop | 'all' \| 'one' \| 'none' | 'all' | Loop mode | | order | 'list' \| 'random' | 'list' | Play order | | preload | 'auto' \| 'metadata' \| 'none' | 'auto' | Audio preload | | volume | number | 0.7 | Default volume | | mutex | boolean | true | Pause other players when playing | | lrc-type | number | 0 | Lyric type | | list-folded | boolean | false | Fold playlist by default | | list-max-height | string | '340px' | Max height of playlist | | storage-name | string | 'metingjs' | localStorage key for player settings |

Self-hosted media attributes: name, artist, url, cover.

options

| Option | Type | Default | Description | | --- | --- | --- | --- | | animationIn | boolean | false | Enable slide-in animation on load | | autoHidden | boolean | false | Auto-hide player when collapsed | | lyricHidden | boolean | false | Hide lyric panel |

Priority

Props are resolved in this order (highest to lowest):

  1. Component props (passed directly to <MetingJs>)
  2. Addon props config (from addonMeting({ props: { ... } }))
  3. Built-in defaults

Component Usage

Besides the global player, you can use the <MetingJs> component in any page:

<MetingJs id="28391863" server="netease" type="song" />

FAQ

  • import 'meting/dist/Meting.min.js' is not working, only CDN works.