{"id":13792174,"url":"https://github.com/toss/suspensive","last_synced_at":"2026-04-14T03:00:50.215Z","repository":{"id":63341681,"uuid":"566850397","full_name":"toss/suspensive","owner":"toss","description":"All-in-one for React Suspense — ErrorBoundary with shouldCatch, SSR-safe Suspense, Delay, and more","archived":false,"fork":false,"pushed_at":"2026-04-14T01:09:00.000Z","size":533465,"stargazers_count":1009,"open_issues_count":44,"forks_count":96,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-14T02:28:44.404Z","etag":null,"topics":["async","errorboundary","react","react-query","ssr","suspense","suspensive"],"latest_commit_sha":null,"homepage":"https://suspensive.org","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/toss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["manudeli"]}},"created_at":"2022-11-16T14:53:28.000Z","updated_at":"2026-04-14T01:06:39.000Z","dependencies_parsed_at":"2023-12-20T19:39:57.682Z","dependency_job_id":"cfffb775-931b-4bc0-b030-b0a151709b8b","html_url":"https://github.com/toss/suspensive","commit_stats":{"total_commits":1080,"total_committers":32,"mean_commits":33.75,"dds":"0.15648148148148144","last_synced_commit":"07b6b77411674ad0b7fcd6363dfe54e9179e6097"},"previous_names":["toss/suspensive","suspensive/react"],"tags_count":1008,"template":false,"template_full_name":null,"purl":"pkg:github/toss/suspensive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toss%2Fsuspensive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toss%2Fsuspensive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toss%2Fsuspensive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toss%2Fsuspensive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toss","download_url":"https://codeload.github.com/toss/suspensive/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toss%2Fsuspensive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31779947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: 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":["async","errorboundary","react","react-query","ssr","suspense","suspensive"],"created_at":"2024-08-03T22:01:09.145Z","updated_at":"2026-04-14T03:00:50.151Z","avatar_url":"https://github.com/toss.png","language":"TypeScript","funding_links":["https://github.com/sponsors/manudeli"],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://suspensive.org\" title=\"Suspensive - All in one for React Suspense\"\u003e\n    \u003cimg src=\"https://github.com/toss/suspensive/blob/main/docs/suspensive.org/public/img/banner.png?raw=true\" alt=\"Suspensive — All-in-one for React Suspense\" height=\"400\" /\u003e\n  \u003c/a\u003e\n  \u003cp\u003e\n    \u003ca href=\"https://www.npmjs.com/package/@suspensive/react\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@suspensive/react.svg?style=flat-square\u0026colorA=000\u0026colorB=000\" alt=\"npm version\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/@suspensive/react\"\u003e\u003cimg src=\"https://img.shields.io/npm/dw/@suspensive/react.svg?style=flat-square\u0026colorA=000\u0026colorB=000\" alt=\"npm downloads\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/toss/suspensive\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/toss/suspensive?style=flat-square\u0026colorA=000\u0026colorB=000\" alt=\"GitHub stars\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/toss/suspensive/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/toss/suspensive?style=flat-square\u0026colorA=000\u0026colorB=000\" alt=\"MIT License\" /\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## What is Suspensive?\n\nReact gives you Suspense, lazy, and an interface to build Error Boundaries — but using them in real applications reveals gaps. **Suspensive fills those gaps** with declarative components and hooks.\n\n```tsx\nimport { Delay, ErrorBoundary, ErrorBoundaryGroup, Suspense } from '@suspensive/react'\n\nconst Page = () =\u003e (\n  \u003cErrorBoundaryGroup\u003e\n    \u003cErrorBoundaryGroup.Consumer\u003e\n      {({ reset }) =\u003e \u003cbutton onClick={reset}\u003eReset All\u003c/button\u003e}\n    \u003c/ErrorBoundaryGroup.Consumer\u003e\n    \u003cErrorBoundary\n      shouldCatch={NetworkError}\n      fallback={({ error, reset }) =\u003e \u003cErrorUI error={error} onRetry={reset} /\u003e}\n    \u003e\n      \u003cSuspense\n        clientOnly\n        fallback={\n          \u003cDelay ms={200}\u003e\n            {({ isDelayed }) =\u003e \u003cSpinner style={{ opacity: isDelayed ? 1 : 0, transition: 'opacity 200ms' }} /\u003e}\n          \u003c/Delay\u003e\n        }\n      \u003e\n        \u003cContent /\u003e\n      \u003c/Suspense\u003e\n    \u003c/ErrorBoundary\u003e\n  \u003c/ErrorBoundaryGroup\u003e\n)\n```\n\n- **`shouldCatch`** — catch only specific error types, let others propagate\n- **`ErrorBoundaryGroup`** — reset multiple error boundaries at once, no prop drilling\n- **`clientOnly`** — SSR-safe Suspense that avoids hydration mismatches in Next.js\n- **`Delay`** — prevent flash-of-loading-state with render props for smooth fade-in\n- **`reset`** — built into the fallback props, no external state needed\n\n## Packages\n\n| Package                                                                       | Description                                                    | Version                                                                                                                                                       |\n| ----------------------------------------------------------------------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [@suspensive/react](https://suspensive.org/docs/react/motivation)             | Suspense, ErrorBoundary, ErrorBoundaryGroup, Delay, ClientOnly | [![npm](https://img.shields.io/npm/v/@suspensive/react?style=flat-square\u0026colorA=000\u0026colorB=000)](https://www.npmjs.com/package/@suspensive/react)             |\n| [@suspensive/react-query](https://suspensive.org/docs/react-query/motivation) | SuspenseQuery, SuspenseInfiniteQuery, Mutation, PrefetchQuery  | [![npm](https://img.shields.io/npm/v/@suspensive/react-query?style=flat-square\u0026colorA=000\u0026colorB=000)](https://www.npmjs.com/package/@suspensive/react-query) |\n| [@suspensive/jotai](https://suspensive.org/docs/jotai/motivation)             | Atom, AtomValue, SetAtom for Jotai integration                 | [![npm](https://img.shields.io/npm/v/@suspensive/jotai?style=flat-square\u0026colorA=000\u0026colorB=000)](https://www.npmjs.com/package/@suspensive/jotai)             |\n| [@suspensive/codemods](https://suspensive.org/docs/codemods/motivation)       | Automated migration codemods                                   | [![npm](https://img.shields.io/npm/v/@suspensive/codemods?style=flat-square\u0026colorA=000\u0026colorB=000)](https://www.npmjs.com/package/@suspensive/codemods)       |\n\n## Key Features\n\n- **`\u003cErrorBoundary/\u003e`** with `shouldCatch` — catch only the errors you want ([comparison with react-error-boundary](https://suspensive.org/docs/react/comparison))\n- **`\u003cErrorBoundaryGroup/\u003e`** — reset multiple error boundaries at once, no prop drilling\n- **`\u003cSuspense/\u003e`** with `clientOnly` — SSR-safe Suspense that just works in Next.js\n- **`\u003cSuspenseQuery/\u003e`** — declarative data fetching as JSX, no hook constraints\n- **`\u003cDelay/\u003e`** — prevent flash-of-loading-state UX issues\n- **`\u003cDefaultPropsProvider/\u003e`** — set global default fallbacks for all components\n\n## Getting Started\n\n```bash\nnpm install @suspensive/react\n```\n\nVisit **[suspensive.org](https://suspensive.org)** for full documentation.\n\n[English](https://suspensive.org/en) | [한국어](https://suspensive.org/ko)\n\n## Contributors\n\nRead our [Contributing Guide](./CONTRIBUTING.md) to familiarize yourself with Suspensive's development process, how to suggest bug fixes and improvements, and the steps for building and testing your changes.\n\n\u003ca href=\"https://github.com/toss/suspensive/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=toss/suspensive\" /\u003e\n\u003c/a\u003e\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n\u003ca title=\"Toss\" href=\"https://toss.im\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://static.toss.im/logos/png/4x/logo-toss-reverse.png\"\u003e\n    \u003cimg alt=\"Toss\" src=\"https://static.toss.im/logos/png/4x/logo-toss.png\" width=\"100\"\u003e\n  \u003c/picture\u003e\n\u003c/a\u003e\n\nMIT © Viva Republica, Inc. See [LICENSE](./LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoss%2Fsuspensive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoss%2Fsuspensive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoss%2Fsuspensive/lists"}