Files
wp-fedistream/README.md
magdev c540cde0a4 docs: Update README for v0.4.0
- Update version badge to 0.4.0
- Add CI/CD badge
- Add release package installation instructions
- Add license key section
- Add releases section
- Update from-source instructions for submodules

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:35:06 +01:00

186 lines
7.0 KiB
Markdown

# WP FediStream
Stream music over ActivityPub - Build your own music streaming platform for Musicians and Labels.
[![Version](https://img.shields.io/badge/version-0.4.0-blue.svg)](CHANGELOG.md)
[![PHP](https://img.shields.io/badge/PHP-%3E%3D8.3-purple.svg)](https://php.net)
[![WordPress](https://img.shields.io/badge/WordPress-%3E%3D6.4-blue.svg)](https://wordpress.org)
[![License](https://img.shields.io/badge/license-GPL--2.0%2B-green.svg)](https://www.gnu.org/licenses/gpl-2.0.html)
[![CI/CD](https://img.shields.io/badge/CI%2FCD-Gitea%20Actions-green.svg)](https://src.bundespruefstelle.ch/magdev/wp-fedistream/actions)
## Description
WP FediStream is a WordPress plugin that enables musicians, bands, and labels to create their own music streaming platform. It leverages the ActivityPub protocol to connect with the Fediverse, allowing artists to share their music with followers across Mastodon, Pixelfed, and other federated platforms.
**This project is proudly "vibe-coded" using Claude AI** - the entire codebase was created through AI assistance.
### Key Features
- **Artist Management** - Create profiles for solo artists, bands, duos, and collectives
- **Album/Release Management** - Organize music into albums, EPs, singles, and compilations
- **Track Management** - Upload and manage individual tracks with full metadata support
- **Playlist Creation** - Curate playlists with drag-and-drop track ordering
- **Audio Player** - Full-featured player with queue, shuffle, repeat, and volume controls
- **Genre & Mood Taxonomies** - Organize music by genre and mood for easy discovery
- **Licensing Options** - Support for Creative Commons and traditional copyright
- **ActivityPub Integration** - Share releases to the Fediverse with full actor support
- **WooCommerce Integration** - Sell music directly from your site with custom product types
- **User Library** - Favorites, artist follows, and listening history
- **Notifications** - In-app and email notifications for new releases and interactions
## Requirements
- PHP 8.3 or higher
- WordPress 6.4 or higher
- Valid license key (required for frontend features)
### Optional
- [ActivityPub Plugin](https://wordpress.org/plugins/activitypub/) - For Fediverse integration
- [WooCommerce](https://woocommerce.com/) 10.0+ - For selling music
## License Key
WP FediStream requires a valid license key for frontend functionality (player, shortcodes, ActivityPub). The admin dashboard works without a license, allowing you to configure the plugin before activation.
To obtain a license key, contact the author or purchase from the official website.
## Installation
### From Release Package (Recommended)
1. Download the latest release from the [Releases page](https://src.bundespruefstelle.ch/magdev/wp-fedistream/releases)
2. Upload the ZIP file via **Plugins > Add New > Upload Plugin** in WordPress admin
3. Activate the plugin under **Plugins > Installed Plugins**
4. Navigate to **FediStream > Settings** and enter your license key
5. Start using the plugin via the **FediStream** admin menu
### From Source (Development)
1. Clone the repository to your WordPress plugins directory:
```bash
cd wp-content/plugins/
git clone --recurse-submodules https://src.bundespruefstelle.ch/magdev/wp-fedistream.git
```
2. Install Composer dependencies:
```bash
cd wp-fedistream
composer install
```
3. Activate the plugin in WordPress admin under **Plugins > Installed Plugins**
4. Navigate to **FediStream** in the admin menu to get started
## Usage
### Getting Started
1. **Add Artists** - Create profiles for your artists or bands
2. **Create Albums** - Set up albums and assign them to artists
3. **Upload Tracks** - Add tracks to albums with audio files
4. **Create Playlists** - Curate collections of tracks
5. **Share via ActivityPub** - Publish releases to the Fediverse and gain followers
### Custom Post Types
| Post Type | Description | URL Slug |
|-----------|-------------|----------|
| Artist | Musicians, bands, collectives | `/artists/` |
| Album | Albums, EPs, singles, compilations | `/albums/` |
| Track | Individual audio tracks | `/tracks/` |
| Playlist | Curated track collections | `/playlists/` |
### Taxonomies
| Taxonomy | Type | Description |
|----------|------|-------------|
| Genre | Hierarchical | Music genres (Rock > Indie Rock) |
| Mood | Non-hierarchical | Track/playlist moods (Energetic, Calm) |
| License | Hierarchical | Copyright and Creative Commons licenses |
### Shortcodes
| Shortcode | Description |
|-----------|-------------|
| `[fedistream_artist id="123"]` | Display artist profile |
| `[fedistream_album id="456"]` | Display album with tracklist |
| `[fedistream_track id="789"]` | Display track with player |
| `[fedistream_playlist id="101"]` | Display playlist with tracks |
| `[fedistream_latest_releases]` | Recent releases grid |
| `[fedistream_popular_tracks]` | Popular tracks list |
| `[fedistream_player]` | Audio player widget |
| `[fedistream_library]` | User library page |
### User Roles
| Role | Capabilities |
|------|--------------|
| FediStream Artist | Manage own content, upload files, view stats |
| FediStream Label | Manage all content, manage taxonomies, view all stats |
## File Structure
```txt
wp-fedistream/
├── assets/
│ ├── css/ # Stylesheets
│ ├── js/ # JavaScript
│ └── images/ # Images
├── includes/
│ ├── ActivityPub/ # ActivityPub integration
│ ├── Admin/ # Admin interface classes
│ ├── Frontend/ # Frontend components
│ ├── PostTypes/ # Custom post type classes
│ ├── Taxonomies/ # Custom taxonomy classes
│ ├── Roles/ # User roles and capabilities
│ ├── User/ # User library and notifications
│ ├── WooCommerce/ # WooCommerce integration
│ ├── Plugin.php # Main plugin singleton
│ └── Installer.php # Activation/deactivation
├── languages/ # Translation files
├── templates/ # Twig templates
├── vendor/ # Composer dependencies
├── CHANGELOG.md # Version history
└── wp-fedistream.php # Plugin entry point
```
## Releases
Release packages are automatically built via Gitea Actions when a version tag is pushed. Each release includes:
- Production-ready ZIP package with all dependencies
- SHA256 checksum for verification
- Changelog notes extracted from CHANGELOG.md
Download releases from: <https://src.bundespruefstelle.ch/magdev/wp-fedistream/releases>
## Contributing
This project is in early development. Contributions, bug reports, and feature requests are welcome.
- **Repository:** <https://src.bundespruefstelle.ch/magdev/wp-fedistream>
- **Issues:** <https://src.bundespruefstelle.ch/magdev/wp-fedistream/issues>
## License
This project is licensed under the GPL v2 or later.
## Author
**Marco Graetsch**
- Website: <https://src.bundespruefstelle.ch/magdev>
- Email: <magdev3.0@gmail.com>
---
*Built with Claude AI*