{"id":15627613,"url":"https://github.com/bvaughn/suspense","last_synced_at":"2025-05-16T12:06:56.251Z","repository":{"id":77811167,"uuid":"604418433","full_name":"bvaughn/suspense","owner":"bvaughn","description":"Utilities for working with React Suspense","archived":false,"fork":false,"pushed_at":"2025-05-04T20:12:04.000Z","size":973,"stargazers_count":428,"open_issues_count":1,"forks_count":10,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-05-08T18:36:56.911Z","etag":null,"topics":["async","caching","data","fetching","loading","react","suspense"],"latest_commit_sha":null,"homepage":"https://suspense.vercel.app/","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/bvaughn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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},"funding":{"github":"bvaughn","patreon":null,"open_collective":"brianvaughn","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"bvaughn","custom":null}},"created_at":"2023-02-21T02:37:26.000Z","updated_at":"2025-05-05T10:02:36.000Z","dependencies_parsed_at":"2024-06-18T21:09:57.089Z","dependency_job_id":null,"html_url":"https://github.com/bvaughn/suspense","commit_stats":{"total_commits":281,"total_committers":6,"mean_commits":"46.833333333333336","dds":0.08185053380782914,"last_synced_commit":"56acfda7caad667bafbcd51cd718b357f588f472"},"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvaughn%2Fsuspense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvaughn%2Fsuspense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvaughn%2Fsuspense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvaughn%2Fsuspense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bvaughn","download_url":"https://codeload.github.com/bvaughn/suspense/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527085,"owners_count":22085918,"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":["async","caching","data","fetching","loading","react","suspense"],"created_at":"2024-10-03T10:17:54.202Z","updated_at":"2025-05-16T12:06:56.218Z","avatar_url":"https://github.com/bvaughn.png","language":"TypeScript","funding_links":["https://github.com/sponsors/bvaughn","https://opencollective.com/brianvaughn","https://buymeacoffee.com/bvaughn"],"categories":[],"sub_categories":[],"readme":"# suspense\n\nAPIs to simplify data loading and caching. Primarily intended for use with [React Suspense](https://beta.reactjs.org/blog/2022/03/29/react-v18#suspense-in-data-frameworks).\n\n#### ⚠️ Considerations\n1. Suspense is an experimental, pre-release feature; **these APIs will change** along with React.\n1. This package depends on `react@experimental` and `react-dom@experimental` versions.\n\n\n#### Example\n\n```js\nimport { createCache } from \"suspense\";\n\nconst userProfileCache = createCache({\n  load: async ([userId]) =\u003e {\n    const response = await fetch(`/api/user?id=${userId}`);\n    return await response.json();\n  },\n});\n\nfunction UserProfile({ userId }) {\n  const userProfile = userProfileCache.read(userId);\n\n  // ...\n}\n```\n\nMore examples at [suspense.vercel.app](https://suspense.vercel.app/).\n\n#### If you like this project, [buy me a coffee](http://givebrian.coffee/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvaughn%2Fsuspense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbvaughn%2Fsuspense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvaughn%2Fsuspense/lists"}