{"id":17009508,"url":"https://github.com/neoxr/quote-generator","last_synced_at":"2025-10-04T20:45:38.440Z","repository":{"id":250523912,"uuid":"834478877","full_name":"neoxr/quote-generator","owner":"neoxr","description":"Quote API by LyoSU","archived":false,"fork":false,"pushed_at":"2024-09-21T21:09:35.000Z","size":56181,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T18:46:17.050Z","etag":null,"topics":["quote-api","quote-generator"],"latest_commit_sha":null,"homepage":"https://quote-generator-green-three.vercel.app/","language":"JavaScript","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/neoxr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-07-27T11:48:42.000Z","updated_at":"2024-11-05T11:05:22.000Z","dependencies_parsed_at":"2024-07-28T06:32:54.157Z","dependency_job_id":"6996dc67-e168-4c67-87b7-a92395f0a81d","html_url":"https://github.com/neoxr/quote-generator","commit_stats":null,"previous_names":["neoxr/quote-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoxr%2Fquote-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoxr%2Fquote-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoxr%2Fquote-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoxr%2Fquote-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neoxr","download_url":"https://codeload.github.com/neoxr/quote-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239907219,"owners_count":19716583,"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":["quote-api","quote-generator"],"created_at":"2024-10-14T05:43:40.408Z","updated_at":"2025-10-04T20:45:38.325Z","avatar_url":"https://github.com/neoxr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## QUOTE API\n\n\u003e An implementation of [@neoxr/quote-api](https://www.npmjs.com/package/@neoxr/quote-api), i made it so it can run on Vercel.\n\n### Example\n\nThe following is a class function that you can use.\n\n```Javascript\nconst axios = require('axios')\nconst fs = require('node:fs')\n\nclass QuoteAPI {\n   constructor() {\n      // replace with your website\n      this.baseUrl = 'https://quote-generator-green-three.vercel.app/'\n   }\n\n   generate = params =\u003e new Promise(async resolve =\u003e {\n      try {\n         // default parameter is \"json\"\n         const json = await (await axios.post(this.baseUrl, {\n            json: params\n         })).data\n         if (!json.status) return resolve(json)\n         resolve(json)\n      } catch (e) {\n         resolve({\n            creator: global.creator,\n            status: false,\n            msg: e.message\n         })\n      }\n   })\n\n   download = image =\u003e {\n      const buffer = Buffer.from(image, 'base64')\n      fs.writeFile('Quotly.png', buffer, err =\u003e {\n         if (err) throw err\n      })\n   }\n}\n```\n\nThis is an example of its use :\n\n```Javascript\nconst text = \"Hello World\"\nconst username = \"Wildan Izzudin\"\nconst avatar = \"https://telegra.ph/file/59952c903fdfb10b752b3.jpg\"\n\nconst params = {\n  \"type\": \"quote\",\n  \"format\": \"png\",\n  \"backgroundColor\": \"#FFFFFF\",\n  \"width\": 512,\n  \"height\": 768,\n  \"scale\": 2,\n  \"messages\": [\n    {\n      \"entities\": [],\n      \"avatar\": true,\n      \"from\": {\n        \"id\": 1,\n        \"name\": username,\n        \"photo\": {\n          \"url\": avatar\n        }\n      },\n      \"text\": text,\n      \"replyMessage\": {}\n    }\n  ]\n}\n\nconst qc = new QuoteAPI\n// print as JSON\nqc.generate(params).then(console.log)\n// download as Image\nqc.generate(params).then(result =\u003e qc.download(result.data.image))\n```\n\nFor other input, you can see the original repository [LyoSU](https://github.com/LyoSU/quote-api).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneoxr%2Fquote-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneoxr%2Fquote-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneoxr%2Fquote-generator/lists"}