{"id":19881045,"url":"https://github.com/gridaco/h2i","last_synced_at":"2025-10-06T11:30:32.495Z","repository":{"id":153935220,"uuid":"630904977","full_name":"gridaco/H2I","owner":"gridaco","description":"Html2Img as a service","archived":false,"fork":false,"pushed_at":"2023-06-05T07:44:54.000Z","size":57879,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T06:45:20.999Z","etag":null,"topics":["chromium","html-to-image","html-to-pdf","pupeteer","saas"],"latest_commit_sha":null,"homepage":"https://html2.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gridaco.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}},"created_at":"2023-04-21T12:32:57.000Z","updated_at":"2023-05-12T17:54:36.000Z","dependencies_parsed_at":"2023-09-30T12:30:35.493Z","dependency_job_id":null,"html_url":"https://github.com/gridaco/H2I","commit_stats":{"total_commits":117,"total_committers":2,"mean_commits":58.5,"dds":"0.017094017094017144","last_synced_commit":"788c4b96e91dd6b8f5abcde725a6a60f3e433912"},"previous_names":["gridaco/html2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2FH2I","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2FH2I/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2FH2I/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2FH2I/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gridaco","download_url":"https://codeload.github.com/gridaco/H2I/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235524156,"owners_count":19003815,"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":["chromium","html-to-image","html-to-pdf","pupeteer","saas"],"created_at":"2024-11-12T17:13:10.530Z","updated_at":"2025-10-06T11:30:24.848Z","avatar_url":"https://github.com/gridaco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://html2.io\"\u003e\n    \u003cimg src=\"./artworks/cover.png\" alt=\"html2.io github cover graphic\" height=\"240\" /\u003e\n  \u003c/a\u003e\n  \u003ch1 align=\"center\"\u003e\u003ca href=\"https://html2.io\"\u003ehtml2.io\u003c/a\u003e\u003c/h1\u003e\n  \u003cp align=\"center\"\u003eHtml to image as a service\u003c/p\u003e\n\u003c/p\u003e\n\n## Features\n\n- HTML/CSS to image\n- HTML/CSS to pdf\n- Markdown to image\n- Built-in fonts \u0026 emoji support (Apple emoji OK)\n- Template engine\n- Write Template with React\n- CDN Ready\n- [View All Features](https://html2.io/docs/features)\n\n## Usage\n\n**Install**\n\n- [Node - `h2i`](https://www.npmjs.com/package/h2i)\n- [Python - `h2i`](https://pypi.org/project/h2i/)\n\n```\nyarn add h2i\n```\n\n**Simple usage**\n\n```ts\nimport * as H2I from \"h2i\";\n\nconst img = H2I.Client({\n  apiKey: \"\u003cyour-api-key\u003e\",\n});\n\nimg.fromFile(\"test.html\").then((image) =\u003e {\n  image.save(\"test.png\");\n});\n\nimg.fromUrl(\"https://google.com\").then((image) =\u003e {\n  image.save(\"google.png\");\n});\n\nimg.fromHtml(\"\u003ch1\u003eHello world\u003c/h1\u003e\").then((image) =\u003e {\n  image.save(\"hello.png\");\n});\n\nimg.fromMd(\"# Hello world\").then((image) =\u003e {\n  image.save(\"hello.png\");\n});\n\nimg\n  .fromRepo(\"https://github.com/gridaco/html2.io\", {\n    branch: \"master\",\n    path: \"README.md\",\n  })\n  .then((image) =\u003e {\n    image.save(\"readme.png\");\n  });\n```\n\n## Fonts\n\nGoogle fonts are supported by default. You can also use custom fonts by uploading them to the [dashboard](https://html2.io/dashboard).\n\n## Aknowledgements\n\nSpecial thanks to:\n\n- [puppeteer](https://github.com/puppeteer/puppeteer)\n- [browserless/chrome](https://github.com/browserless/chrome)\n\n## Usefull links\n\n- [chromeless (Archived)](https://github.com/prisma-archive/chromeless)\n- [CDP](https://github.com/cyrus-and/chrome-remote-interface)\n\n## License\n\nThe source code and artworks are [Apache 2.0 licensed](./LICENSE), yet it is not allowed to deploy the whole service to make a replica service for monetization without significant modifications.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgridaco%2Fh2i","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgridaco%2Fh2i","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgridaco%2Fh2i/lists"}