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

@openpets/suno

v1.0.1

Published

Generate songs, lyrics, and music with Suno AI - create custom music from text prompts

Readme

Suno AI Music Generation Plugin

Generate songs, lyrics, and music with Suno AI - create custom music from text prompts.

Quick Start

1. Get Your Suno Cookie

The Suno API requires a session cookie from suno.com:

  1. Go to suno.com and log in

  2. Open browser DevTools (F12 or right-click → Inspect)

  3. Go to Application tab → Cookieshttps://suno.com

  4. Find and copy these cookie values:

    • __client (required)
    • __client_uat
    • ajs_anonymous_id
  5. Format as a single string:

    __client=your_client_value; __client_uat=your_uat_value; ajs_anonymous_id=your_id

Alternative method (easier):

  1. Open DevTools → Network tab
  2. Make any request on suno.com (e.g., click Create)
  3. Click any request to studio-api.prod.suno.com
  4. In Headers, find Cookie: under Request Headers
  5. Copy the entire cookie string

2. Configure Environment

# Create .env file
echo 'SUNO_COOKIE="your_cookie_string_here"' > .env

# Optional: For CAPTCHA solving during generation
echo 'TWOCAPTCHA_KEY="your_2captcha_key"' >> .env

3. Install & Test

pnpm install
opencode run "get my suno credits"

Available Tools

| Tool | Description | |------|-------------| | generate-music | Generate songs from text prompts | | custom-generate-music | Generate with custom lyrics, tags, title | | generate-lyrics | Generate lyrics from a prompt | | extend-audio | Extend existing songs from a timestamp | | concatenate-clips | Combine clips into full songs | | generate-stems | Separate audio into stems (vocals, drums, etc.) | | get-audio | Get song info and status | | get-clip | Get detailed clip information | | get-lyric-alignment | Get word-by-word timing for karaoke | | get-credits | Check account credits |

Usage Examples

Generate a Song

generate a song about summer adventures

Custom Song with Specific Style

create a custom song with:
- lyrics: "Walking down the street, feeling the beat..."
- style: pop, upbeat, female vocals
- title: Summer Vibes

Generate Lyrics Only

generate lyrics about missing someone

Check Generation Status

get audio status for song id abc123

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | SUNO_COOKIE | Yes | Session cookie from suno.com | | TWOCAPTCHA_KEY | No | 2Captcha API key for solving CAPTCHAs |

Troubleshooting

"Failed to get session ID"

  • Your cookie has expired. Get a fresh cookie from suno.com

"CAPTCHA required"

  • Suno sometimes requires CAPTCHA verification
  • Add TWOCAPTCHA_KEY for automatic solving, or try again later

"No credits remaining"

  • Check your Suno subscription at suno.com/account

Models

Default model: chirp-v3-5

You can specify different models when generating music via the model parameter.

Notes

  • Each generation creates 2 song variations
  • Generation takes 30-60 seconds
  • Use waitForCompletion: true to wait for audio URLs
  • Cookies expire periodically - refresh if you get auth errors