{"id":25342286,"url":"https://github.com/yumikodev/custom-cards","last_synced_at":"2026-05-06T04:05:36.231Z","repository":{"id":61116370,"uuid":"548142220","full_name":"yumikodev/custom-cards","owner":"yumikodev","description":"A simple card module with Canvas.","archived":false,"fork":false,"pushed_at":"2025-01-14T21:08:18.000Z","size":2844,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T19:44:04.747Z","etag":null,"topics":["canvas","cards","javascript","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/custom-cards","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yumikodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-10-09T01:52:13.000Z","updated_at":"2025-01-14T21:08:21.000Z","dependencies_parsed_at":"2024-01-12T02:17:39.025Z","dependency_job_id":"2798743e-556c-4bd0-a147-247b5711ee64","html_url":"https://github.com/yumikodev/custom-cards","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"72c9e2ce1861b8160bd7dc2c65c134f9c03af3ad"},"previous_names":["yumikodev/custom-cards","yumiko0828/custom-cards"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/yumikodev/custom-cards","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumikodev%2Fcustom-cards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumikodev%2Fcustom-cards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumikodev%2Fcustom-cards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumikodev%2Fcustom-cards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yumikodev","download_url":"https://codeload.github.com/yumikodev/custom-cards/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yumikodev%2Fcustom-cards/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","cards","javascript","nodejs","typescript"],"created_at":"2025-02-14T10:01:15.096Z","updated_at":"2026-05-06T04:05:36.206Z","avatar_url":"https://github.com/yumikodev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom Cards\n\nUn simple módulo de manipulación de imágenes con Canvas, escrito en TypeScript.\n\n[![Downloads](https://img.shields.io/npm/dt/custom-cards.svg?maxAge=3600)](https://www.npmjs.com/package/custom-cards)\n[![NPM Version](https://img.shields.io/npm/v/custom-cards.svg?maxAge=3600)](https://www.npmjs.com/package/custom-cards)\n\n## Tabla de contenido\n\n- [Instalación](#instalación)\n- [Importar Módulo](#importar-módulo)\n- [Uso básico](#uso-básico)\n- [Detalles del proyecto](#detalles-del-proyecto)\n\n## Instalación\n\n```\nnpm install custom-cards\n```\n\n## Uso\n\n### Importar módulo\n\n\u003e A partir de la versión 1.6.0 el módulo pasó a ser un ESM, por lo que usarlo con CommonJs puede llegar a dar problemas inesperados.\n\n```js\nimport * as CustomCards from \"custom-cards\";\n```\n\n### Uso básico\n\n```js\nimport { readFileSync } from \"node:fs\";\n\n// Leemos una imágen local\nconst wpBuf = readFileSync(\"./wallpaper.jpg\");\n\n// Inicializamos el cliente (reemplazamos TOKEN por nuestro token)\nconst client = new CustomCards.Setup(\"TOKEN\");\n\n// Creamos el modelo de nuestra tarjeta\nconst card = new CustomCards.WelcomeCard({\n  variant: \"Classic\",\n  avatar: {\n    // usamos \"imageUrlAdapter\" para usar imágenes desde una URL\n    source: await CustomCards.imageUrlAdapter(\n      \"https://yumikodev.vercel.app/avatar.webp\"\n    ),\n    frameColor: \"#ff7eae\",\n    frameType: CustomCards.FrameType.Square,\n  },\n  background: await CustomCards.imageBufferAdapter(wpBuf),\n  font: CustomCards.Fonts.Fredoka,\n  text: [\n    {\n      content: \"Bienvenid@ usuario\",\n      color: \"#fff\",\n    },\n    {\n      content: \"Descripción aquí.\",\n      color: \"#eee\",\n    },\n  ],\n});\n\nconst data = await client.cards.createWelcomeCard(card);\nconsole.log(data);\n/*\n{\n  \"mimetype\": \"image/webp\",\n  \"card\": Buffer\u003c...\u003e\n}\n*/\n```\n\n#### Ejemplo:\n\n[![img](https://raw.githubusercontent.com/Yumiko0828/custom-cards/main/docs/img1.webp)](https://www.npmjs.com/package/custom-cards)\n\n## Detalles del proyecto:\n\n- Licencia: **[MIT License](LICENSE)**\n- Autor: **[Yasu Yumiko](https://discord.com/users/752918867273187378)**\n- [Servidor de Discord](https://discord.gg/YqUkagNPaw)\n- [Documentación oficial](https://custom-cards-web.vercel.app/)\n\n### Gracias :D\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyumikodev%2Fcustom-cards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyumikodev%2Fcustom-cards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyumikodev%2Fcustom-cards/lists"}