{"id":19644325,"url":"https://github.com/ampproject/bento-compiler","last_synced_at":"2025-07-30T13:08:56.289Z","repository":{"id":37026336,"uuid":"388902186","full_name":"ampproject/bento-compiler","owner":"ampproject","description":"Server-render AMP Components with worker-dom","archived":false,"fork":false,"pushed_at":"2025-02-22T05:23:28.000Z","size":1510,"stargazers_count":9,"open_issues_count":5,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-22T06:24:10.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/ampproject.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-07-23T19:09:54.000Z","updated_at":"2023-12-06T15:22:23.000Z","dependencies_parsed_at":"2023-10-03T04:03:53.426Z","dependency_job_id":"effd1898-56a1-4f5e-8aab-ce03d28d8ee5","html_url":"https://github.com/ampproject/bento-compiler","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampproject%2Fbento-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampproject%2Fbento-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampproject%2Fbento-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampproject%2Fbento-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ampproject","download_url":"https://codeload.github.com/ampproject/bento-compiler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240951381,"owners_count":19883711,"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-11-11T14:26:44.858Z","updated_at":"2025-02-26T23:28:09.354Z","avatar_url":"https://github.com/ampproject.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bento Compiler\n\nServer-render AMP Components with [worker-dom](https://github.com/ampproject/worker-dom).\n\n## Install\n\n```bash\n$ npm install --save @ampproject/bento-compiler\n```\n\n## Usage\n\n\u003e Visit the [test cases](./test/test-index.ts) for more info.\n\n```js\nimport {renderAst} from '@ampproject/bento-compiler';\n\nfunction ampLayoutBuildDom(element) {\n  element.setAttribute('i-amphtml-ssr', '');\n}\n\nconst ast = h('html', {}, [h('body', {}, [h('amp-layout'))])]);\nconst rendered = renderAst(ast, {'amp-layout': ampLayoutBuildDom});\n```\n\n## Analysis\n\nSee the [analysis](go/bento-compiler-p1) for details on how we measured expected performance improvement.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampproject%2Fbento-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fampproject%2Fbento-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampproject%2Fbento-compiler/lists"}