{"id":27142884,"url":"https://github.com/linuxhub-group/rayso-api","last_synced_at":"2025-10-08T01:04:58.969Z","repository":{"id":38208163,"uuid":"396650177","full_name":"LinuxHub-Group/rayso-api","owner":"LinuxHub-Group","description":"通过ray.so渲染一张图片并返回","archived":false,"fork":false,"pushed_at":"2023-01-31T05:02:08.000Z","size":105,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-06T13:41:46.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinuxHub-Group.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":"2021-08-16T06:20:25.000Z","updated_at":"2022-03-01T05:13:52.000Z","dependencies_parsed_at":"2023-02-09T14:32:21.830Z","dependency_job_id":null,"html_url":"https://github.com/LinuxHub-Group/rayso-api","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxHub-Group%2Frayso-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxHub-Group%2Frayso-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxHub-Group%2Frayso-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxHub-Group%2Frayso-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinuxHub-Group","download_url":"https://codeload.github.com/LinuxHub-Group/rayso-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801146,"owners_count":20998333,"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":"2025-04-08T08:00:29.744Z","updated_at":"2025-10-08T01:04:58.894Z","avatar_url":"https://github.com/LinuxHub-Group.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rayso-api\n\n通过ray.so渲染一张图片并返回\n\n# 原理\n\n- 使用selenium访问`ray.so`获取网页\n- 使用selenium和js操作网页\n- 返回base64编码的图片\n\n# api\n\n`/rayso`: `[POST]`, `[GET]`\n- `content`: 代码块，需要用base64编码\n- `font`: 字体，默认Fira code\n- `padding`: 图片 padding，默认26\n- `title`: 标题\n- `size`: 缩放倍数： 1-2，原图为2k屏渲染\n\n# 使用\n\n```shell\npip install -r requirements.txt\npython main.py\n\n# docker\ndocker run --rm -p 5567:5567 -it ghcr.io/linuxhub-group/rayso-api:latest\n```\n\n# 贡献\n\npr之前先检查代码：\n```shell\npip install flake8 bandit black\nblack .\nflake8 . --max-line-length=200\nbandit --recursive .\n```\n\n# TODO\n\n- [ ] 多线程\n- [ ] 语言选择\n- [ ] 主题选择","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxhub-group%2Frayso-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxhub-group%2Frayso-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxhub-group%2Frayso-api/lists"}