{"id":28753182,"url":"https://github.com/dioxus-community/dioxus-helmet","last_synced_at":"2025-06-17T00:38:59.140Z","repository":{"id":57676587,"uuid":"482408664","full_name":"dioxus-community/dioxus-helmet","owner":"dioxus-community","description":"Small Dioxus component which allows you to place elements in the head of your document","archived":false,"fork":false,"pushed_at":"2024-09-07T22:31:58.000Z","size":25,"stargazers_count":24,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T00:31:09.183Z","etag":null,"topics":["dioxus","helmet"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/dioxus-community.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-17T02:34:51.000Z","updated_at":"2025-05-18T22:35:02.000Z","dependencies_parsed_at":"2024-09-07T23:42:42.092Z","dependency_job_id":null,"html_url":"https://github.com/dioxus-community/dioxus-helmet","commit_stats":null,"previous_names":["dioxus-community/dioxus-helmet","saicu/dioxus-helmet"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/dioxus-community/dioxus-helmet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dioxus-community%2Fdioxus-helmet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dioxus-community%2Fdioxus-helmet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dioxus-community%2Fdioxus-helmet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dioxus-community%2Fdioxus-helmet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dioxus-community","download_url":"https://codeload.github.com/dioxus-community/dioxus-helmet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dioxus-community%2Fdioxus-helmet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260268635,"owners_count":22983601,"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":["dioxus","helmet"],"created_at":"2025-06-17T00:38:58.291Z","updated_at":"2025-06-17T00:38:59.118Z","avatar_url":"https://github.com/dioxus-community.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dioxus-helmet\n\n\u003ca href=\"https://crates.io/crates/dioxus-helmet\"\u003e\n  \u003cimg src=\"https://img.shields.io/crates/v/dioxus-helmet.svg?style=flat-square\"\n  alt=\"Crates.io version\" /\u003e\n\u003c/a\u003e\n\n## General\n\nInspired by react-helmet, this small [Dioxus](https://github.com/DioxusLabs/dioxus) component allows you to place elements in the **head** of your code.\n\n## Configuration\n\nAdd the package as a dependency to your `Cargo.toml`.\n\n```\ncargo add dioxus-helmet\n```\n\n## Usage\n\nImport it in your code:\n```rust\nuse dioxus_helmet::Helmet;\n```\n\nThen use it as a component like this:\n\n```rust\n#[component]\nfn HeadElements(path: String) -\u003e Element {\n    rsx! {\n        Helmet {\n            link { rel: \"icon\", href: \"{path}\"}\n            title { \"Helmet\" }\n            style {\n                [r#\"\n                    body {\n                        color: blue;\n                    }\n                    a {\n                        color: red;\n                    }\n                \"#]\n            }\n        }\n    }\n}\n```\n\nAny children passed to the helmet component will then be placed in the `\u003chead\u003e\u003c/head\u003e` of your document.\n\n**IMPORTANT**: The nodes inside the `Helmet` component are not reactive, so they won't be updated\nwhen the value of them changes. So it's better to use static values inside the `Helmet`\ncomponent instead of signals.\n\nThey will be visible while the component is rendered. Duplicates **won't** get appended multiple times.\n\n## License\n\nThis project is licensed under the [MIT license](https://github.com/saicu/dioxus-helmet/blob/main/LICENSE).\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in dioxus-helmet by you, shall be licensed as MIT, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdioxus-community%2Fdioxus-helmet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdioxus-community%2Fdioxus-helmet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdioxus-community%2Fdioxus-helmet/lists"}