A powerful Node.js package to generate stunning music cards for Discord bots
# Using npm
npm install panaiscard
# Using yarn
yarn add panaiscard- Generate beautiful music cards effortlessly
- Multiple themes to choose from
- Fully customizable options (background, colors, text, etc.)
- Ideal for Discord bots and web applications
const { Classic } = require('panaiscard');
const fs = require('fs');
Classic({}).then(imageBuffer => {
fs.writeFileSync('output.png', imageBuffer);
});const { Classic } = require("panaiscard");
const fs = require("fs");
const panaiscard = await Classic({});
return message.channel.send({
files: [{ attachment: panaiscard }]
});const { Classic } = require('panaiscard');
const fs = require('fs');
Classic({
thumbnailImage: 'https://example.com/thumbnail.png',
backgroundImage: 'https://example.com/background.png',
imageDarkness: 60,
nameColor: '#DC92FF',
progressColor: '#DC92FF',
progressBarColor: '#2B2B2B',
progress: 50,
}).then(imageBuffer => {
fs.writeFileSync('output.png', imageBuffer);
});const { Classic } = require('panaiscard');
const fs = require('fs');
const panaiscard = await Classic({
thumbnailImage: 'https://hiphopcorner.fr/wp-content/uploads/2016/05/image-eminem-cover-album-marshall-mathers-lp.jpg',
backgroundColor: '#070707',
progress: 10,
progressColor: '#FF7A00',
progressBarColor: '#5F2D00',
title: 'Without Me',
titleColor: '#FF7A00',
author: 'Eminem',
authorColor: '#696969',
startTime: '0:00',
endTime: '4:00',
timeColor: '#FF7A00',
});
fs.writeFileSync('panaiscard.png', panaiscard);const { ClassicPro } = require('panaiscard');
const fs = require('fs');
const panaiscard = await ClassicPro({
thumbnailImage: 'https://hiphopcorner.fr/wp-content/uploads/2016/05/image-eminem-cover-album-marshall-mathers-lp.jpg',
backgroundColor: '#070707',
progress: 10,
progressColor: '#FF7A00',
progressBarColor: '#5F2D00',
title: 'Without Me',
titleColor: '#FF7A00',
author: 'Eminem',
authorColor: '#696969',
startTime: '0:00',
endTime: '4:00',
timeColor: '#FF7A00',
});
fs.writeFileSync('panaiscard.png', panaiscard);const { Dynamic } = require('panaiscard');
const fs = require('fs');
const panaiscard = await Dynamic({
thumbnailImage: 'https://hiphopcorner.fr/wp-content/uploads/2016/05/image-eminem-cover-album-marshall-mathers-lp.jpg',
backgroundColor: '#070707',
progress: 10,
progressColor: '#FF7A00',
progressBarColor: '#5F2D00',
title: 'Without Me',
titleColor: '#FF7A00',
author: 'Eminem',
authorColor: '#696969',
});
fs.writeFileSync('panaiscard.png', panaiscard);const { Card } = require('panaiscard');
const fs = require('fs');
const musicard = await Card({
thumbnailImage: 'https://hiphopcorner.fr/wp-content/uploads/2016/05/image-eminem-cover-album-marshall-mathers-lp.jpg',
backgroundImage: fs.readFileSync('bg.png'),
imageDarkness: 70,
author: 'Testing by UG',
title: 'Bad Boy (feat. Luana Kiara)',
trackIndexBackgroundRadii: [10, 20, 30, 40, 50, 60, 70, 80, 80, 100],
});
fs.writeFileSync('panaiscard.png', panaiscard);Want to improve PanaisCard? Follow these steps:
- Fork the repository
- Create a new feature branch
- Implement your changes with proper documentation
- Submit a pull request
Thanks to these amazing contributors:
This project is licensed under the MIT License - see the file for details.



