plai

1.0.1 • Public • Published

plai - Playlist AI Generator

Generate Spotify Playlists With AI!!! For Free! (Only Gemini API Key needed)

Installation

Install plai globally using npm:

npm install -g plai

Usage

Run plai to start the playlist generation process:

plai [prompt]

Replace [prompt] with your desired playlist request.

Options

  • -h, --help: Show help information.
  • -v, --verbose: Show verbose output.
  • -u, --username: Spotify username.
  • -p, --password: Spotify password.
  • -n, --count: Number of songs to add to the playlist (default is 20).
  • -a, --artists: Query followed artists for better recommendations. (defaults to true)
  • -c, --cover: Add a cover image to the playlist. (defaults to true)

Examples

  1. Basic usage (will look for $GEMINI_API_KEY):
plai "My favorite songs"
  1. Using a Gemini API Key:
plai --gemini-api-key=YOUR_API_KEY "Summer vibes"
  1. Specifying username and password (by default asks you):
plai -u your_spotify_username -p your_spotify_password "Chill beats"
  1. Customizing playlist size and features: Don't generate a cover image, and don't use followed artists, generate 30 songs
plai --count 30 --artists=false --cover=false "Study playlist"

Configuration

plai stores user authentication details and tokens in a configuration file located at ~/.config/spotify-cli/config.json.

Uninstall:

npm uninstall -g plai
rm -rf ~/.config/spotify-cli

Acknowledgments

  • Spotify Web API for playlist creation
  • Librespot for authentication.
  • Gemini AI for generation

Contributing

Contributions are welcome! Please create an issue or pull request for any improvements or bug fixes.

Readme

Keywords

none

Package Sidebar

Install

npm i plai

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

4.68 MB

Total Files

13

Last publish

Collaborators

  • --explosion--