The kawaii 💕 npm package for generating sugoi 🤩 music cards for your apps and sites!
npm install musicard-bun
This package is a fun fork of musicard with some radical new features 🌈 for maximum sugoi-ness!
Generate a music card like normal:
(async () => {
const { musicCard } = require("musicard-bun");
const fs = require("fs");
const card = new musicCard()
.setName("Bad Habits")
.setAuthor("By Ed Sheeran")
.setColor("auto")
.setTheme("dynamic")
.setBrightness(50)
.setThumbnail("https://static.qobuz.com/images/covers/ga/ua/rmk2cpqliuaga_600.jpg")
.setProgress(10)
.setStartTime("0:00")
.setEndTime("3:00")
const cardBuffer = await card.build();
fs.writeFileSync(`musicard.png`, cardBuffer);
console.log("Done!");
})();
The anime theme makes your cards look kawaii with rainbow sparkles and text 🌸✨
Here's a preview:
This is the anime output of musicard.
This is the classic output of musicard.
This is the dynamic output of musicard.
This is the space output of musicard.
This is the space+ output of musicard.
Generate a rank card like this:
(async () => {
const { RankCard } = require("musicard-bun");
const fs = require("fs");
const card = new RankCard()
.setName("Ayush")
.setLevel("Level 22")
.setColor("auto")
.setBrightness(100)
.setAvatar("https://static.qobuz.com/images/covers/ga/ua/rmk2cpqliuaga_600.jpg")
.setProgress(38)
.setRank("56")
.setCurrentXp("589")
.setRequiredXp("100000")
.setShowXp(true);
const cardBuffer = await card.build();
fs.writeFileSync(`RankCard.png`, cardBuffer);
console.log("Done!");
})()
Preview:
"We don't just copy, we paste with style."
Our core philosophy is simple:
Find something popular Copy it Slap better things on it
Original musicard package by A3PIRE