{"id":28383701,"url":"https://github.com/iasure/discord-arts","last_synced_at":"2025-07-17T13:33:35.705Z","repository":{"id":65343257,"uuid":"584024363","full_name":"iAsure/discord-arts","owner":"iAsure","description":"Customized cards with Discord style","archived":false,"fork":false,"pushed_at":"2024-10-16T21:08:45.000Z","size":695,"stargazers_count":89,"open_issues_count":0,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-25T14:47:27.879Z","etag":null,"topics":["canvas","discord","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iAsure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.ms","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-01T00:49:22.000Z","updated_at":"2025-06-13T14:26:16.000Z","dependencies_parsed_at":"2024-05-31T02:07:37.680Z","dependency_job_id":"1955bf2d-0810-4dbf-85b3-e047179b9494","html_url":"https://github.com/iAsure/discord-arts","commit_stats":{"total_commits":42,"total_committers":2,"mean_commits":21.0,"dds":0.04761904761904767,"last_synced_commit":"499538fa955ed52b718680630e1463b1c8afe1f4"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/iAsure/discord-arts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iAsure%2Fdiscord-arts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iAsure%2Fdiscord-arts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iAsure%2Fdiscord-arts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iAsure%2Fdiscord-arts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iAsure","download_url":"https://codeload.github.com/iAsure/discord-arts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iAsure%2Fdiscord-arts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265611324,"owners_count":23797859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["canvas","discord","nodejs"],"created_at":"2025-05-30T07:10:19.130Z","updated_at":"2025-07-17T13:33:35.681Z","avatar_url":"https://github.com/iAsure.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cdiv align='center'\u003e\n  \u003cimg src='https://i.imgur.com/VBVAWrM.png' alt='Discord-Arts Banner' /\u003e\n  \u003cp align='center'\u003e\n  \u003ca href='https://www.npmjs.com/package/discord-arts'\u003e\n    \u003cimg src='https://img.shields.io/npm/v/discord-arts?label=version\u0026style=for-the-badge' alt='version' /\u003e\n    \u003cimg src='https://img.shields.io/bundlephobia/min/discord-arts?label=size\u0026style=for-the-badge' alt='size' /\u003e\n    \u003cimg src='https://img.shields.io/npm/dt/discord-arts?style=for-the-badge' alt='downloads' /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\n## 📦 Installation\n\n```bash\nnpm i discord-arts@latest\n```\n\n## ✨ Features\n\n- 🚀 Fast generation!\n- 🎨 Simple and beautiful design\n- 🎖️ Easy to use\n- 💎 Beginner friendly\n- ❌ Discord.js not required\n\n## 📌 What's New\n\n- 🖼️ Avatar decorations/frames\n- 🎴 Automatic profile theme colors\n- 🔮 Booster badges are back\n- 🛡️ Automod and LegacyUsername badges\n\n## 🖼️ Cards\n\n### 🪄 profileImage(userId, imgOptions?)\n\nGenerate a profile image card for a user or bot, including badges and custom options.\n\n![Default Profile Image](https://i.imgur.com/TWf8v1G.png)\n\n**Returns:** Promise\u003cBuffer\u003e\n\n#### imgOptions\n\n| Option | Type | Description |\n|--------|------|-------------|\n| customUsername | string | Customize the username |\n| customTag | string | Text below the user |\n| customSubtitle | string | Text below the custom tag |\n| customBadges | string[] | Your own png badges (path and URL) (46x46) |\n| customBackground | string | Change the background to any image (path and URL) (885x303) |\n| overwriteBadges | boolean | Merge your badges with the discord defaults |\n| badgesFrame | boolean | Creates a small frame behind the badges |\n| removeBadges | boolean | Removes badges, whether custom or from discord |\n| removeBorder | boolean | Removes the image border, custom and normal |\n| usernameColor | string | Username HEX color |\n| tagColor | string | Tag HEX color |\n| borderColor | string \\| string[] | Border HEX color, can be gradient if 2 colors are used |\n| borderAllign | string | Gradient alignment if 2 colors are used |\n| disableProfileTheme | boolean | Disable the discord profile theme colors |\n| presenceStatus | string | User status to be displayed below the avatar |\n| squareAvatar | boolean | Change avatar shape to a square |\n| removeAvatarFrame | boolean | Remove the discord avatar frame/decoration (if any) |\n| rankData | object | Rank data options (see below) |\n| moreBackgroundBlur | boolean | Triples blur of background image |\n| backgroundBrightness | number | Set brightness of background from 1-100% |\n| customDate | Date \\| string | Custom date or text to use instead of when user joined Discord |\n| localDateType | string | Local format for the date, e.g. 'en' \\| 'es' etc. |\n\n#### rankData Options\n\n| Option | Type | Description |\n|--------|------|-------------|\n| currentXp | number | Current user XP |\n| requiredXp | number | XP required to level up |\n| level | number | Current user level |\n| rank | number | Position on the leaderboard |\n| barColor | string | HEX XP bar color |\n| levelColor | string | HEX color of LVL text |\n| autoColorRank | boolean | Whether to color ranks as medal colors for 1st, 2nd, 3rd |\n\n## 📃 Code Example (Discord.js v14)\n\n```javascript\nconst { AttachmentBuilder } = require('discord.js');\nconst { profileImage } = require('discord-arts');\n\nawait interaction.deferReply();\nconst user = interaction.options.getUser('user-option');\n\nconst buffer = await profileImage(user.id, {\n  customTag: 'Admin',\n  squareAvatar: true,\n  // ... other imgOptions\n});\n\ninteraction.followUp({ files: [buffer] });\n```\n\n## Example Results\n\n### Rank Card\n\n![Rank Card Example](https://i.imgur.com/Rd6ScN1.png)\n\n```javascript\nprofileImage('UserID', {\n  customBadges: ['./skull.png', './rocket.png', './crown.png'],\n  presenceStatus: 'phone',\n  badgesFrame: true,\n  customDate: 'AWESOME!',\n  moreBackgroundBlur: true,\n  backgroundBrightness: 100,\n  rankData: {\n    currentXp: 2100,\n    requiredXp: 3000,\n    rank: 1,\n    level: 20,\n    barColor: '#fcdce1',\n    levelColor: '#ada8c6',\n    autoColorRank: true\n  }\n});\n```\n\n### Custom User Card\n\n![Custom User Card Example](https://i.imgur.com/8wB4v2L.png)\n\n```javascript\nprofileImage('UserID', {\n  borderColor: ['#0000ff', '#00fe5a'],\n  presenceStatus: 'idle',\n  removeAvatarFrame: false\n});\n```\n\n### Custom Bot Card\n\n![Custom Bot Card Example](https://i.imgur.com/ldKbKvv.png)\n\n```javascript\nprofileImage('UserID', {\n  customBackground: 'https://i.imgur.com/LWcWzlc.png',\n  borderColor: '#ec8686',\n  presenceStatus: 'online',\n  badgesFrame: true\n});\n```\n\n## ⭐ Support\n\nJoin our [Discord Server](https://discord.gg/csedxqGQKP) for support and community discussions.\n\u003ciframe src=\"https://discord.com/widget?id=1233972329285947484\u0026theme=dark\" width=\"350\" height=\"500\" allowtransparency=\"true\" frameborder=\"0\" sandbox=\"allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts\"\u003e\u003c/iframe\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiasure%2Fdiscord-arts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiasure%2Fdiscord-arts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiasure%2Fdiscord-arts/lists"}