{"id":13825678,"url":"https://github.com/htmlcsstoimage/action","last_synced_at":"2025-07-08T22:31:56.299Z","repository":{"id":40731191,"uuid":"223967418","full_name":"htmlcsstoimage/action","owner":"htmlcsstoimage","description":"Automate image generation with HTML/CSS to Image API + GitHub Actions","archived":false,"fork":false,"pushed_at":"2023-01-04T13:24:45.000Z","size":367,"stargazers_count":26,"open_issues_count":13,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-31T10:48:06.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://htmlcsstoimage.com","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/htmlcsstoimage.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":"2019-11-25T14:26:02.000Z","updated_at":"2024-04-01T12:40:03.000Z","dependencies_parsed_at":"2023-01-11T17:22:00.726Z","dependency_job_id":null,"html_url":"https://github.com/htmlcsstoimage/action","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":"0.22580645161290325","last_synced_commit":"312689ca9ffce47d00a00a7eaaabd994d16847cf"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlcsstoimage%2Faction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlcsstoimage%2Faction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlcsstoimage%2Faction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlcsstoimage%2Faction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/htmlcsstoimage","download_url":"https://codeload.github.com/htmlcsstoimage/action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225470631,"owners_count":17479366,"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-08-04T09:01:25.198Z","updated_at":"2024-11-20T04:30:43.515Z","avatar_url":"https://github.com/htmlcsstoimage.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# HTML/CSS to Image Action\n\nConvert HTML/CSS to an image (png, jpg or webp) using GitHub Actions.\n\n## Set your secrets\n\nSign up for an API key at https://htmlcsstoimage.com. Then set the following secrets in your repository. The values for each are available on your [dashboard](https://htmlcsstoimage.com/dashboard).\n\n- `HCTI_USER_ID`\n- `HCTI_API_KEY`\n\n## Add to your workflow\n\n```yml\n- name: Create image\n  id: create_image\n  uses: htmlcsstoimage/action@v1\n  with:\n    hcti_user_id: ${{ secrets.HCTI_USER_ID }}\n    hcti_api_key: ${{ secrets.HCTI_API_KEY }}\n    html: \"\u003cdiv id='box'\u003eHello, world\u003c/div\u003e\"\n    css: \".box { width: 200px; height: 200px; font-family: 'Roboto' }\"\n    google_fonts: \"Roboto\"\n```\n\nHere's a full example in a workflow.\n\n```yml\non:\n  push\n\nname: Generate image\n\njobs:\n  image:\n    name: Cowsays\n    runs-on: ubuntu-latest\n    steps:\n    - name Create image\n      uses: htmlcsstoimage/action@v1\n      id: create_image\n      with:\n       hcti_user_id: ${{ secrets.HCTI_USER_ID }}\n       hcti_api_key: ${{ secrets.HCTI_API_KEY }}\n       html: \"\u003cdiv id='box'\u003eHello, world\u003c/div\u003e\"\n       css: \".box { width: 200px; height: 200px; font-family: 'Roboto' }\"\n       google_fonts: \"Roboto\"\n    - name: Print url\n      uses: mscoutermarsh/cowsays-action@master\n      with:\n        text: ${{ steps.create_image.outputs.url }} \n        color: \"green\"\n```\n\n\u003cimg src=\"https://p196.p4.n0.cdn.getcloudapp.com/items/E0uE5Zzb/Image+2019-11-30+at+4.41.38+PM.png?v=eb99d3869208b6dfe7fa10c3fd719bc3\" width=\"500px\"\u003e\u003c/img\u003e\n\n## Output\nThe API will return a URL with your created image.\n\n```\n  with:\n    hcti_user_id: ***\n    hcti_api_key: ***\n    html: \u003cdiv class=\"box\"\u003eHello, world\u003c/div\u003e\n    css: .box { width: 400px }\n{\n  url: 'https://hcti.io/v1/image/8bfe53b8-fcd3-4cd9-9aa5-2fe67046d59c'\n}\n```\n\nYou can then access it via the `outputs` in your next steps to pass it to another Action. `${{ steps.create_image.outputs.url }}`. The `create_image` comes from the `id` set in your step using this Action.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlcsstoimage%2Faction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtmlcsstoimage%2Faction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlcsstoimage%2Faction/lists"}