{"id":17331436,"url":"https://github.com/eliasdabbas/dashseo","last_synced_at":"2025-04-14T18:03:55.377Z","repository":{"id":217626846,"uuid":"744388892","full_name":"eliasdabbas/dashseo","owner":"eliasdabbas","description":"Making Plotly's Dash SEO-friendly","archived":false,"fork":false,"pushed_at":"2024-01-18T08:58:06.000Z","size":8,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T18:01:59.910Z","etag":null,"topics":["frontend","plotly","plotly-dash","plotly-python","seo","webdevelopment"],"latest_commit_sha":null,"homepage":"","language":"Python","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/eliasdabbas.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-17T07:43:54.000Z","updated_at":"2024-09-25T13:13:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"af50c3df-d931-4408-8240-73d6cf3592e9","html_url":"https://github.com/eliasdabbas/dashseo","commit_stats":null,"previous_names":["eliasdabbas/dashseo"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasdabbas%2Fdashseo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasdabbas%2Fdashseo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasdabbas%2Fdashseo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasdabbas%2Fdashseo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eliasdabbas","download_url":"https://codeload.github.com/eliasdabbas/dashseo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248933339,"owners_count":21185460,"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":["frontend","plotly","plotly-dash","plotly-python","seo","webdevelopment"],"created_at":"2024-10-15T14:54:24.793Z","updated_at":"2025-04-14T18:03:55.369Z","avatar_url":"https://github.com/eliasdabbas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dash SEO\n\nA set of tools to make Dash apps SEO-friendly.\n\n### Why?\n\nDash is renderd as a single page app, as a set of React components. The HTML representation is not available like a traditional page, and app content an be difficult to read by search engines. \n\nThe solution is to convert the app's HTML components in the `layout` attribute to an HTML string, and include it in the app's source.\n\n## Features\n\n* Create the full HTML string of the app, to be easily read by crawlers and search engines.\n* Does not convert `dcc` components (charts, dropdowns, date pickers, etc.) saving on performance because these components can be heavy without much content, especially charts.\n* Title tag, and meta tags are already supported by Dash, and you can set these using default Dash.\n\n## Example\n\n`$ pip install dashseo`\n\n\n```python\nfrom dashseo import htmlify\nfrom dash import Dash, html\n\napp = Dash()\napp.layout = html.Div([\n    html.H1(\"Hello, world!\")\n])\n\n# You only need to add this:\nhtmlify(app)\n\napp.run()\n\n```\n## What just happened?\n\nThe `div` containing \"Loading...\" get an additional div, which is the full HTML of the app's `layout`. For the above app, it ends up like this:\n\n```html\n\u003cdiv id=\"react-entry-point\"\u003e\n    \u003cdiv class=\"_dash-loading\"\u003e\n        Loading...\n    \u003c/div\u003e\n    \u003cdiv\u003e\n        \u003ch1\u003ehello, world\u003c/h1\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n\n```\n\n## Limitations\n\nThe current solution works only for simple apps (not using pages).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliasdabbas%2Fdashseo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliasdabbas%2Fdashseo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliasdabbas%2Fdashseo/lists"}