{"id":31273363,"url":"https://github.com/krasimir/forket","last_synced_at":"2025-10-05T02:12:52.655Z","repository":{"id":299786043,"uuid":"1004212655","full_name":"krasimir/forket","owner":"krasimir","description":"Forket is a tool that splits your code to client and server so you have RSC (React Server Components) working without a framework.","archived":false,"fork":false,"pushed_at":"2025-09-14T19:22:09.000Z","size":9496,"stargazers_count":111,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T22:06:32.386Z","etag":null,"topics":["react","rsc","server","ssr"],"latest_commit_sha":null,"homepage":"https://krasimirtsonev.com/blog/article/vanilla-react-server-components-with-no-framework","language":"JavaScript","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/krasimir.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-18T09:33:59.000Z","updated_at":"2025-09-23T10:14:40.000Z","dependencies_parsed_at":"2025-08-02T22:09:55.568Z","dependency_job_id":"8569e690-33f9-4d7f-83ed-6e5f7962038e","html_url":"https://github.com/krasimir/forket","commit_stats":null,"previous_names":["krasimir/forket"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/krasimir/forket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krasimir%2Fforket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krasimir%2Fforket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krasimir%2Fforket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krasimir%2Fforket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krasimir","download_url":"https://codeload.github.com/krasimir/forket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krasimir%2Fforket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278399690,"owners_count":25980332,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"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":["react","rsc","server","ssr"],"created_at":"2025-09-23T22:01:42.514Z","updated_at":"2025-10-05T02:12:52.620Z","avatar_url":"https://github.com/krasimir.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e𐂐 Forket - the RSC support without a framework\u003c/h1\u003e\n\nForket is a tool that splits your code to client and server so you have [RSC (React Server Components)](https://react.dev/reference/rsc/server-components) working without a framework.\n\n* [Documentation](./forket/README.md)\n* [Examples/templates](#examplestemplates)\n* [A must-read intro blog post](https://krasimirtsonev.com/blog/article/vanilla-react-server-components-with-no-framework)\n\n## RSC features\n\n| Feature | Is supported |\n| ----------- | ----------- |\n| Streaming | ✅ |\n| Async server components | ✅ |\n| Mixing server and client components | ✅ |\n| `\"use client\"` and `\"use server\"` directives | ✅ |\n| `Suspense` + `use` | ✅ |\n| Server functions | ✅ |\n| Server actions | ✅ |\n| `useActionState`, `useTransition` | ✅ |\n| Passing live-promise from server to client | ✅ |\n\n\u003cimg width=\"500\" src=\"https://raw.githubusercontent.com/krasimir/forket/refs/heads/main/assets/project_whitebg.png\"\u003e\n‎\n## Examples/Templates\n\n* esbuild / [Basic code snippets](./examples/basic/) - app that covers the examples from the [official server components](https://react.dev/reference/rsc/server-components) docs.\n* esbuild / [Image annotator](./examples/annotation-app/) - a little bit more complicated app for annotating pictures\n* Vite / [Inspirational quote generator](./examples/vite/) - generates inspirational quote\n* Webpack / [Inspirational quote generator](./examples/webpack/) - generates inspirational quote\n* [CLI](./examples/just-cli) - No app really. Just Forket doing its magic.\n\n## Caveats\n\nI'm quite happy with the result so far. The libarry is supporting almost everything that is listed into the official docs. However, to make all this work at a decent level I had to make some compromises. Here's the list:\n\n* You can’t have nester client boundaries or in other words nested islands.\n* There is an additional `div` with `display: content` for the root client components. So, no effect on your layout but there may be problems with some CSS selectors.\n* The server’s entry point also need to be processed by Forket. This means that it needs to be inside the `src` directory. Usually that's the case but who knows.\n* There must be at least one file in the root directory with “use client” directive. Forket need to inject some client-side utilities in order to operate.\n* The client entry points (the components that have “use client” need to default export a component)\n\n## Materials/inspiration\n\n* By Lazar Nikolov https://www.smashingmagazine.com/2024/05/forensics-react-server-components\n* By Dan Abramov - https://github.com/reactwg/server-components/discussions/5\n* https://edspencer.net/2024/7/1/decoding-react-server-component-payloads\n* Back in 2020 - https://www.youtube.com/watch?v=TQQPAU21ZUw\n* Dev tool to see RSC - https://www.alvar.dev/blog/creating-devtools-for-react-server-components\n* RSC from scratch - https://www.youtube.com/watch?v=MaebEqhZR84\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrasimir%2Fforket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrasimir%2Fforket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrasimir%2Fforket/lists"}