Content Music
@alvagante/content-musicv2026.06.26.1
01README
Generate songs from topics using Claude for lyrics and 1min.ai (Suno or Lyria) for audio. Part of the @alvagante content-media suite.
02Models
@alvagante/content-musicv2026.06.23.3content_music.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiKey? | string | |
| anthropicApiKey? | string | |
| outputDir? | string |
fn generate(topic: string, genre: string, mood: string, title?: string, instrumental: boolean, lyricsOnly: boolean, outputDir?: string)
Generate a song from a topic. Uses Claude to write lyrics (Suno with vocals), then 1min.ai to produce audio. Use model=lyria-002 for instrumental-only output.
| Argument | Type | Description |
|---|---|---|
| topic | string | |
| genre | string | |
| mood | string | |
| title? | string | |
| instrumental | boolean | |
| lyricsOnly | boolean | |
| outputDir? | string |
fn generatePlaylist(topic: string, genre: string, mood: string, title?: string, instrumental: boolean, outputDir?: string)
Generate music and return all track variants produced by a single provider API call (Suno returns 2 variants). Writes a playlist resource with all tracks. Use model=lyria-002 for instrumental-only output.
| Argument | Type | Description |
|---|---|---|
| topic | string | |
| genre | string | |
| mood | string | |
| title? | string | |
| instrumental | boolean | |
| outputDir? | string |
Resources
song(infinite)— Generated song metadata: title, lyrics, genre, model, filename, audioUrl
playlist(infinite)— All track variants returned by a single music generation call, with titles and filenames.
Files
audioFile(audio/mpeg)— Generated audio file (MP3 for Suno, WAV for Lyria)
03Previous Versions
2026.06.23.3
2026.06.23.2
2026.06.23.1
2026.06.19.1
Modified 1 models
2026.06.16.1
04Stats
A
100 / 100
Downloads
4
Archive size
9.1 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
05Platforms
06Labels