{"id":22482424,"url":"https://github.com/jacob-ebey/react-framework","last_synced_at":"2025-07-19T06:06:29.346Z","repository":{"id":265008824,"uuid":"862780952","full_name":"jacob-ebey/react-framework","owner":"jacob-ebey","description":"A theoretical React framework allowing for maximum utilization of the Cloudflare platform.","archived":false,"fork":false,"pushed_at":"2024-10-01T19:16:31.000Z","size":93,"stargazers_count":35,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-19T00:04:42.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jacob-ebey.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}},"created_at":"2024-09-25T07:17:59.000Z","updated_at":"2025-01-28T00:37:33.000Z","dependencies_parsed_at":"2024-11-27T08:17:32.365Z","dependency_job_id":null,"html_url":"https://github.com/jacob-ebey/react-framework","commit_stats":null,"previous_names":["jacob-ebey/react-framework"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jacob-ebey/react-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-ebey%2Freact-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-ebey%2Freact-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-ebey%2Freact-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-ebey%2Freact-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacob-ebey","download_url":"https://codeload.github.com/jacob-ebey/react-framework/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-ebey%2Freact-framework/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265896108,"owners_count":23845426,"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":[],"created_at":"2024-12-06T16:24:53.698Z","updated_at":"2025-07-19T06:06:29.315Z","avatar_url":"https://github.com/jacob-ebey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Framework\n\n\u003e [!NOTE]  \n\u003e This is a work in progress. Assume any CF specific terms below are placeholders and will be abstracted out for any runtime.\n\u003e\n\u003e - `ExportedHandler` = `ServerEntry`\n\u003e - `DurableObject` = `Durable`\n\nEntrypoint is a standard worker entrypoint exporting default an `ExportedHandler`. It configures the eyeball worker with a `handleRequest` function that accepts a routes configuration. This is the \"prerender\" server that renders to HTML.\n\nThe `import` of each route config can either point to a module that contains a default export that is a React component, or a module that exports a `fetch()` handler that dispatches to another RSC server.\n\n## `class Durable\u003cName, Env\u003e`\n\nA class that extends and brands the cloudflare DurableObject class. It is used for discovery, type generation and deployment configuration.\n\n## `service` Module\n\n```ts\nimport(\"./api/profile.js\", { with: { type: \"service\" } });\n```\n\nDenotes a module as a unique worker entrypoint and a react-server context that runs as close as possible to the user and is executed through a service binding from the eyeball worker.\n\n### `function eyeball()`\n\nA function that executes on the eyeball worker before delegating the request to the service binding for this route.\n\n## `react-service` Module\n\n```ts\nimport(\"./routes/login.js\", { with: { type: \"react-service\" } });\n```\n\nDenotes a module as a unique worker entrypoint and a react-server context that runs as close as possible to the user and is executed through a service binding from the eyeball worker.\n\nThis results in the module becoming an entrypoint in the \"server\" environment and resulting in a module that, in-concept, looks like:\n\n```ts\nimport { handleActions, renderToReadableStream } from \"framework/server\";\nimport * as mod from \"./path-to-use-worker-module\";\n\nexport default {\n  async fetch(request, env, ctx) {\n    // Execute server actions.\n    const actionResults = await handleActions(request, env, ctx, mod);\n    // Render the app.\n    return renderToReadableStream(request, env, ctx, actionResults, mod);\n  },\n} satisfies ExportedHandler;\n```\n\nCan also contain an eyeball function that runs on the eyeball worker before delegating the request to the service binding for this route.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacob-ebey%2Freact-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacob-ebey%2Freact-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacob-ebey%2Freact-framework/lists"}