{"id":28823569,"url":"https://github.com/tsedio/tsed-browser-example","last_synced_at":"2026-05-16T01:33:21.739Z","repository":{"id":297737412,"uuid":"997492996","full_name":"tsedio/tsed-browser-example","owner":"tsedio","description":"Use @tsed/di in a React project","archived":false,"fork":false,"pushed_at":"2025-06-07T05:23:20.000Z","size":1079,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-19T04:08:14.395Z","etag":null,"topics":["injection-dependency","reactjs","tsed"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tsedio.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":"2025-06-06T16:09:38.000Z","updated_at":"2025-06-07T05:23:24.000Z","dependencies_parsed_at":"2025-06-07T06:34:30.644Z","dependency_job_id":null,"html_url":"https://github.com/tsedio/tsed-browser-example","commit_stats":null,"previous_names":["tsedio/tsed-browser-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsedio/tsed-browser-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsedio%2Ftsed-browser-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsedio%2Ftsed-browser-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsedio%2Ftsed-browser-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsedio%2Ftsed-browser-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsedio","download_url":"https://codeload.github.com/tsedio/tsed-browser-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsedio%2Ftsed-browser-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33087028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"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":["injection-dependency","reactjs","tsed"],"created_at":"2025-06-19T00:10:18.111Z","updated_at":"2026-05-16T01:33:21.724Z","avatar_url":"https://github.com/tsedio.png","language":"TypeScript","funding_links":["https://opencollective.com/tsed"],"categories":[],"sub_categories":[],"readme":"\u003cp style=\"text-align: center\" align=\"center\"\u003e\n  \u003ca href=\"https://tsed.io\" target=\"_blank\"\u003e\u003cimg src=\"https://tsed.dev/tsed-og.png\" width=\"200\" alt=\"Ts.ED logo\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e@tsed/di + React.js\u003c/h1\u003e\n  \u003cbr /\u003e\n  \u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://tsed.dev/\"\u003eWebsite\u003c/a\u003e\n    \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n    \u003ca href=\"https://tsed.dev/getting-started.html\"\u003eGetting started\u003c/a\u003e\n    \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n    \u003ca href=\"https://api.tsed.dev/rest/slack/tsedio/tsed\"\u003eSlack\u003c/a\u003e\n    \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n    \u003ca href=\"https://twitter.com/TsED_io\"\u003eTwitter\u003c/a\u003e\n  \u003c/div\u003e\n  \u003chr /\u003e\n\u003c/div\u003e\n\n\u003e Use @tsed/di with React.js to build your website with Vite 4 and Ts.ED.\n\n## Features\n\n- Ts.ED\n- Vite\n- React 19\n\n## Example\n\n```tsx\nimport {useEffect, useState} from 'react'\nimport reactLogo from './assets/react.svg'\nimport viteLogo from '/vite.svg'\nimport './App.css'\nimport {HttpClient} from \"./services/HttpClient.js\";\nimport {inject} from \"@tsed/di\";\n\nfunction App() {\n  const [count, setCount] = useState(0)\n  const [tsedApi, setTsedApi] = useState\u003c{ version: string; modules: Record\u003cstring, any\u003e } | null\u003e(null)\n\n  useEffect(() =\u003e {\n    const httpClient = inject(HttpClient)\n\n    httpClient.get(\"https://tsed.dev/api.json\")\n      .then((value) =\u003e {\n        setTsedApi(value)\n      })\n  }, [])\n\n  return (\n    \u003c\u003e\n      \u003cdiv\u003e\n        \u003ca href=\"https://vite.dev\" target=\"_blank\"\u003e\n          \u003cimg src={viteLogo} className=\"logo\" alt=\"Vite logo\"/\u003e\n        \u003c/a\u003e\n        \u003ca href=\"https://react.dev\" target=\"_blank\"\u003e\n          \u003cimg src={reactLogo} className=\"logo react\" alt=\"React logo\"/\u003e\n        \u003c/a\u003e\n        \u003ca href=\"https://tsed.dev\" target=\"_blank\"\u003e\n          \u003cimg src=\"https://tsed.dev/tsed.svg\" className=\"logo tsed\" alt=\"Ts.ED logo\"/\u003e\n        \u003c/a\u003e\n      \u003c/div\u003e\n      \u003ch1\u003eVite + React + Ts.ED \u003c/h1\u003e\n      \u003cdiv className=\"card\"\u003e\n        \u003cbutton onClick={() =\u003e setCount((count) =\u003e count + 1)}\u003e\n          count is {count}\n        \u003c/button\u003e\n        \u003cp\u003e\n          Edit \u003ccode\u003esrc/App.tsx\u003c/code\u003e and save to test HMR\n        \u003c/p\u003e\n      \u003c/div\u003e\n      \u003cp className=\"read-the-docs\"\u003e\n        Click on the Vite and React logos to learn more\n      \u003c/p\u003e\n\n      \u003cdiv\u003e\n        \u003ch2\u003eTs.ED {tsedApi?.version}\u003c/h2\u003e\n\n        \u003cp\u003e\n          Use @tsed/di to inject create and inject services like \u003ccode\u003eHttpClient\u003c/code\u003e and fetch data from your\n          backend.\n        \u003c/p\u003e\n\n        \u003ch3\u003eModules\u003c/h3\u003e\n\n        \u003cul\u003e\n          {\n            Object.entries(tsedApi?.modules || {}).map(([name]) =\u003e (\n              \u003cli key={name}\u003e\n                \u003cspan\u003e{name}\u003c/span\u003e\n              \u003c/li\u003e\n            ))\n          }\n        \u003c/ul\u003e\n      \u003c/div\u003e\n    \u003c/\u003e\n  )\n}\n\nexport default App\n```\n\n## Contributors\n\nPlease read [contributing guidelines here](./CONTRIBUTING.md).\n\n\u003ca href=\"https://github.com/tsedio/tsed/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/tsed/contributors.svg?width=890\" /\u003e\u003c/a\u003e\n\n## Backers\n\nThank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tsed#backer)]\n\n\u003ca href=\"https://opencollective.com/tsed#backers\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/tsed/tiers/backer.svg?width=890\"\u003e\u003c/a\u003e\n\n## Sponsors\n\nSupport this project by becoming a sponsor. Your logo will show up here with a link to your\nwebsite. [[Become a sponsor](https://opencollective.com/tsed#sponsor)]\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 - Today Romain Lenzotti\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit\npersons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE\nWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsedio%2Ftsed-browser-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsedio%2Ftsed-browser-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsedio%2Ftsed-browser-example/lists"}