{"id":18248812,"url":"https://github.com/sergiocarneiro/99-remix","last_synced_at":"2026-03-19T03:30:34.707Z","repository":{"id":172599280,"uuid":"586278050","full_name":"sergiocarneiro/99-remix","owner":"sergiocarneiro","description":"😎 Extensive list of awesome things you can do with Remix 💿","archived":false,"fork":false,"pushed_at":"2023-01-07T21:20:46.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-22T11:10:56.618Z","etag":null,"topics":["99-list","lists","resources"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sergiocarneiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2023-01-07T15:18:59.000Z","updated_at":"2023-03-07T05:05:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"627b258d-167f-4386-97b9-2d90e7679ab1","html_url":"https://github.com/sergiocarneiro/99-remix","commit_stats":null,"previous_names":["sergiocarneiro/99-remix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiocarneiro%2F99-remix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiocarneiro%2F99-remix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiocarneiro%2F99-remix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiocarneiro%2F99-remix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergiocarneiro","download_url":"https://codeload.github.com/sergiocarneiro/99-remix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247918927,"owners_count":21018044,"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":["99-list","lists","resources"],"created_at":"2024-11-05T09:38:22.028Z","updated_at":"2026-01-22T16:35:35.544Z","avatar_url":"https://github.com/sergiocarneiro.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\t\u003cb\u003e😎 Extensive list of awesome things you can do with \u003ca href=\"https://remix.run\"\u003eRemix 💿\u003c/a\u003e\u003c/b\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"#data-fetching\"\u003eData Fetching\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\t\u003ca href=\"#rendering\"\u003eRendering\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\t\u003ca href=\"#resource-routes\"\u003eResource Routes\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\t\u003ca href=\"#type-safety\"\u003eType Safety\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n# I just started this! 🚼\n\nMy goal is to provide a collection of practical and concise examples that showcase the different capabilities of Remix.\n\nThis started as a list for myself to summarize what I've learned. Over time, I'll be adding more content and increasing the specificity of the examples as I continue to learn and explore.\n\nIf that sounds interesting to you, please consider starring the repo and joining the discussions! ⭐️\n\n\u003cbr /\u003e\n\n# Data Fetching\n\n## Server-Sent Events (SSE)\nSend data from the server without the client requesting it.\n\nComponents just need to subscribe to an *event source* using a *hook* that links to a *resource route*.\n\n\u003cp\u003e\n\t\u003ca href=\"https://github.com/sergiodxa/remix-utils/#server-sent-events\"\u003eHow-to\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n# Rendering\n\n## Static Routes\nRemove client-side scripts from static pages with [useShouldHydrate](https://github.com/sergiodxa/remix-utils#useshouldhydrate) from remix-utils.\n\n\u003e Third-party scripts can still be loaded using [ExternalScripts](https://github.com/sergiodxa/remix-utils#externalscripts).\n\n\u003cdetails\u003e\n  \u003csummary\u003eHow-to\u003c/summary\u003e\n\n\u003ch3\u003eroot.tsx\u003c/h3\u003e\n\n\timport { useShouldHydrate } from \"remix-utils\";\n\n\texport function Document({ children })\n\t{\n\t  let shouldHydrate = useShouldHydrate();\n\n\t  return (\n\t    ...\n\t    \u003cbody\u003e\n\t      {children}\n\t      \u003cScrollRestoration /\u003e\n\t      \u003cExternalScripts /\u003e\n\t      {shouldHydrate \u0026\u0026 \u003cScripts /\u003e}\n\t      \u003cLiveReload /\u003e\n\t    \u003c/body\u003e\n\t  );\n\t}\n\n\u003ch3\u003eroutes/\u003ci\u003esome-path\u003c/i\u003e.tsx\u003c/h3\u003e\n\n\t// A. Static\n\texport const handle = {\n\t  hydrate: false\n\t};\n\n\t// B. Conditional\n\texport const handle = {\n\t  hydrate: (data: LoaderData) =\u003e {\n\t    // ...\n\t  }\n\t};\n\u003c/details\u003e\n\n\u003cbr /\u003e\n\n# Resource Routes\nClassic server endpoints that render no component.\n\u003cp\u003e\n\t\u003ca href=\"https://remix.run/docs/en/v1/guides/resource-routes#handling-different-request-methods\"\u003eHow-to\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\t\u003ca href=\"https://remix.run/docs/en/v1/guides/resource-routes\"\u003eDocs\u003c/a\u003e\n\u003c/p\u003e\n\n## Content Generation\nGenerate all sorts of content based on data.\n\n\u003cdetails\u003e\n  \u003csummary\u003eTypes\u003c/summary\u003e\n\n  ### Image\n  For content delivery, processing, etc.\n  \u003cdetails\u003e\n    \u003csummary\u003eHow-to\u003c/summary\u003e\n\n    export async function loader({ params }: LoaderArgs) {\n      const { content, format } = await getImage(params.path);\n      return new Response(content, {\n        status: 200,\n        headers: {\n          \"Content-Type\": `image/${format}`,\n        },\n      });\n    }\n  \u003c/details\u003e\n\n  ### PDF\n  For reports, invoices, etc.\n  \u003cdetails\u003e\n    \u003csummary\u003eHow-to\u003c/summary\u003e\n\n    export async function loader({ params }: LoaderArgs) {\n      const report = await getReport(params.id);\n      const pdf = await generateReportPDF(report);\n      return new Response(pdf, {\n        status: 200,\n        headers: {\n          \"Content-Type\": \"application/pdf\",\n        },\n      });\n    }\n  \u003c/details\u003e\n\n  ### HTML\n  To provide markup in API endpoints, for widgets and other integrations.\n  \u003cdetails\u003e\n    \u003csummary\u003eHow-to\u003c/summary\u003e\n\n    export async function loader({ params }: LoaderArgs) {\n      const user = await getUser(params.id);\n      const { template } = await generateWidget(user);\n      return new Response(script, {\n        status: 200,\n        headers: {\n          \"Content-Type\": \"text/html\",\n        },\n      });\n    }\n  \u003c/details\u003e\n\n  ### CSS\n  To provide styles in API endpoints, for widgets and other integrations.\n  \u003cdetails\u003e\n    \u003csummary\u003eHow-to\u003c/summary\u003e\n\n    export async function loader({ params }: LoaderArgs) {\n      const user = await getUser(params.id);\n      const { styles } = await generateWidget(user);\n      return new Response(script, {\n        status: 200,\n        headers: {\n          \"Content-Type\": \"text/css\",\n        },\n      });\n    }\n  \u003c/details\u003e\n\n  ### Javascript\n  To provide scripts in API endpoints, for widgets and other integrations.\n  \u003cdetails\u003e\n    \u003csummary\u003eHow-to\u003c/summary\u003e\n\n    export async function loader({ params }: LoaderArgs) {\n      const user = await getUser(params.id);\n      const { script } = await generateWidget(user);\n      return new Response(script, {\n        status: 200,\n        headers: {\n          \"Content-Type\": \"application/javascript\",\n        },\n      });\n    }\n  \u003c/details\u003e\n\u003c/details\u003e\n\n## Webhooks\nExternal services can send data to resource routes.\n\u003cp\u003e\n\t\u003ca href=\"https://remix.run/docs/en/v1/guides/resource-routes#webhooks\"\u003eHow-to\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n# Type Safety\n\n## Cookies\nMake cookies fully type-safe using a [Zod](https://zod.dev) schema.\n\u003cp\u003e\n\t\u003ca href=\"https://github.com/sergiodxa/remix-utils/#typed-cookies\"\u003eHow-to\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiocarneiro%2F99-remix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergiocarneiro%2F99-remix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiocarneiro%2F99-remix/lists"}