{"id":18983733,"url":"https://github.com/edspencer/rsc-examples","last_synced_at":"2025-04-19T20:11:29.694Z","repository":{"id":247654624,"uuid":"826380537","full_name":"edspencer/rsc-examples","owner":"edspencer","description":"A collection of examples of how to use React Server Components, using Next JS","archived":false,"fork":false,"pushed_at":"2024-09-13T15:32:21.000Z","size":4831,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T17:29:11.396Z","etag":null,"topics":["nextjs","react","react-server-components"],"latest_commit_sha":null,"homepage":"https://rsc-examples.edspencer.net","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/edspencer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2024-07-09T15:43:50.000Z","updated_at":"2025-04-01T11:04:14.000Z","dependencies_parsed_at":"2024-08-29T12:58:53.534Z","dependency_job_id":"4d9d3002-6747-47c2-a9c0-6a4e537ea38e","html_url":"https://github.com/edspencer/rsc-examples","commit_stats":null,"previous_names":["edspencer/rsc-examples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edspencer%2Frsc-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edspencer%2Frsc-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edspencer%2Frsc-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edspencer%2Frsc-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edspencer","download_url":"https://codeload.github.com/edspencer/rsc-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249787984,"owners_count":21325640,"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":["nextjs","react","react-server-components"],"created_at":"2024-11-08T16:18:15.448Z","updated_at":"2025-04-19T20:11:29.657Z","avatar_url":"https://github.com/edspencer.png","language":"TypeScript","readme":"A collection of React Server Component examples, hosted at https://rsc-examples.edspencer.net, or runnable locally via `npm start dev`.\n\nThese were created to support a series of blog posts I wrote about React Server Components at https://edspencer.net.\n\n## Features\n\nUses `\u003cMDXRemote\u003e` to render the contents of the `README.mdx` files, using their frontmatter\n\n## Adding Examples\n\nExamples are found in the src/app/examples folder. Each example should contain at least a `README.mdx`, which will be rendered as the page content when the example is visited in the browser. Typically an example will also contain a `page.tsx`, which contains the actual example source, as well as potentially other auxiliary files.\n\nThe `README.mdx` should contain a frontmatter declaration that at least contains a title and a slug, which is the url the example will be served from. The slug should mirror the directory structure of the example files.\n\n## Recording videos\n\nRun `npm run video` to automatically generate timestamped videos of all examples that don't currently have one in the `public/videos` directory.\n\n## Generating Related Examples\n\nUses [ReadNext](https://github.com/edspencer/read-next) to generate the related examples at the bottom of each example page. Re-generate these by running (making sure an `OPENAI_API_KEY` is present in env variables):\n\n```sh\nnpm run related\n```\n\n## To do\n\n- Option to disable video looping\n- Fix search\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedspencer%2Frsc-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedspencer%2Frsc-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedspencer%2Frsc-examples/lists"}