{"id":13604867,"url":"https://github.com/nikolailehbrink/retail","last_synced_at":"2025-08-02T05:32:34.520Z","repository":{"id":226074709,"uuid":"767449515","full_name":"nikolailehbrink/retail","owner":"nikolailehbrink","description":"Starter template for building full-stack web applications with Remix using Vite, TypeScript, Tailwind CSS, Prettier and ESLint.","archived":false,"fork":false,"pushed_at":"2024-11-24T16:55:01.000Z","size":496,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-29T23:43:15.928Z","etag":null,"topics":["eslint","fontsource","prettier","remix","tailwindcss","typescript","vite"],"latest_commit_sha":null,"homepage":"https://retail.nikolailehbr.ink/","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/nikolailehbrink.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-03-05T10:09:54.000Z","updated_at":"2024-11-26T08:00:04.000Z","dependencies_parsed_at":"2024-03-05T19:27:24.215Z","dependency_job_id":"ed8c3a31-41a0-429c-9881-c65a6c1644af","html_url":"https://github.com/nikolailehbrink/retail","commit_stats":null,"previous_names":["nikolailehbrink/retail"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolailehbrink%2Fretail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolailehbrink%2Fretail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolailehbrink%2Fretail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolailehbrink%2Fretail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikolailehbrink","download_url":"https://codeload.github.com/nikolailehbrink/retail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228439449,"owners_count":17920026,"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":["eslint","fontsource","prettier","remix","tailwindcss","typescript","vite"],"created_at":"2024-08-01T19:00:52.124Z","updated_at":"2025-08-02T05:32:34.449Z","avatar_url":"https://github.com/nikolailehbrink.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Get Started"],"sub_categories":["Templates"],"readme":"\u003ca href=\"https://retail.nikolailehbr.ink/\"\u003e\n  \u003cimg alt=\"ReTail website screenshot\" src=\"./public/assets/screenshot.png\"\u003e\n  \u003ch1 align=\"center\"\u003eReTail\u003c/h1\u003e\n\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\nA refined React Router starter template with improved defaults for building full-stack web applications.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#why\"\u003e\u003cstrong\u003eWhy\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#features\"\u003e\u003cstrong\u003eFeatures\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#development\"\u003e\u003cstrong\u003eDevelopment\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#deployment\"\u003e\u003cstrong\u003eDeployment\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n## Why\n\nWhen I first started using `Remix`, the predecessor to `React Router 7`, I worked with the [official `Remix` template with `Vite`](https://github.com/remix-run/remix/tree/main/templates/remix). However, it lacked built-in support for `Tailwind CSS`, requiring me to manually install and configure it for every new project. To simplify this setup, I created my own starter template: **ReTail** (`Remix`/`React Router` + `Tailwind CSS`).\n\nSince then, the official `Remix` template has added `Tailwind CSS` support, and `React Router 7` has been released. Despite these updates, I continue to maintain ReTail because I think it provides better defaults than the default template, includes `ESLint 9`, and integrates useful utilities that improve the development experience.\n\n## Features\n\n- **Automatic class name wrapping** – Keeps long class names readable using [`prettier-plugin-classnames`](https://www.npmjs.com/package/prettier-plugin-classnames).\n- **Automatic class sorting** – Ensures consistent class order with [`prettier-plugin-tailwindcss`](https://tailwindcss.com/blog/automatic-class-sorting-with-prettier).\n- **ESLint 9** – Maintains code quality with ESLint and the [ESLint Config Inspector](https://eslint.org/blog/2024/04/eslint-config-inspector/).\n- **Font optimization** – Preloads local fonts efficiently with [Fontsource](https://fontsource.org/).\n- **React Router 7** – The latest version of React Router, paired with Vite for instant server start, fast HMR, and optimized full-stack builds.\n- **Remove unused code** – Detect and remove unused code with [Knip](https://www.npmjs.com/package/knip).\n- **Tailwind CSS 4** – Build UIs faster with the utility-first CSS framework and its new CSS-first configuration.\n- **TypeScript** – Provides type safety and autocompletion for a better developer experience.\n- **Vite 6** – A pretty fast frontend build tool that delivers instant code serving and optimized bundling.\n\n## Helpful Scripts\n\n\u003e [!TIP]\n\u003e Use any package manager you prefer, such as `npm` or `yarn`, instead of `pnpm`.\n\n- **`pnpm check:unused`**: Find unused code in your project with [Knip](https://www.npmjs.com/package/knip).\n- **`pnpm clean`**: Remove the `node_modules` directory.\n- **`pnpm format`**: Format all your files with Prettier.\n- **`pnpm lint`**: Lint your code with ESLint.\n- **`pnpm lint:inspect`**: Inspect your ESLint configuration with the ESLint Config Inspector.\n- **`pnpm start`**: Run the app locally in production mode.\n- **`pnpm typecheck`**: Generate TypeScript types for your app.\n\n## Development\n\nRun the Vite dev server:\n\n```shellscript\npnpm dev\n```\n\nThis will automatically open the app in your default browser and expose the host IP to your network, enabling better testing on devices like smartphones.\n\n## Deployment\n\nFirst, build your app for production:\n\n```sh\npnpm build\n```\n\nThen run the app in production mode:\n\n```sh\npnpm start\n```\n\nNow you'll need to pick a host to deploy it to.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolailehbrink%2Fretail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikolailehbrink%2Fretail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolailehbrink%2Fretail/lists"}