{"id":22308819,"url":"https://github.com/ratson/react-head-tags","last_synced_at":"2025-07-18T11:35:43.944Z","repository":{"id":65373029,"uuid":"115026904","full_name":"ratson/react-head-tags","owner":"ratson","description":"ReactDOMServer.renderToNodeStream() ready component to manage document.head","archived":false,"fork":false,"pushed_at":"2018-03-29T16:03:14.000Z","size":24,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T00:09:52.345Z","etag":null,"topics":["head","meta","react","react-helmet","ssr","stream","tags"],"latest_commit_sha":null,"homepage":null,"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/ratson.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-12-21T16:42:44.000Z","updated_at":"2019-03-27T18:16:03.000Z","dependencies_parsed_at":"2023-01-19T23:35:25.244Z","dependency_job_id":null,"html_url":"https://github.com/ratson/react-head-tags","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ratson/react-head-tags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Freact-head-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Freact-head-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Freact-head-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Freact-head-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ratson","download_url":"https://codeload.github.com/ratson/react-head-tags/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Freact-head-tags/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265751624,"owners_count":23822804,"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":["head","meta","react","react-helmet","ssr","stream","tags"],"created_at":"2024-12-03T20:15:27.655Z","updated_at":"2025-07-18T11:35:39.893Z","avatar_url":"https://github.com/ratson.png","language":"JavaScript","readme":"# react-head-tags\n\nReactDOMServer.renderToNodeStream() ready component to manage document.head\n\n## Installation\n\n```\nnpm install react-head-tags --save\n```\n\n## Usage\n\n\u003c!-- eslint-disable no-unused-vars --\u003e\n\n```js\nimport React from 'react'\nimport { renderToNodeStream } from 'react-dom/server'\nimport { HeadManager, HeadTags } from 'react-head-tags'\n\nlet headTags\nconst contentStream = renderToNodeStream(\n  \u003cHeadManager\n    onHeadTagsChange={tags =\u003e {\n      headTags = tags\n    }}\n  \u003e\n    \u003cHeadTags\u003e\n      \u003ctitle\u003eTitle\u003c/title\u003e\n      \u003cmeta name=\"description\" content=\"testing\" /\u003e\n    \u003c/HeadTags\u003e\n  \u003c/HeadManager\u003e,\n)\n```\n\nNote that head tags are not collected before the app is rendered,\ne.g. `headTags` is `undefined` until `contentStream` is finished in the above example.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Freact-head-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fratson%2Freact-head-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Freact-head-tags/lists"}