{"id":19374012,"url":"https://github.com/akashrchandran/rayso-api","last_synced_at":"2025-08-08T06:32:36.826Z","repository":{"id":41934980,"uuid":"510467686","full_name":"akashrchandran/Rayso-API","owner":"akashrchandran","description":"Provides ray.so as a REST API version. Make beautiful and prettified code screenshots by just sending a POST or GET request.","archived":false,"fork":false,"pushed_at":"2024-07-09T17:26:48.000Z","size":91,"stargazers_count":21,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T22:04:15.508Z","etag":null,"topics":["code","code-screenshot","nodejs","rayso","screenshot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/akashrchandran.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":"2022-07-04T18:39:39.000Z","updated_at":"2024-10-30T21:57:22.000Z","dependencies_parsed_at":"2024-03-07T18:27:34.595Z","dependency_job_id":"5c08010e-da61-4207-9310-a876946f67bd","html_url":"https://github.com/akashrchandran/Rayso-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashrchandran%2FRayso-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashrchandran%2FRayso-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashrchandran%2FRayso-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashrchandran%2FRayso-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akashrchandran","download_url":"https://codeload.github.com/akashrchandran/Rayso-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229097380,"owners_count":18019735,"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":["code","code-screenshot","nodejs","rayso","screenshot"],"created_at":"2024-11-10T08:33:51.018Z","updated_at":"2024-12-10T17:07:40.647Z","avatar_url":"https://github.com/akashrchandran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Rayso-API\n\n[![forthebadge](https://forthebadge.com/images/badges/made-with-javascript.svg)](https://forthebadge.com)\n\nProvides [ray.so](https://ray.so/) as a REST API version. Make beautiful and prettified code screenshots by just sending a POST or GET request.\n\n`https://rayso-c3754cd07bd3.herokuapp.com/api`\n\n\u003c/div\u003e\n\n## Parameters\n\n| Parameter    | Default value   | Type             | Description                                                                                                                                    |\n| ------------ | --------------- | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |\n| `code `      | None (required) | String           | The code which is used to make the screenshot.                                                                                                 |\n| `title `     | `\"Untitled-1\"`  | String           | The title will be displayed on top of the code box.                                                                                            |\n| `theme`      | `\"breeze\"`      | String           | There are several options of how your box will look like. Available themes: vercel, supabase, tailwind, bitmap, noir, ice, sand, forest, mono, breeze, candy, crimson, falcon, meadow, midnight, raindrop, sunset |\n| `background` | `true`          | Boolean          | If disabled, it will create an image of code box only, without background.                                                                     |\n| `darkMode`   | `true`          | Boolean          | If disabled, it will change your theme to its light version.                                                                                   |\n| `padding`    | `32`            | String or Number | Distance between borders and code box. Available values: 16, 32, 64 and 128.                                                                   |\n| `language`   | `\"auto\"`        | String           | You better leave it auto :/ However, you can try to pass some language name and if it worked, good for you!                                    |\n\n### Using GET Request `/`\n\n\u003e It uses query parameters.\n\n```\nhttp://localhost:3000/api?code=console.log(%22Hello%20World%22)%3B\u0026language=javascript\u0026title=Test\n```\n\n### Using POST Request `/`\n\n**Body** is JSON with these params:\n\n```json\n{\n  \"code\": \"console.log('Hello World');\",\n  \"language\": \"javascript\",\n  \"title\": \"Test\"\n}\n```\n\n### Example output\n\n\u003ca href=\"https://github.com/akashrchandran/Rayso-API/\"\u003e\u003cimg src=\"https://i.ibb.co/LQ38qzR/api.png\" alt=\"api\" border=\"0\"\u003e\u003c/a\u003e\n\n# Deployment\n\n# Deployment\n\nTo deploy the Rayso-API on Heroku, you can use the Heroku Button. Just click the button below and follow the instructions:\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://dashboard.heroku.com/new?template=https://github.com/akashrchandran/rayso-api)\n\nOnce the deployment is complete, you will have your own instance of the Rayso-API running on Heroku.\n\n# Local Development\n\nTo run the Rayso-API locally, you can follow these steps:\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/akashrchandran/rayso-api\ncd rayso-api\n```\n\n2. Install the dependencies:\n\n```bash\nnpm install\n```\n\n3. Start the development server:\n\n```bash\nnpm start\n```\n\n### Credits\n\n• [s0ftik3](https://github.com/s0ftik3)\n-\u003e For creating rayso-api package but now it is not maintained so I have forked his and upated [rayso](https://npmjs.com/rayso).\n\n• [Me](https://akashrchandran.in)\n-\u003e For nothing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashrchandran%2Frayso-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakashrchandran%2Frayso-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashrchandran%2Frayso-api/lists"}