{"id":46905620,"url":"https://github.com/connected-web/html-asset-generator","last_synced_at":"2026-03-11T01:10:11.272Z","repository":{"id":5267593,"uuid":"47144406","full_name":"connected-web/html-asset-generator","owner":"connected-web","description":"A utility that converts HTML and CSS templates into rendered Image assets, and can also produce Text and JSON assets.","archived":false,"fork":false,"pushed_at":"2022-12-30T20:52:05.000Z","size":751,"stargazers_count":2,"open_issues_count":12,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-20T13:39:32.640Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/connected-web.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-30T20:35:00.000Z","updated_at":"2021-05-07T08:29:15.000Z","dependencies_parsed_at":"2023-01-11T16:37:25.387Z","dependency_job_id":null,"html_url":"https://github.com/connected-web/html-asset-generator","commit_stats":null,"previous_names":["connected-web/node-hag"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/connected-web/html-asset-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fhtml-asset-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fhtml-asset-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fhtml-asset-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fhtml-asset-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/connected-web","download_url":"https://codeload.github.com/connected-web/html-asset-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fhtml-asset-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30365051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-03-11T01:10:10.626Z","updated_at":"2026-03-11T01:10:11.257Z","avatar_url":"https://github.com/connected-web.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML Asset Generator (HAG)\nThe generator processes `instructions` to `render` `assets` based on `templates` combined with `data`.\n\nSupports rendering of HTML to Images using `webshot`, and creation of text based assets such as JSON, CSS, and HTML using Handlebar templates.\n\n[![Dependency Status](https://david-dm.org/connected-web/node-hag.svg)](https://david-dm.org/connected-web/node-hag)\n\n## Key terms\n- Instruction - a JSON block that specifies what to render\n- Asset - a useful item to be generated, such as an image, HTML, text, or JSON file\n- Template - a cookie-cutter layouts that can be fed with data\n- Renderer - the method used to combine the template, with the data, and then save it out as an asset\n- Data  - JSON data that can be fed into templates to create an asset\n\n## Project structure\n- `generator.js` - the entry point to run the generator\n- `build` - the target directory for produced assets\n- `templates` - a folder of usable templates\n- `templates/template-name` - an individual template\n- `instructions` - a folder full of data to be rendered\n\n## Installation\n`npm install node-hag -g`\n\n## Getting started\n1. Run `hag --help` to view up-to-date Help and Instructions\n2. Run `hag init` to create an example project in the current working directory\n3. Run `hag generate` to compiled the instructions and generate assets\n\nIf that all worked as expected, take a closer look at the `instructions` folder, and the resulting `build` folder to see the generated assets.\n\n## Guides\n- [Command line arguments](docs/command-line-args.md)\n- [Instructions, data, and templates](docs/instructions-data-templates.md)\n- [Output formats; text, json, image](docs/output-formats.md)\n- [Samples and use cases](docs/samples-and-use-cases.md)\n\n## Development\n\n- Checkout the project, run `npm install`\n- Run `npm test`\n\n## Changelog\n\nSee: [CHANGELOG.md](CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnected-web%2Fhtml-asset-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnected-web%2Fhtml-asset-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnected-web%2Fhtml-asset-generator/lists"}