{"id":19879813,"url":"https://github.com/dylanblokhuis/remix-code-snippets","last_synced_at":"2025-10-17T15:32:05.949Z","repository":{"id":106037691,"uuid":"442816136","full_name":"dylanblokhuis/remix-code-snippets","owner":"dylanblokhuis","description":"Speed up your Remix development with dynamic code snippets","archived":false,"fork":false,"pushed_at":"2022-05-25T14:48:38.000Z","size":251,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T17:53:26.625Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dylanblokhuis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2021-12-29T15:37:10.000Z","updated_at":"2023-11-29T04:21:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"07846ae5-e6a9-4086-bf01-39050da294c3","html_url":"https://github.com/dylanblokhuis/remix-code-snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanblokhuis%2Fremix-code-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanblokhuis%2Fremix-code-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanblokhuis%2Fremix-code-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanblokhuis%2Fremix-code-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylanblokhuis","download_url":"https://codeload.github.com/dylanblokhuis/remix-code-snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241309105,"owners_count":19941724,"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-11-12T17:09:32.017Z","updated_at":"2025-10-17T15:32:00.913Z","avatar_url":"https://github.com/dylanblokhuis.png","language":"TypeScript","readme":"# remix-code-snippets\n\nSpeed up your Remix development with dynamic code snippets. Quickly create remix components using code snippets like `rmx_fc_l` with the following output:\n\n```typescriptreact\nimport type { LoaderFunction } from \"@remix-run/node\"\n\nexport const loader: LoaderFunction = () =\u003e {\n\n}\n\nexport default function ComponentName() {\n  return (\n    \u003cdiv\u003e\u003c/div\u003e\n  )\n}\n```\n\n### Want to use `let` instead?\n\nEnable `remix-code-snippets.useLetInsteadOfConst` and you get the following output:\n\n```typescriptreact\nimport type { LoaderFunction } from \"@remix-run/node\"\n\nexport let loader: LoaderFunction = () =\u003e {\n\n}\n\nexport default function ComponentName() {\n  return (\n    \u003cdiv\u003e\u003c/div\u003e\n  )\n}\n```\n\n### Add additional code after imports\n\nFill in `remix-code-snippets.additionalCodeAfterImports` with e.g. `import db from \"~/services/db.server\"` and you get the following output:\n\n```typescriptreact\nimport type { LoaderFunction } from \"@remix-run/node\"\nimport db from \"~/services/db.server\"\n\nexport const loader: LoaderFunction = () =\u003e {\n\n}\n\nexport default function ComponentName() {\n  return (\n    \u003cdiv\u003e\u003c/div\u003e\n  )\n}\n```\n\n## Preview\n\n\u003cimg src=\"https://i.imgur.com/ClXV6qU.gif\" /\u003e\n\n## Code snippets\n\n| Trigger      | Description                                         |\n| ------------ | --------------------------------------------------- |\n| `rmx_fc_a`   | Functional component with action                    |\n| `rmx_fc_l`   | Functional component with loader                    |\n| `rmx_fc_al`  | Functional component with action and loader         |\n| `rmx_fc_h`   | Functional component with handle                    |\n| `rmx_fc_ha`  | Functional component with handle and action         |\n| `rmx_fc_hl`  | Functional component with handle and loader         |\n| `rmx_fc_hal` | Functional component with handle, action and loader |\n\n## Extension Settings\n\nThis extension contributes the following settings:\n\n- `remix-code-snippets.useLetInsteadOfConst`: Handle, action and loader will be declared using `let` instead of `const`\n- `remix-code-snippets.additionalCodeAfterImports`: Add additional code after the import statement.\n\n## Release Notes\n\n### 1.0.0\n\nInitial release\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanblokhuis%2Fremix-code-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanblokhuis%2Fremix-code-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanblokhuis%2Fremix-code-snippets/lists"}