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

copyright-free-songs

v1767774.444.65

Published

Professional integration for https://supermaker.ai/music/copyright-free-songs/

Readme

copyright-free-songs

A JavaScript package providing access to a curated list of copyright-free songs and related metadata. This utility simplifies the process of finding and utilizing music for your projects without licensing concerns.

Installation

Install the package using npm: bash npm install copyright-free-songs

Usage Examples

Here are some examples of how to use the copyright-free-songs package in your JavaScript/Node.js projects:

1. Retrieving a Random Song: javascript const copyrightFreeSongs = require('copyright-free-songs');

const randomSong = copyrightFreeSongs.getRandomSong();

console.log('Random Song:', randomSong); // Expected output (example): // Random Song: { title: 'Inspiring Piano', artist: 'Anonymous', genre: 'Classical', url: 'https://example.com/inspiring-piano.mp3' }

2. Filtering Songs by Genre: javascript const copyrightFreeSongs = require('copyright-free-songs');

const classicalSongs = copyrightFreeSongs.getSongsByGenre('Classical');

console.log('Classical Songs:', classicalSongs); // Expected output (example): // Classical Songs: [ { title: 'Inspiring Piano', artist: 'Anonymous', genre: 'Classical', url: 'https://example.com/inspiring-piano.mp3' }, ... ]

3. Searching for a Song by Title (Partial Match): javascript const copyrightFreeSongs = require('copyright-free-songs');

const searchResults = copyrightFreeSongs.searchSongs('Inspiring');

console.log('Search Results:', searchResults); // Expected output (example): // Search Results: [ { title: 'Inspiring Piano', artist: 'Anonymous', genre: 'Classical', url: 'https://example.com/inspiring-piano.mp3' }, ... ]

4. Getting All Songs: javascript const copyrightFreeSongs = require('copyright-free-songs');

const allSongs = copyrightFreeSongs.getAllSongs();

console.log('All Songs:', allSongs); // Expected output (example): // All Songs: [ { title: 'Inspiring Piano', artist: 'Anonymous', genre: 'Classical', url: 'https://example.com/inspiring-piano.mp3' }, { title: 'Upbeat Electronic', artist: 'Producer X', genre: 'Electronic', url: 'https://example.com/upbeat-electronic.mp3' }, ...]

5. Using with Express.js to serve song metadata: javascript const express = require('express'); const copyrightFreeSongs = require('copyright-free-songs');

const app = express(); const port = 3000;

app.get('/songs/random', (req, res) => { res.json(copyrightFreeSongs.getRandomSong()); });

app.listen(port, () => { console.log(Server listening at http://localhost:${port}); });

API Summary

  • getRandomSong(): Song: Returns a randomly selected song object from the available list. The Song object contains title, artist, genre, and url properties.
  • getSongsByGenre(genre: string): Song[]: Returns an array of song objects that match the specified genre.
  • searchSongs(query: string): Song[]: Returns an array of song objects whose titles contain the specified query string (case-insensitive).
  • getAllSongs(): Song[]: Returns an array containing all available song objects.

Where Song object structure is: typescript { title: string; artist: string; genre: string; url: string; }

License

MIT License

This package is part of the copyright-free-songs ecosystem. For advanced features and enterprise-grade tools, visit: https://supermaker.ai/music/copyright-free-songs/