Download the PHP package metowolf/meting without Composer
On this page you can find all versions of the php package metowolf/meting. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download metowolf/meting
More information about metowolf/meting
Files in metowolf/meting
Package meting
Short Description A powerful music API framework to accelerate development.
License MIT
Homepage https://github.com/metowolf/Meting
Informations about the package meting
:cake: A powerful music API framework for Node.js
Introduction
Meting is a powerful music API framework designed to accelerate music-related development. This is the Node.js version of the original PHP Meting project, providing unified APIs for multiple music platforms.
Features
- ๐ต Multi-Platform Support - Supports NetEase Cloud Music, Tencent Music, KuGou, Baidu Music, and Kuwo
- ๐ Lightweight & Fast - Zero external dependencies, built with Node.js native modules only
- ๐ฑ Modern Async/Await - Promise-based APIs with full async/await support
- ๐ Unified Interface - Standardized data format across all music platforms
- ๐ Built-in Encryption - Platform-specific encryption and signing built-in
- โก Chain-able API - Fluent interface design for elegant code
Requirements
- Node.js >= 12.0.0
- No external dependencies required
Installation
Install via npm:
Or via yarn:
Quick Start
Basic Usage
Comprehensive Example
API Documentation
Constructor
server(string): Music platform ('netease', 'tencent', 'kugou', 'baidu', 'kuwo')
Core Methods
Platform Management
Search & Discovery
Search Options
type(number, optional) - Search category for providers that support it. NetEase uses1for songs (default),10for albums,100for artists, etc.page(number, optional) - Page number starting from 1. Defaults to1.limit(number, optional) - Number of results per page. Defaults to30.
Music Information
Media Resources
Supported Platforms
| Platform | Code | Search | Song | Album | Artist | Playlist | URL | Lyric | Picture |
|---|---|---|---|---|---|---|---|---|---|
| NetEase Cloud Music | netease |
โ | โ | โ | โ | โ | โ | โ | โ |
| Tencent Music | tencent |
โ | โ | โ | โ | โ | โ | โ | โ |
| KuGou Music | kugou |
โ | โ | โ | โ | โ | โ | โ | โ |
| Baidu Music | baidu |
โ | โ | โ | โ | โ | โ | โ | โ |
| Kuwo Music | kuwo |
โ | โ | โ | โ | โ | โ | โ | โ |
Data Format
When format(true) is enabled, all platforms return standardized JSON:
Development
Running Examples
Running Tests
Build from Source
Error Handling
The library uses Promise-based error handling. Always wrap API calls in try-catch blocks:
Rate Limiting
To avoid being rate-limited by music platforms:
- Add delays between consecutive requests
- Don't make too many requests in a short time
- Consider implementing request queuing for heavy usage
Important Notes
- Copyright Compliance: Respect music platform terms of service and copyright laws
- Platform Changes: Music platform APIs may change without notice
- Availability: Some features may be restricted based on geographical location
- Rate Limits: Each platform has different rate limiting policies
Related Projects
- Original PHP Meting - The original PHP version
- MoePlayer/Hermit-X - WordPress music player
- mengkunsoft/MKOnlineMusicPlayer - Online music player
- injahow/meting-api - RESTful API wrapper
- yiyungent/Meting4Net - .NET version
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Meting Node.js ยฉ metowolf, Released under the MIT License.
Made with โค๏ธ for the music community
All versions of meting with dependencies
ext-curl Version *
ext-openssl Version *