{"id":16978277,"url":"https://github.com/plusmancn/canvas-server","last_synced_at":"2026-04-19T02:02:16.509Z","repository":{"id":34640364,"uuid":"38596456","full_name":"plusmancn/canvas-server","owner":"plusmancn","description":"字符头像生成","archived":false,"fork":false,"pushed_at":"2015-07-11T13:51:28.000Z","size":8000,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-26T16:44:26.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/plusmancn.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}},"created_at":"2015-07-06T03:51:06.000Z","updated_at":"2016-06-26T03:20:15.000Z","dependencies_parsed_at":"2022-09-14T17:31:12.713Z","dependency_job_id":null,"html_url":"https://github.com/plusmancn/canvas-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusmancn%2Fcanvas-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusmancn%2Fcanvas-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusmancn%2Fcanvas-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusmancn%2Fcanvas-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plusmancn","download_url":"https://codeload.github.com/plusmancn/canvas-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244875045,"owners_count":20524591,"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":[],"created_at":"2024-10-14T01:43:02.107Z","updated_at":"2025-10-14T06:07:13.496Z","avatar_url":"https://github.com/plusmancn.png","language":"JavaScript","readme":"# canvas-server\n\u003e 字符头像生成，背后不是 node-canvas 驱动，canvas很美好，可我没法解决中文问题，最后是 [gm](https://github.com/aheckmann/gm) 在驱动图形处理。\n\n## Usage\n**如何运行？**\n```javascript\nnode ./server.js\n```\n\n**API开放接口**\n```javascript\n// GET 请求方式\nhttp://character-image.plusman.cn/CharacterImage/:character\n\n// 参数说明\n:character 单字符，传参数时对参数做一层，encodeURIComponent 编码。\n\n// 示例\nhttp://character-image.plusman.cn/CharacterImage/%E4%B8%9C\n\n// return JSON\n{\n  \"code\": 0,\n  \"message\": \"success\",\n  \"data\": {\n    \"hash\": \"from_cached\",\n    \"key\": \"东.png\",\n    \"url\": \"http://7xk6mk.com1.z0.glb.clouddn.com/%E4%B8%9C.png\"\n  }\n}\n\n```\n\n**效果图**  \n![会](http://7xk6mk.com1.z0.glb.clouddn.com/会.png)\n![友](http://7xk6mk.com1.z0.glb.clouddn.com/友.png)\n![行](http://7xk6mk.com1.z0.glb.clouddn.com/行.png)\n![G](http://7xk6mk.com1.z0.glb.clouddn.com/G.png)\n\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2015 [plusmancn](plusmancn@gmail.com)\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplusmancn%2Fcanvas-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplusmancn%2Fcanvas-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplusmancn%2Fcanvas-server/lists"}