panaiscard
v0.1.60
Published
A powerful Node.js package to generate stunning music cards for Discord bots
Maintainers
Readme
🚀 Installation
# Using npm
npm install panaiscard
# Using yarn
yarn add panaiscard🎨 Features
- Generate beautiful music cards effortlessly
- Multiple themes to choose from
- Fully customizable options (background, colors, text, etc.)
- Ideal for Discord bots and web applications
📌 Basic Usage
const { Classic } = require('panaiscard');
const fs = require('fs');
Classic({}).then(imageBuffer => {
fs.writeFileSync('output.png', imageBuffer);
});🤖 Discord Bot Integration
const { Classic } = require("panaiscard");
const fs = require("fs");
const panaiscard = await Classic({});
return message.channel.send({
files: [{ attachment: panaiscard }]
});🎭 Custom Background Support
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);
});🎨 Available Themes
🔹 Classic

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);🔹 ClassicPro

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);🔹 Dynamic

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);🔹 Card

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);🤝 Contributing
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
💖 Contributors
Thanks to these amazing contributors:
📜 License
This project is licensed under the MIT License - see the file for details.
