{"id":15598641,"url":"https://github.com/jofaval/react-providers-wrapper","last_synced_at":"2026-04-19T04:33:56.094Z","repository":{"id":125618376,"uuid":"532233604","full_name":"jofaval/react-providers-wrapper","owner":"jofaval","description":"Nest your React providers to simplify your codebase","archived":false,"fork":false,"pushed_at":"2023-04-18T00:06:47.000Z","size":396,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T12:14:15.229Z","etag":null,"topics":["classes","hooks","npm","npm-package","provider","react","reactjs"],"latest_commit_sha":null,"homepage":"https://jofaval.github.io/react-providers-wrapper/","language":"TypeScript","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/jofaval.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-03T10:59:20.000Z","updated_at":"2023-03-07T08:06:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"3fff4e2f-577e-4270-8b5d-957a996e3803","html_url":"https://github.com/jofaval/react-providers-wrapper","commit_stats":{"total_commits":49,"total_committers":2,"mean_commits":24.5,"dds":"0.020408163265306145","last_synced_commit":"909fc4b549336bb6a24406dbc762b7356d59ccf0"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jofaval/react-providers-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jofaval%2Freact-providers-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jofaval%2Freact-providers-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jofaval%2Freact-providers-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jofaval%2Freact-providers-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jofaval","download_url":"https://codeload.github.com/jofaval/react-providers-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jofaval%2Freact-providers-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31995073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["classes","hooks","npm","npm-package","provider","react","reactjs"],"created_at":"2024-10-03T01:40:53.231Z","updated_at":"2026-04-19T04:33:56.062Z","avatar_url":"https://github.com/jofaval.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003ereact-providers-wrapper\u003c/h1\u003e\n\nNest your React providers\n\n\u003c/div\u003e\n\n## Contents\n\n1. [Roadmap](#roadmap)\n1. [Why?](#why)\n   1. [Problem](#problem)\n   1. [Solution](#solution)\n1. [Inspiration](#inspiration)\n1. [Tech stack](#tech-stack)\n1. [Version upgrade instructions (local)](#Version)\n   1. [Create a local tag](#Create)\n   1. [Upload the tag to the remote (this repo)](#Upload)\n   1. [Configure your local](#Configure)\n\n## Roadmap\n\n[⬆ Back to the contents](#contents)\n\nCheck out the Roadmap at [ROADMAP.md](./ROADMAP.md) and the CHANGELOG at [CHANGELOG.md](./CHANGELOG.md).\n\n## Why?\n\n[⬆ Back to the contents](#contents)\n\nI saw it on twitter, shared by Dan Abramov, as someone was complaining of this nesting, and I thought of a solution for a non-existent problem.\n\nFor code style purposes, when you have a bigger React App, you may end up with a lot of nested providers at your App which may be confusing to look at. This package proposes a solution that nicely wraps all of those Providers so that it's easier to track the hierarchy.\n\n### Problem\n\n[⬆ Back to the contents](#contents)\n\n```jsx\n\u003cReact.Strict\u003e,\n  \u003cProvider store={store}\u003e,\n    \u003cUserProvider\u003e,\n      \u003cLoginProvider\u003e,\n        \u003cBlaBlaBlaProvider\u003e,\n          \u003cNoseQueProvider\u003e,\n            \u003cApp /\u003e\n          \u003cNoseQueProvider /\u003e,\n        \u003cBlaBlaBlaProvider /\u003e,\n      \u003cLoginProvider /\u003e,\n    \u003cUserProvider /\u003e,\n  \u003cProvider store={store} /\u003e,\n\u003cReact.Strict /\u003e,\n```\n\n### Solution\n\n[⬆ Back to the contents](#contents)\n\n```jsx\n\u003cProvidersWrapper\n  providers={[\n    { provider: React.Strict },\n    { provider: Provider, props: { store } },\n    { provider: UserProvider },\n    { provider: LoginProvider },\n    { provider: BlaBlaBlaProvider },\n    { provider: NoseQueProvider },\n  ]}\n\u003e\n  \u003cApp /\u003e\n\u003c/ProvidersWrapper\u003e\n```\n\n## Inspiration\n\n[⬆ Back to the contents](#contents)\n\nReact Error Boundary [https://github.com/bvaughn/react-error-boundary](https://github.com/bvaughn/react-error-boundary).\n\nAnd some random tweet making of the concept of many nested providers with \"too much\" indentation level, which is expected as the application grows, React or not.\n\n## Tech stack\n\n- React + Typescript\n- Vitest\n\nManaged with PNPM\n\n## Version upgrade instructions (local)\n\n[⬆ Back to the contents](#contents)\n\n### Create a local tag\n\n[⬆ Back to the contents](#contents)\n\n```bash\ngit tag x.x.x\n```\n\n### Upload the tag to the remote (this repo)\n\n[⬆ Back to the contents](#contents)\n\n```bash\ngit push origin x.x.x\n```\n\n### Configure your local\n\n[⬆ Back to the contents](#contents)\n\n```bash\ngit push --follow-tags\n```\n\nOr set to always push tags in your local\n\n```bash\ngit config --global push.followTags true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjofaval%2Freact-providers-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjofaval%2Freact-providers-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjofaval%2Freact-providers-wrapper/lists"}