virastack 0.0.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +94 -18
- package/bin/virastack.js +7 -0
- package/package.json +43 -9
- package/src/commands/add.js +64 -0
- package/src/commands/init.js +286 -0
- package/src/i18n.js +231 -0
- package/src/index.js +64 -0
- package/src/utils/args.js +60 -0
- package/src/utils/copy-template.js +80 -0
- package/src/utils/exec.js +29 -0
- package/src/utils/git.js +38 -0
- package/src/utils/is-online.js +14 -0
- package/src/utils/package-info.js +12 -0
- package/src/utils/package-manager.js +33 -0
- package/src/utils/setup-env.js +25 -0
- package/src/utils/telemetry.js +86 -0
- package/src/utils/tools.js +48 -0
- package/src/utils/update-package-json.js +44 -0
- package/src/utils/update-readme.js +25 -0
- package/src/utils/validate-project-name.js +26 -0
- package/templates/nextjs/.changeset/README.md +8 -0
- package/templates/nextjs/.changeset/config.json +11 -0
- package/templates/nextjs/.env.example +6 -0
- package/templates/nextjs/.github/workflows/ci.yml +41 -0
- package/templates/nextjs/.husky/commit-msg +1 -0
- package/templates/nextjs/.husky/pre-commit +1 -0
- package/templates/nextjs/.husky/pre-push +1 -0
- package/templates/nextjs/.prettierignore +6 -0
- package/templates/nextjs/.prettierrc +42 -0
- package/templates/nextjs/.vscode/extensions.json +7 -0
- package/templates/nextjs/.vscode/settings.json +20 -0
- package/templates/nextjs/LICENSE +21 -0
- package/templates/nextjs/README.md +202 -0
- package/templates/nextjs/commitlint.config.js +6 -0
- package/templates/nextjs/eslint.config.mjs +27 -0
- package/templates/nextjs/knip.config.js +25 -0
- package/templates/nextjs/next.config.ts +39 -0
- package/templates/nextjs/package.json +115 -0
- package/templates/nextjs/pnpm-lock.yaml +6467 -0
- package/templates/nextjs/pnpm-workspace.yaml +3 -0
- package/templates/nextjs/postcss.config.mjs +7 -0
- package/templates/nextjs/public/favicon.ico +0 -0
- package/templates/nextjs/public/llms.txt +96 -0
- package/templates/nextjs/public/logo.png +0 -0
- package/templates/nextjs/public/logo.webp +0 -0
- package/templates/nextjs/public/og.png +0 -0
- package/templates/nextjs/src/app/error.tsx +34 -0
- package/templates/nextjs/src/app/favicon.ico +0 -0
- package/templates/nextjs/src/app/global-error.tsx +32 -0
- package/templates/nextjs/src/app/layout.tsx +37 -0
- package/templates/nextjs/src/app/loading.tsx +12 -0
- package/templates/nextjs/src/app/manifest.ts +22 -0
- package/templates/nextjs/src/app/not-found.tsx +18 -0
- package/templates/nextjs/src/app/page.tsx +5 -0
- package/templates/nextjs/src/app/robots.ts +13 -0
- package/templates/nextjs/src/app/sitemap.ts +14 -0
- package/templates/nextjs/src/components/shared/ThemeToggle.tsx +30 -0
- package/templates/nextjs/src/components/ui/avatar.tsx +54 -0
- package/templates/nextjs/src/components/ui/button.tsx +46 -0
- package/templates/nextjs/src/components/ui/dialog.tsx +107 -0
- package/templates/nextjs/src/components/ui/field.tsx +24 -0
- package/templates/nextjs/src/components/ui/index.ts +27 -0
- package/templates/nextjs/src/components/ui/input.tsx +23 -0
- package/templates/nextjs/src/components/ui/label.tsx +17 -0
- package/templates/nextjs/src/components/ui/skeleton.tsx +13 -0
- package/templates/nextjs/src/components/ui/table.tsx +94 -0
- package/templates/nextjs/src/components/ui/tabs.tsx +46 -0
- package/templates/nextjs/src/config/seo.config.ts +37 -0
- package/templates/nextjs/src/config/site.config.ts +15 -0
- package/templates/nextjs/src/constants/index.ts +5 -0
- package/templates/nextjs/src/env.ts +41 -0
- package/templates/nextjs/src/features/landing/api/get-users.api.ts +7 -0
- package/templates/nextjs/src/features/landing/api/index.ts +2 -0
- package/templates/nextjs/src/features/landing/api/query-keys.ts +7 -0
- package/templates/nextjs/src/features/landing/components/CartDemo.tsx +66 -0
- package/templates/nextjs/src/features/landing/components/Features.tsx +39 -0
- package/templates/nextjs/src/features/landing/components/Hero.tsx +65 -0
- package/templates/nextjs/src/features/landing/components/LandingPage.tsx +17 -0
- package/templates/nextjs/src/features/landing/components/ProjectFormDemo.tsx +62 -0
- package/templates/nextjs/src/features/landing/components/Reveal.tsx +83 -0
- package/templates/nextjs/src/features/landing/components/Showcase.tsx +66 -0
- package/templates/nextjs/src/features/landing/components/UsersDemo.tsx +188 -0
- package/templates/nextjs/src/features/landing/data/features.data.tsx +47 -0
- package/templates/nextjs/src/features/landing/data/index.ts +1 -0
- package/templates/nextjs/src/features/landing/helpers/get-initials.ts +15 -0
- package/templates/nextjs/src/features/landing/helpers/index.ts +7 -0
- package/templates/nextjs/src/features/landing/helpers/motion.ts +21 -0
- package/templates/nextjs/src/features/landing/hooks/index.ts +1 -0
- package/templates/nextjs/src/features/landing/hooks/use-users.ts +16 -0
- package/templates/nextjs/src/features/landing/icons/index.ts +6 -0
- package/templates/nextjs/src/features/landing/icons/nextjs.tsx +68 -0
- package/templates/nextjs/src/features/landing/icons/react-hook-form.tsx +18 -0
- package/templates/nextjs/src/features/landing/icons/react.tsx +20 -0
- package/templates/nextjs/src/features/landing/icons/tailwind.tsx +14 -0
- package/templates/nextjs/src/features/landing/icons/tanstack.tsx +321 -0
- package/templates/nextjs/src/features/landing/icons/typescript.tsx +16 -0
- package/templates/nextjs/src/features/landing/index.ts +1 -0
- package/templates/nextjs/src/features/landing/schemas/index.ts +1 -0
- package/templates/nextjs/src/features/landing/schemas/project.schema.ts +7 -0
- package/templates/nextjs/src/features/landing/stores/counter.store.ts +18 -0
- package/templates/nextjs/src/features/landing/stores/index.ts +1 -0
- package/templates/nextjs/src/features/landing/types/index.ts +1 -0
- package/templates/nextjs/src/features/landing/types/user.types.ts +9 -0
- package/templates/nextjs/src/helpers/format-date.ts +13 -0
- package/templates/nextjs/src/helpers/index.ts +1 -0
- package/templates/nextjs/src/hooks/index.ts +5 -0
- package/templates/nextjs/src/lib/api.ts +97 -0
- package/templates/nextjs/src/lib/query-client.ts +18 -0
- package/templates/nextjs/src/lib/utils.ts +12 -0
- package/templates/nextjs/src/providers/Providers.tsx +15 -0
- package/templates/nextjs/src/providers/QueryProvider.tsx +19 -0
- package/templates/nextjs/src/providers/ThemeProvider.tsx +9 -0
- package/templates/nextjs/src/providers/index.ts +1 -0
- package/templates/nextjs/src/proxy.ts +6 -0
- package/templates/nextjs/src/schemas/index.ts +5 -0
- package/templates/nextjs/src/stores/index.ts +5 -0
- package/templates/nextjs/src/styles/tailwind.css +122 -0
- package/templates/nextjs/src/types/site-config.types.ts +10 -0
- package/templates/nextjs/tsconfig.json +45 -0
- package/templates/tanstack/.changeset/README.md +8 -0
- package/templates/tanstack/.changeset/config.json +11 -0
- package/templates/tanstack/.env.example +6 -0
- package/templates/tanstack/.github/workflows/ci.yml +41 -0
- package/templates/tanstack/.husky/commit-msg +1 -0
- package/templates/tanstack/.husky/pre-commit +1 -0
- package/templates/tanstack/.husky/pre-push +1 -0
- package/templates/tanstack/.prettierignore +7 -0
- package/templates/tanstack/.prettierrc +41 -0
- package/templates/tanstack/.vscode/extensions.json +7 -0
- package/templates/tanstack/.vscode/settings.json +22 -0
- package/templates/tanstack/LICENSE +21 -0
- package/templates/tanstack/README.md +204 -0
- package/templates/tanstack/commitlint.config.js +6 -0
- package/templates/tanstack/eslint.config.js +28 -0
- package/templates/tanstack/knip.config.js +22 -0
- package/templates/tanstack/package.json +130 -0
- package/templates/tanstack/pnpm-lock.yaml +5835 -0
- package/templates/tanstack/pnpm-workspace.yaml +3 -0
- package/templates/tanstack/public/favicon.ico +0 -0
- package/templates/tanstack/public/llms.txt +86 -0
- package/templates/tanstack/public/logo.png +0 -0
- package/templates/tanstack/public/logo.webp +0 -0
- package/templates/tanstack/public/og.png +0 -0
- package/templates/tanstack/src/components/shared/DefaultCatchBoundary.tsx +36 -0
- package/templates/tanstack/src/components/shared/NotFound.tsx +18 -0
- package/templates/tanstack/src/components/shared/Pending.tsx +13 -0
- package/templates/tanstack/src/components/shared/ThemeToggle.tsx +31 -0
- package/templates/tanstack/src/components/ui/avatar.tsx +52 -0
- package/templates/tanstack/src/components/ui/button.tsx +47 -0
- package/templates/tanstack/src/components/ui/dialog.tsx +107 -0
- package/templates/tanstack/src/components/ui/field.tsx +24 -0
- package/templates/tanstack/src/components/ui/index.ts +27 -0
- package/templates/tanstack/src/components/ui/input.tsx +23 -0
- package/templates/tanstack/src/components/ui/label.tsx +17 -0
- package/templates/tanstack/src/components/ui/skeleton.tsx +13 -0
- package/templates/tanstack/src/components/ui/table.tsx +94 -0
- package/templates/tanstack/src/components/ui/tabs.tsx +46 -0
- package/templates/tanstack/src/config/seo.config.ts +52 -0
- package/templates/tanstack/src/config/site.config.ts +15 -0
- package/templates/tanstack/src/constants/index.ts +5 -0
- package/templates/tanstack/src/env.ts +47 -0
- package/templates/tanstack/src/features/landing/api/get-users.api.ts +7 -0
- package/templates/tanstack/src/features/landing/api/index.ts +2 -0
- package/templates/tanstack/src/features/landing/api/query-keys.ts +7 -0
- package/templates/tanstack/src/features/landing/components/CartDemo.tsx +66 -0
- package/templates/tanstack/src/features/landing/components/Features.tsx +39 -0
- package/templates/tanstack/src/features/landing/components/Hero.tsx +63 -0
- package/templates/tanstack/src/features/landing/components/LandingPage.tsx +17 -0
- package/templates/tanstack/src/features/landing/components/ProjectFormDemo.tsx +63 -0
- package/templates/tanstack/src/features/landing/components/Reveal.tsx +83 -0
- package/templates/tanstack/src/features/landing/components/Showcase.tsx +66 -0
- package/templates/tanstack/src/features/landing/components/UsersDemo.tsx +191 -0
- package/templates/tanstack/src/features/landing/data/features.data.tsx +45 -0
- package/templates/tanstack/src/features/landing/data/index.ts +1 -0
- package/templates/tanstack/src/features/landing/helpers/get-initials.ts +15 -0
- package/templates/tanstack/src/features/landing/helpers/index.ts +7 -0
- package/templates/tanstack/src/features/landing/helpers/motion.ts +21 -0
- package/templates/tanstack/src/features/landing/hooks/index.ts +1 -0
- package/templates/tanstack/src/features/landing/hooks/use-users.ts +19 -0
- package/templates/tanstack/src/features/landing/icons/index.ts +5 -0
- package/templates/tanstack/src/features/landing/icons/react-hook-form.tsx +18 -0
- package/templates/tanstack/src/features/landing/icons/react.tsx +20 -0
- package/templates/tanstack/src/features/landing/icons/tailwind.tsx +14 -0
- package/templates/tanstack/src/features/landing/icons/tanstack.tsx +321 -0
- package/templates/tanstack/src/features/landing/icons/typescript.tsx +16 -0
- package/templates/tanstack/src/features/landing/index.ts +1 -0
- package/templates/tanstack/src/features/landing/schemas/index.ts +1 -0
- package/templates/tanstack/src/features/landing/schemas/project.schema.ts +7 -0
- package/templates/tanstack/src/features/landing/stores/counter.store.ts +18 -0
- package/templates/tanstack/src/features/landing/stores/index.ts +1 -0
- package/templates/tanstack/src/features/landing/types/index.ts +1 -0
- package/templates/tanstack/src/features/landing/types/user.types.ts +9 -0
- package/templates/tanstack/src/helpers/format-date.ts +13 -0
- package/templates/tanstack/src/helpers/index.ts +1 -0
- package/templates/tanstack/src/hooks/index.ts +5 -0
- package/templates/tanstack/src/lib/api.ts +97 -0
- package/templates/tanstack/src/lib/query-client.ts +18 -0
- package/templates/tanstack/src/lib/utils.ts +13 -0
- package/templates/tanstack/src/providers/Providers.tsx +12 -0
- package/templates/tanstack/src/providers/ThemeProvider.tsx +98 -0
- package/templates/tanstack/src/providers/devtools.tsx +6 -0
- package/templates/tanstack/src/providers/index.ts +1 -0
- package/templates/tanstack/src/providers/root-provider.ts +9 -0
- package/templates/tanstack/src/routeTree.gen.ts +123 -0
- package/templates/tanstack/src/router.tsx +27 -0
- package/templates/tanstack/src/routes/__root.tsx +78 -0
- package/templates/tanstack/src/routes/index.tsx +13 -0
- package/templates/tanstack/src/routes/robots[.]txt.ts +21 -0
- package/templates/tanstack/src/routes/site[.]webmanifest.ts +32 -0
- package/templates/tanstack/src/routes/sitemap[.]xml.ts +27 -0
- package/templates/tanstack/src/schemas/index.ts +5 -0
- package/templates/tanstack/src/start.ts +20 -0
- package/templates/tanstack/src/stores/index.ts +5 -0
- package/templates/tanstack/src/styles/tailwind.css +123 -0
- package/templates/tanstack/src/types/site-config.types.ts +10 -0
- package/templates/tanstack/tsconfig.json +25 -0
- package/templates/tanstack/tsr.config.json +3 -0
- package/templates/tanstack/vite.config.ts +12 -0
- package/templates-i18n/nextjs/.changeset/README.md +8 -0
- package/templates-i18n/nextjs/.changeset/config.json +11 -0
- package/templates-i18n/nextjs/.env.example +6 -0
- package/templates-i18n/nextjs/.github/workflows/ci.yml +41 -0
- package/templates-i18n/nextjs/.husky/commit-msg +1 -0
- package/templates-i18n/nextjs/.husky/pre-commit +1 -0
- package/templates-i18n/nextjs/.husky/pre-push +1 -0
- package/templates-i18n/nextjs/.prettierignore +6 -0
- package/templates-i18n/nextjs/.prettierrc +42 -0
- package/templates-i18n/nextjs/.vscode/extensions.json +7 -0
- package/templates-i18n/nextjs/.vscode/settings.json +20 -0
- package/templates-i18n/nextjs/LICENSE +21 -0
- package/templates-i18n/nextjs/README.md +202 -0
- package/templates-i18n/nextjs/commitlint.config.js +6 -0
- package/templates-i18n/nextjs/eslint.config.mjs +27 -0
- package/templates-i18n/nextjs/knip.config.js +29 -0
- package/templates-i18n/nextjs/next.config.ts +42 -0
- package/templates-i18n/nextjs/package.json +117 -0
- package/templates-i18n/nextjs/pnpm-lock.yaml +6854 -0
- package/templates-i18n/nextjs/pnpm-workspace.yaml +3 -0
- package/templates-i18n/nextjs/postcss.config.mjs +7 -0
- package/templates-i18n/nextjs/public/favicon.ico +0 -0
- package/templates-i18n/nextjs/public/llms.txt +96 -0
- package/templates-i18n/nextjs/public/logo.png +0 -0
- package/templates-i18n/nextjs/public/logo.webp +0 -0
- package/templates-i18n/nextjs/public/og.png +0 -0
- package/templates-i18n/nextjs/src/app/[locale]/error.tsx +34 -0
- package/templates-i18n/nextjs/src/app/[locale]/layout.tsx +60 -0
- package/templates-i18n/nextjs/src/app/[locale]/loading.tsx +12 -0
- package/templates-i18n/nextjs/src/app/[locale]/not-found.tsx +18 -0
- package/templates-i18n/nextjs/src/app/[locale]/page.tsx +10 -0
- package/templates-i18n/nextjs/src/app/favicon.ico +0 -0
- package/templates-i18n/nextjs/src/app/global-error.tsx +32 -0
- package/templates-i18n/nextjs/src/app/manifest.ts +22 -0
- package/templates-i18n/nextjs/src/app/robots.ts +13 -0
- package/templates-i18n/nextjs/src/app/sitemap.ts +14 -0
- package/templates-i18n/nextjs/src/components/shared/LanguageSwitcher.tsx +48 -0
- package/templates-i18n/nextjs/src/components/shared/ThemeToggle.tsx +30 -0
- package/templates-i18n/nextjs/src/components/ui/avatar.tsx +54 -0
- package/templates-i18n/nextjs/src/components/ui/button.tsx +46 -0
- package/templates-i18n/nextjs/src/components/ui/dialog.tsx +107 -0
- package/templates-i18n/nextjs/src/components/ui/field.tsx +24 -0
- package/templates-i18n/nextjs/src/components/ui/index.ts +27 -0
- package/templates-i18n/nextjs/src/components/ui/input.tsx +23 -0
- package/templates-i18n/nextjs/src/components/ui/label.tsx +17 -0
- package/templates-i18n/nextjs/src/components/ui/skeleton.tsx +13 -0
- package/templates-i18n/nextjs/src/components/ui/table.tsx +94 -0
- package/templates-i18n/nextjs/src/components/ui/tabs.tsx +46 -0
- package/templates-i18n/nextjs/src/config/seo.config.ts +37 -0
- package/templates-i18n/nextjs/src/config/site.config.ts +15 -0
- package/templates-i18n/nextjs/src/constants/index.ts +5 -0
- package/templates-i18n/nextjs/src/env.ts +41 -0
- package/templates-i18n/nextjs/src/features/landing/api/get-users.api.ts +7 -0
- package/templates-i18n/nextjs/src/features/landing/api/index.ts +2 -0
- package/templates-i18n/nextjs/src/features/landing/api/query-keys.ts +7 -0
- package/templates-i18n/nextjs/src/features/landing/components/CartDemo.tsx +68 -0
- package/templates-i18n/nextjs/src/features/landing/components/Features.tsx +84 -0
- package/templates-i18n/nextjs/src/features/landing/components/Hero.tsx +76 -0
- package/templates-i18n/nextjs/src/features/landing/components/LandingPage.tsx +17 -0
- package/templates-i18n/nextjs/src/features/landing/components/ProjectFormDemo.tsx +64 -0
- package/templates-i18n/nextjs/src/features/landing/components/Reveal.tsx +83 -0
- package/templates-i18n/nextjs/src/features/landing/components/Showcase.tsx +83 -0
- package/templates-i18n/nextjs/src/features/landing/components/UsersDemo.tsx +191 -0
- package/templates-i18n/nextjs/src/features/landing/data/features.data.tsx +47 -0
- package/templates-i18n/nextjs/src/features/landing/data/index.ts +1 -0
- package/templates-i18n/nextjs/src/features/landing/helpers/get-initials.ts +15 -0
- package/templates-i18n/nextjs/src/features/landing/helpers/index.ts +7 -0
- package/templates-i18n/nextjs/src/features/landing/helpers/motion.ts +21 -0
- package/templates-i18n/nextjs/src/features/landing/hooks/index.ts +1 -0
- package/templates-i18n/nextjs/src/features/landing/hooks/use-users.ts +16 -0
- package/templates-i18n/nextjs/src/features/landing/icons/index.ts +6 -0
- package/templates-i18n/nextjs/src/features/landing/icons/nextjs.tsx +68 -0
- package/templates-i18n/nextjs/src/features/landing/icons/react-hook-form.tsx +18 -0
- package/templates-i18n/nextjs/src/features/landing/icons/react.tsx +20 -0
- package/templates-i18n/nextjs/src/features/landing/icons/tailwind.tsx +14 -0
- package/templates-i18n/nextjs/src/features/landing/icons/tanstack.tsx +321 -0
- package/templates-i18n/nextjs/src/features/landing/icons/typescript.tsx +16 -0
- package/templates-i18n/nextjs/src/features/landing/index.ts +1 -0
- package/templates-i18n/nextjs/src/features/landing/schemas/index.ts +1 -0
- package/templates-i18n/nextjs/src/features/landing/schemas/project.schema.ts +9 -0
- package/templates-i18n/nextjs/src/features/landing/stores/counter.store.ts +18 -0
- package/templates-i18n/nextjs/src/features/landing/stores/index.ts +1 -0
- package/templates-i18n/nextjs/src/features/landing/types/index.ts +1 -0
- package/templates-i18n/nextjs/src/features/landing/types/user.types.ts +9 -0
- package/templates-i18n/nextjs/src/helpers/format-date.ts +13 -0
- package/templates-i18n/nextjs/src/helpers/index.ts +1 -0
- package/templates-i18n/nextjs/src/hooks/index.ts +5 -0
- package/templates-i18n/nextjs/src/i18n/request.ts +16 -0
- package/templates-i18n/nextjs/src/i18n/routing.ts +11 -0
- package/templates-i18n/nextjs/src/lib/api.ts +97 -0
- package/templates-i18n/nextjs/src/lib/query-client.ts +18 -0
- package/templates-i18n/nextjs/src/lib/utils.ts +12 -0
- package/templates-i18n/nextjs/src/messages/en.json +55 -0
- package/templates-i18n/nextjs/src/messages/tr.json +55 -0
- package/templates-i18n/nextjs/src/providers/Providers.tsx +15 -0
- package/templates-i18n/nextjs/src/providers/QueryProvider.tsx +19 -0
- package/templates-i18n/nextjs/src/providers/ThemeProvider.tsx +9 -0
- package/templates-i18n/nextjs/src/providers/index.ts +1 -0
- package/templates-i18n/nextjs/src/proxy.ts +16 -0
- package/templates-i18n/nextjs/src/schemas/index.ts +5 -0
- package/templates-i18n/nextjs/src/stores/index.ts +5 -0
- package/templates-i18n/nextjs/src/styles/tailwind.css +122 -0
- package/templates-i18n/nextjs/src/types/site-config.types.ts +10 -0
- package/templates-i18n/nextjs/tsconfig.json +45 -0
- package/templates-i18n/tanstack/.changeset/README.md +8 -0
- package/templates-i18n/tanstack/.changeset/config.json +11 -0
- package/templates-i18n/tanstack/.env.example +6 -0
- package/templates-i18n/tanstack/.github/workflows/ci.yml +41 -0
- package/templates-i18n/tanstack/.husky/commit-msg +1 -0
- package/templates-i18n/tanstack/.husky/pre-commit +1 -0
- package/templates-i18n/tanstack/.husky/pre-push +1 -0
- package/templates-i18n/tanstack/.prettierignore +7 -0
- package/templates-i18n/tanstack/.prettierrc +41 -0
- package/templates-i18n/tanstack/.vscode/extensions.json +7 -0
- package/templates-i18n/tanstack/.vscode/settings.json +22 -0
- package/templates-i18n/tanstack/LICENSE +21 -0
- package/templates-i18n/tanstack/README.md +204 -0
- package/templates-i18n/tanstack/commitlint.config.js +6 -0
- package/templates-i18n/tanstack/eslint.config.js +29 -0
- package/templates-i18n/tanstack/knip.config.js +26 -0
- package/templates-i18n/tanstack/messages/en.json +65 -0
- package/templates-i18n/tanstack/messages/tr.json +65 -0
- package/templates-i18n/tanstack/package.json +132 -0
- package/templates-i18n/tanstack/pnpm-lock.yaml +5998 -0
- package/templates-i18n/tanstack/pnpm-workspace.yaml +3 -0
- package/templates-i18n/tanstack/project.inlang/README.md +157 -0
- package/templates-i18n/tanstack/project.inlang/settings.json +9 -0
- package/templates-i18n/tanstack/public/favicon.ico +0 -0
- package/templates-i18n/tanstack/public/llms.txt +86 -0
- package/templates-i18n/tanstack/public/logo.png +0 -0
- package/templates-i18n/tanstack/public/logo.webp +0 -0
- package/templates-i18n/tanstack/public/og.png +0 -0
- package/templates-i18n/tanstack/src/components/shared/DefaultCatchBoundary.tsx +36 -0
- package/templates-i18n/tanstack/src/components/shared/LanguageSwitcher.tsx +57 -0
- package/templates-i18n/tanstack/src/components/shared/NotFound.tsx +18 -0
- package/templates-i18n/tanstack/src/components/shared/Pending.tsx +13 -0
- package/templates-i18n/tanstack/src/components/shared/ThemeToggle.tsx +31 -0
- package/templates-i18n/tanstack/src/components/ui/avatar.tsx +52 -0
- package/templates-i18n/tanstack/src/components/ui/button.tsx +47 -0
- package/templates-i18n/tanstack/src/components/ui/dialog.tsx +107 -0
- package/templates-i18n/tanstack/src/components/ui/field.tsx +24 -0
- package/templates-i18n/tanstack/src/components/ui/index.ts +27 -0
- package/templates-i18n/tanstack/src/components/ui/input.tsx +23 -0
- package/templates-i18n/tanstack/src/components/ui/label.tsx +17 -0
- package/templates-i18n/tanstack/src/components/ui/skeleton.tsx +13 -0
- package/templates-i18n/tanstack/src/components/ui/table.tsx +94 -0
- package/templates-i18n/tanstack/src/components/ui/tabs.tsx +46 -0
- package/templates-i18n/tanstack/src/config/seo.config.ts +52 -0
- package/templates-i18n/tanstack/src/config/site.config.ts +15 -0
- package/templates-i18n/tanstack/src/constants/index.ts +5 -0
- package/templates-i18n/tanstack/src/env.ts +47 -0
- package/templates-i18n/tanstack/src/features/landing/api/get-users.api.ts +7 -0
- package/templates-i18n/tanstack/src/features/landing/api/index.ts +2 -0
- package/templates-i18n/tanstack/src/features/landing/api/query-keys.ts +7 -0
- package/templates-i18n/tanstack/src/features/landing/components/CartDemo.tsx +67 -0
- package/templates-i18n/tanstack/src/features/landing/components/Features.tsx +79 -0
- package/templates-i18n/tanstack/src/features/landing/components/Hero.tsx +68 -0
- package/templates-i18n/tanstack/src/features/landing/components/LandingPage.tsx +17 -0
- package/templates-i18n/tanstack/src/features/landing/components/ProjectFormDemo.tsx +64 -0
- package/templates-i18n/tanstack/src/features/landing/components/Reveal.tsx +83 -0
- package/templates-i18n/tanstack/src/features/landing/components/Showcase.tsx +81 -0
- package/templates-i18n/tanstack/src/features/landing/components/UsersDemo.tsx +191 -0
- package/templates-i18n/tanstack/src/features/landing/data/features.data.tsx +45 -0
- package/templates-i18n/tanstack/src/features/landing/data/index.ts +1 -0
- package/templates-i18n/tanstack/src/features/landing/helpers/get-initials.ts +15 -0
- package/templates-i18n/tanstack/src/features/landing/helpers/index.ts +7 -0
- package/templates-i18n/tanstack/src/features/landing/helpers/motion.ts +21 -0
- package/templates-i18n/tanstack/src/features/landing/hooks/index.ts +1 -0
- package/templates-i18n/tanstack/src/features/landing/hooks/use-users.ts +19 -0
- package/templates-i18n/tanstack/src/features/landing/icons/index.ts +5 -0
- package/templates-i18n/tanstack/src/features/landing/icons/react-hook-form.tsx +18 -0
- package/templates-i18n/tanstack/src/features/landing/icons/react.tsx +20 -0
- package/templates-i18n/tanstack/src/features/landing/icons/tailwind.tsx +14 -0
- package/templates-i18n/tanstack/src/features/landing/icons/tanstack.tsx +321 -0
- package/templates-i18n/tanstack/src/features/landing/icons/typescript.tsx +16 -0
- package/templates-i18n/tanstack/src/features/landing/index.ts +1 -0
- package/templates-i18n/tanstack/src/features/landing/schemas/index.ts +1 -0
- package/templates-i18n/tanstack/src/features/landing/schemas/project.schema.ts +10 -0
- package/templates-i18n/tanstack/src/features/landing/stores/counter.store.ts +18 -0
- package/templates-i18n/tanstack/src/features/landing/stores/index.ts +1 -0
- package/templates-i18n/tanstack/src/features/landing/types/index.ts +1 -0
- package/templates-i18n/tanstack/src/features/landing/types/user.types.ts +9 -0
- package/templates-i18n/tanstack/src/helpers/format-date.ts +13 -0
- package/templates-i18n/tanstack/src/helpers/index.ts +1 -0
- package/templates-i18n/tanstack/src/hooks/index.ts +5 -0
- package/templates-i18n/tanstack/src/lib/api.ts +97 -0
- package/templates-i18n/tanstack/src/lib/query-client.ts +18 -0
- package/templates-i18n/tanstack/src/lib/utils.ts +13 -0
- package/templates-i18n/tanstack/src/paraglide/README.md +162 -0
- package/templates-i18n/tanstack/src/providers/Providers.tsx +12 -0
- package/templates-i18n/tanstack/src/providers/ThemeProvider.tsx +98 -0
- package/templates-i18n/tanstack/src/providers/devtools.tsx +6 -0
- package/templates-i18n/tanstack/src/providers/index.ts +1 -0
- package/templates-i18n/tanstack/src/providers/root-provider.ts +9 -0
- package/templates-i18n/tanstack/src/routeTree.gen.ts +179 -0
- package/templates-i18n/tanstack/src/router.tsx +27 -0
- package/templates-i18n/tanstack/src/routes/$lang/index.tsx +13 -0
- package/templates-i18n/tanstack/src/routes/$lang.tsx +22 -0
- package/templates-i18n/tanstack/src/routes/__root.tsx +80 -0
- package/templates-i18n/tanstack/src/routes/index.tsx +13 -0
- package/templates-i18n/tanstack/src/routes/robots[.]txt.ts +21 -0
- package/templates-i18n/tanstack/src/routes/site[.]webmanifest.ts +32 -0
- package/templates-i18n/tanstack/src/routes/sitemap[.]xml.ts +27 -0
- package/templates-i18n/tanstack/src/schemas/index.ts +5 -0
- package/templates-i18n/tanstack/src/server.ts +10 -0
- package/templates-i18n/tanstack/src/start.ts +20 -0
- package/templates-i18n/tanstack/src/stores/index.ts +5 -0
- package/templates-i18n/tanstack/src/styles/tailwind.css +123 -0
- package/templates-i18n/tanstack/src/types/site-config.types.ts +10 -0
- package/templates-i18n/tanstack/tsconfig.json +26 -0
- package/templates-i18n/tanstack/tsr.config.json +3 -0
- package/templates-i18n/tanstack/vite.config.ts +31 -0
- package/index.js +0 -3
- package/public/start.jpg +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"singleQuote": false,
|
|
3
|
+
"trailingComma": "all",
|
|
4
|
+
"printWidth": 100,
|
|
5
|
+
"plugins": ["@ianvs/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
|
|
6
|
+
"tailwindFunctions": ["cn", "clsx", "cva"],
|
|
7
|
+
"tailwindStylesheet": "./src/styles/tailwind.css",
|
|
8
|
+
"importOrder": [
|
|
9
|
+
"^react$",
|
|
10
|
+
"^next($|/)",
|
|
11
|
+
"",
|
|
12
|
+
"^@tanstack/.*",
|
|
13
|
+
"^zustand($|/)",
|
|
14
|
+
"^lucide-react($|/)",
|
|
15
|
+
"<THIRD_PARTY_MODULES>",
|
|
16
|
+
"",
|
|
17
|
+
"^@/types($|/)",
|
|
18
|
+
"^@/constants($|/)",
|
|
19
|
+
"^@/schemas($|/)",
|
|
20
|
+
"^@/config($|/)",
|
|
21
|
+
"^@/env($|/)",
|
|
22
|
+
"",
|
|
23
|
+
"^@/assets($|/)",
|
|
24
|
+
"^@/styles($|/)",
|
|
25
|
+
"^@/lib($|/)",
|
|
26
|
+
"^@/helpers($|/)",
|
|
27
|
+
"",
|
|
28
|
+
"^@/providers($|/)",
|
|
29
|
+
"^@/stores($|/)",
|
|
30
|
+
"^@/hooks($|/)",
|
|
31
|
+
"^@/data($|/)",
|
|
32
|
+
"",
|
|
33
|
+
"^@/components($|/)",
|
|
34
|
+
"^@/layout($|/)",
|
|
35
|
+
"^@/features($|/)",
|
|
36
|
+
"^@/ui($|/)",
|
|
37
|
+
"^@/.*",
|
|
38
|
+
"",
|
|
39
|
+
"^[./]"
|
|
40
|
+
],
|
|
41
|
+
"importOrderParserPlugins": ["typescript", "jsx"]
|
|
42
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
3
|
+
"editor.formatOnSave": true,
|
|
4
|
+
"editor.codeActionsOnSave": {
|
|
5
|
+
"source.fixAll.eslint": "explicit"
|
|
6
|
+
},
|
|
7
|
+
"typescript.tsdk": "node_modules/typescript/lib",
|
|
8
|
+
"files.exclude": {
|
|
9
|
+
"**/.git": true,
|
|
10
|
+
"**/.svn": true,
|
|
11
|
+
"**/.hg": true,
|
|
12
|
+
"**/.DS_Store": true,
|
|
13
|
+
"**/Thumbs.db": true,
|
|
14
|
+
"**/.cache": true,
|
|
15
|
+
"**/.next": true,
|
|
16
|
+
"**/build": true,
|
|
17
|
+
"**/dist": true,
|
|
18
|
+
"**/node_modules": true
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026-present Ömer Gülçiçek (ViraStack)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<a href="https://github.com/virastack/start" target="_blank" rel="noreferrer">
|
|
4
|
+
<picture>
|
|
5
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/virastack/start/main/assets/logo-dark.png">
|
|
6
|
+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/virastack/start/main/assets/logo-light.png">
|
|
7
|
+
<img src="https://raw.githubusercontent.com/virastack/start/main/assets/logo-light.png" alt="ViraStack Start" height="120" style="max-width: 100%;" />
|
|
8
|
+
</picture>
|
|
9
|
+
</a>
|
|
10
|
+
|
|
11
|
+
# ViraStack Start — Next.js Edition
|
|
12
|
+
|
|
13
|
+
_The Next.js boilerplate that feels effortless._
|
|
14
|
+
|
|
15
|
+
[](https://virastack.com)
|
|
16
|
+
[](https://www.npmjs.com/package/virastack)
|
|
17
|
+
[](https://www.npmjs.com/package/virastack)
|
|
18
|
+
[](package.json)
|
|
19
|
+
[](LICENSE)
|
|
20
|
+
[](https://github.com/virastack/start/actions/workflows/ci.yml)
|
|
21
|
+
[](https://x.com/virastack)
|
|
22
|
+
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
**Docs:** [See the docs](https://www.virastack.com/nextjs-boilerplate/)
|
|
28
|
+
|
|
29
|
+
**Contents:** [Why](#why-virastack) · [Features](#features) · [Getting started](#getting-started) · [Environment](#environment-variables) · [Scripts](#scripts) · [Project structure](#project-structure) · [Customization](#customization) · [ViraStack AI](#virastack-ai) · [Deployment](#deployment)
|
|
30
|
+
|
|
31
|
+
Production-grade Next.js starter with feature-sliced architecture, strict TypeScript, and a pre-configured [**ViraStack AI**](https://github.com/virastack/ai) layer — so you and your coding agents ship consistent code from day one.
|
|
32
|
+
|
|
33
|
+
## Why ViraStack
|
|
34
|
+
|
|
35
|
+
- **Opinionated, not opaque** — clear folder rules and placement conventions; nothing important is hidden behind magic
|
|
36
|
+
- **Agent-ready by default** — `AGENTS.md`, Cursor rules, `llms.txt`, and design skills ship with every project
|
|
37
|
+
- **Own your UI** — Base UI primitives in `components/ui` (shadcn-style), fully editable
|
|
38
|
+
- **State triad** — TanStack Query (server), Zustand (client), nuqs (URL) — each with a dedicated job
|
|
39
|
+
- **DX that sticks** — ESLint, Prettier, Knip, Husky, Commitlint, and GitHub Actions CI out of the box
|
|
40
|
+
|
|
41
|
+
## Features
|
|
42
|
+
|
|
43
|
+
**Included**
|
|
44
|
+
|
|
45
|
+
- ⚡ **Next.js 16** — App Router, Turbopack, React Compiler
|
|
46
|
+
- ⚛️ **React 19** + TypeScript strict (`noUncheckedIndexedAccess`)
|
|
47
|
+
- 🎨 **Tailwind CSS 4** + Base UI primitives
|
|
48
|
+
- 🔄 **TanStack Query** · **Zustand** · **nuqs**
|
|
49
|
+
- 📋 **React Hook Form** + **Zod** — validated forms end to end
|
|
50
|
+
- 🤖 **ViraStack AI** — agent context, scoped rules, design skills
|
|
51
|
+
- ✅ **Quality built in** — ESLint, Prettier, Knip, Husky, Commitlint, CI (typecheck → lint → knip → build)
|
|
52
|
+
|
|
53
|
+
**Optional / bring your own**
|
|
54
|
+
|
|
55
|
+
- Auth, database, i18n, analytics, and monitoring — wire them in when you need them; the architecture is ready
|
|
56
|
+
|
|
57
|
+
## Getting started
|
|
58
|
+
|
|
59
|
+
**Quick Start & Setup:** Please follow the instructions in the main [ViraStack Start README](https://github.com/virastack/start#quick-start).
|
|
60
|
+
|
|
61
|
+
Once your project is scaffolded, start the development server:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
pnpm dev
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Open [http://localhost:3000](http://localhost:3000). The home route renders `LandingPage` from `src/features/landing` — a full demo of the stack (theme toggle, TanStack Query, Zustand, Zod forms, nuqs). Delete that feature when you are ready to build.
|
|
68
|
+
|
|
69
|
+
## Environment variables
|
|
70
|
+
|
|
71
|
+
Validated in `src/env.ts`. Scaffolded projects already have `.env.local`.
|
|
72
|
+
|
|
73
|
+
| Variable | Scope | Description |
|
|
74
|
+
| :--------------------- | :----- | :------------------------------------------------------------ |
|
|
75
|
+
| `NEXT_PUBLIC_APP_URL` | Public | Canonical app URL (default `http://localhost:3000`) |
|
|
76
|
+
| `NEXT_PUBLIC_APP_NAME` | Public | Product name shown in UI/metadata (default `ViraStack Start`) |
|
|
77
|
+
|
|
78
|
+
`NODE_ENV` is set by Next.js — do not define it manually. Add new vars in both `.env.example` and `src/env.ts`.
|
|
79
|
+
|
|
80
|
+
## Scripts
|
|
81
|
+
|
|
82
|
+
| Script | Description |
|
|
83
|
+
| :------------------------------ | :------------------------------------------- |
|
|
84
|
+
| `dev` | Start the dev server (Turbopack) |
|
|
85
|
+
| `build` | Production build |
|
|
86
|
+
| `start` | Serve the production build |
|
|
87
|
+
| `analyze` | Build with bundle analyzer |
|
|
88
|
+
| `lint` / `lint:fix` / `lint:ci` | ESLint (+ format check in CI) |
|
|
89
|
+
| `format` / `format:check` | Prettier |
|
|
90
|
+
| `typecheck` | `tsc --noEmit` |
|
|
91
|
+
| `knip` | Find unused files, exports, and dependencies |
|
|
92
|
+
|
|
93
|
+
CI runs the same gates: typecheck → lint → knip → build (see `.github/workflows/ci.yml`).
|
|
94
|
+
|
|
95
|
+
## Project structure
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
src/
|
|
99
|
+
├── app/ # Routes, layouts, metadata (App Router only)
|
|
100
|
+
├── features/
|
|
101
|
+
│ └── landing/ # Demo feature (canonical folder layout)
|
|
102
|
+
│ ├── api/
|
|
103
|
+
│ ├── components/ # Hero, Features, Showcase, demos, LandingPage
|
|
104
|
+
│ ├── constants/
|
|
105
|
+
│ ├── data/
|
|
106
|
+
│ ├── helpers/
|
|
107
|
+
│ ├── hooks/
|
|
108
|
+
│ ├── icons/ # Brand SVGs used only by the landing demo
|
|
109
|
+
│ ├── schemas/
|
|
110
|
+
│ ├── stores/
|
|
111
|
+
│ ├── types/
|
|
112
|
+
│ └── index.ts
|
|
113
|
+
├── components/
|
|
114
|
+
│ ├── ui/ # Base UI primitives (Button, Dialog, Tabs, …)
|
|
115
|
+
│ ├── layout/ # Header, Footer (reusable chrome)
|
|
116
|
+
│ └── shared/ # Cross-feature components (ThemeToggle, …)
|
|
117
|
+
├── hooks/ # Shared hooks (promote via Rule of Three)
|
|
118
|
+
├── stores/
|
|
119
|
+
├── schemas/
|
|
120
|
+
├── providers/
|
|
121
|
+
├── lib/ # api.ts, query-client.ts, utils
|
|
122
|
+
├── config/
|
|
123
|
+
├── constants/
|
|
124
|
+
├── helpers/
|
|
125
|
+
├── types/
|
|
126
|
+
├── styles/
|
|
127
|
+
└── env.ts
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
The bundled `landing` feature follows the ViraStack AI feature tree and is meant to be deleted when you start building.
|
|
131
|
+
|
|
132
|
+
**Quick start (strip the demo)**
|
|
133
|
+
|
|
134
|
+
1. Delete `src/features/landing`
|
|
135
|
+
2. Replace `src/app/page.tsx` with your own page
|
|
136
|
+
3. Keep `components/layout` Header/Footer if you still want site chrome — pass `links` only when you need nav items
|
|
137
|
+
|
|
138
|
+
**Rules of thumb**
|
|
139
|
+
|
|
140
|
+
- Default scope is `features/[feature]/` — promote to global `src/` only when a second feature needs it
|
|
141
|
+
- No cross-feature imports; share via `components/`, `lib/`, `hooks/`, etc.
|
|
142
|
+
- Path aliases are mandatory; parent-relative imports (`../`) are forbidden
|
|
143
|
+
|
|
144
|
+
See [`docs/architecture-guide.md`](docs/architecture-guide.md) for placement rules and import conventions.
|
|
145
|
+
|
|
146
|
+
## Customization
|
|
147
|
+
|
|
148
|
+
Search the repo for `FIXME:` to find the first things to own:
|
|
149
|
+
|
|
150
|
+
| File | What to change |
|
|
151
|
+
| :---------------------------- | :--------------------------------------- |
|
|
152
|
+
| `src/config/site.config.ts` | Site name, description, metadata |
|
|
153
|
+
| `next.config.ts` | Remote image domains and Next.js options |
|
|
154
|
+
| `src/lib/api.ts` | Auth header / API client wiring |
|
|
155
|
+
| `src/env.ts` + `.env.example` | New environment variables |
|
|
156
|
+
| `public/` | Favicon and static assets |
|
|
157
|
+
|
|
158
|
+
You own every file — trim demos, rename features, keep only what you need.
|
|
159
|
+
|
|
160
|
+
## ViraStack AI
|
|
161
|
+
|
|
162
|
+
Developed with [**ViraStack AI**](https://github.com/virastack/ai) — an AI-native architecture kit that ships agent context into every project:
|
|
163
|
+
|
|
164
|
+
| File | Purpose |
|
|
165
|
+
| :---------------- | :------------------------------- |
|
|
166
|
+
| `AGENTS.md` | Agent operating guide |
|
|
167
|
+
| `CLAUDE.md` | Claude Code entry point |
|
|
168
|
+
| `.cursor/rules/` | Scoped coding rules |
|
|
169
|
+
| `public/llms.txt` | Machine-readable project summary |
|
|
170
|
+
| `.agents/skills/` | Design-taste skills |
|
|
171
|
+
|
|
172
|
+
Install or refresh rules: `npx @virastack/ai init`
|
|
173
|
+
|
|
174
|
+
## Deployment
|
|
175
|
+
|
|
176
|
+
Optimized for [Vercel](https://vercel.com/):
|
|
177
|
+
|
|
178
|
+
1. Push the repo and import the project in Vercel (or your host of choice)
|
|
179
|
+
2. Set `NEXT_PUBLIC_APP_URL` and `NEXT_PUBLIC_APP_NAME` from `.env.example`
|
|
180
|
+
3. Run `pnpm analyze` locally before shipping if bundle size matters
|
|
181
|
+
4. Deploy — `pnpm build` / `pnpm start` work the same on any Node host
|
|
182
|
+
|
|
183
|
+
## Philosophy
|
|
184
|
+
|
|
185
|
+
- Minimal surface, strong conventions
|
|
186
|
+
- Agent-first documentation lives next to the code
|
|
187
|
+
- Own your UI and architecture — no locked black boxes
|
|
188
|
+
- Production-ready DX without forcing auth/db opinions until you need them
|
|
189
|
+
|
|
190
|
+
## Contributing
|
|
191
|
+
|
|
192
|
+
Ideas and bug reports welcome — open an [issue](https://github.com/virastack/start/issues).
|
|
193
|
+
|
|
194
|
+
PRs that improve DX, architecture docs, or the landing showcase are especially appreciated.
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
<div align="center">
|
|
199
|
+
|
|
200
|
+
Bootstrapped with [**ViraStack Start**](https://github.com/virastack/start) · Built by <a href="https://omergulcicek.com">Ömer Gülçiçek</a> · <a href="LICENSE">MIT Licensed</a>
|
|
201
|
+
|
|
202
|
+
</div>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import nextVitals from "eslint-config-next/core-web-vitals";
|
|
2
|
+
import nextTs from "eslint-config-next/typescript";
|
|
3
|
+
import { defineConfig, globalIgnores } from "eslint/config";
|
|
4
|
+
|
|
5
|
+
const eslintConfig = defineConfig([
|
|
6
|
+
...nextVitals,
|
|
7
|
+
...nextTs,
|
|
8
|
+
{
|
|
9
|
+
rules: {
|
|
10
|
+
"@typescript-eslint/no-unused-vars": [
|
|
11
|
+
"warn",
|
|
12
|
+
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
|
13
|
+
],
|
|
14
|
+
"no-console": ["warn", { allow: ["warn", "error"] }],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
// Override default ignores of eslint-config-next.
|
|
18
|
+
globalIgnores([
|
|
19
|
+
// Default ignores of eslint-config-next:
|
|
20
|
+
".next/**",
|
|
21
|
+
"out/**",
|
|
22
|
+
"build/**",
|
|
23
|
+
"next-env.d.ts",
|
|
24
|
+
]),
|
|
25
|
+
]);
|
|
26
|
+
|
|
27
|
+
export default eslintConfig;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** @type {import('knip').KnipConfig} */
|
|
2
|
+
const config = {
|
|
3
|
+
entry: [
|
|
4
|
+
"src/app/**/{page,layout,template,default,loading,not-found,error,global-error}.{ts,tsx}",
|
|
5
|
+
"src/app/**/{sitemap,robots,manifest}.{ts,tsx}",
|
|
6
|
+
],
|
|
7
|
+
project: ["src/**/*.{ts,tsx,js,jsx}"],
|
|
8
|
+
ignore: [
|
|
9
|
+
"src/components/ui/**",
|
|
10
|
+
// Shared-layer barrels reserved for Rule-of-Three promotions
|
|
11
|
+
"src/hooks/index.ts",
|
|
12
|
+
"src/stores/index.ts",
|
|
13
|
+
"src/schemas/index.ts",
|
|
14
|
+
"src/constants/index.ts",
|
|
15
|
+
"src/features/**/data/index.ts",
|
|
16
|
+
"src/features/**/data/*.data.tsx",
|
|
17
|
+
"src/features/**/schemas/index.ts",
|
|
18
|
+
"src/i18n/routing.ts",
|
|
19
|
+
],
|
|
20
|
+
ignoreDependencies: ["tailwindcss", "tw-animate-css"],
|
|
21
|
+
rules: {
|
|
22
|
+
dependencies: "error",
|
|
23
|
+
exports: "warn",
|
|
24
|
+
types: "warn",
|
|
25
|
+
files: "warn",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
module.exports = config;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import type { NextConfig } from "next";
|
|
3
|
+
|
|
4
|
+
import createBundleAnalyzer from "@next/bundle-analyzer";
|
|
5
|
+
import createNextIntlPlugin from "next-intl/plugin";
|
|
6
|
+
|
|
7
|
+
const withNextIntl = createNextIntlPlugin("./src/i18n/request.ts");
|
|
8
|
+
|
|
9
|
+
const withBundleAnalyzer = createBundleAnalyzer({
|
|
10
|
+
enabled: process.env.ANALYZE === "true",
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const nextConfig: NextConfig = {
|
|
14
|
+
reactCompiler: true,
|
|
15
|
+
turbopack: {
|
|
16
|
+
root: path.join(import.meta.dirname),
|
|
17
|
+
},
|
|
18
|
+
images: {
|
|
19
|
+
remotePatterns: [
|
|
20
|
+
// FIXME: add your own remote image domains here, e.g.:
|
|
21
|
+
// { protocol: "https", hostname: "images.unsplash.com" },
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
async headers() {
|
|
25
|
+
return [
|
|
26
|
+
{
|
|
27
|
+
source: "/:path*",
|
|
28
|
+
headers: [
|
|
29
|
+
{ key: "X-Frame-Options", value: "DENY" },
|
|
30
|
+
{ key: "X-Content-Type-Options", value: "nosniff" },
|
|
31
|
+
{ key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
|
|
32
|
+
{
|
|
33
|
+
key: "Permissions-Policy",
|
|
34
|
+
value: "camera=(), microphone=(), geolocation=()",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default withNextIntl(withBundleAnalyzer(nextConfig));
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "virastack",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"description": "Premium Next.js 16 + React 19 + Tailwind CSS 4 boilerplate focused on clean architecture, UI/UX, and agent-ready developer experience.",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Ömer Gülçiçek (ViraStack)",
|
|
8
|
+
"email": "iletisim@omergulcicek.com",
|
|
9
|
+
"url": "https://omergulcicek.com"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"virastack": {
|
|
13
|
+
"template": "nextjs",
|
|
14
|
+
"version": "1.0.0",
|
|
15
|
+
"i18n": true,
|
|
16
|
+
"url": "https://virastack.com"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://virastack.com",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/virastack/start.git"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/virastack/start/issues"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=20.9.0"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"dev": "next dev",
|
|
31
|
+
"build": "next build",
|
|
32
|
+
"start": "next start",
|
|
33
|
+
"analyze": "cross-env ANALYZE=true next build",
|
|
34
|
+
"clean": "rimraf .next",
|
|
35
|
+
"format": "prettier --write .",
|
|
36
|
+
"format:check": "prettier --check .",
|
|
37
|
+
"knip": "knip",
|
|
38
|
+
"lint": "eslint . --cache",
|
|
39
|
+
"lint:fix": "eslint . --fix --cache && prettier --write .",
|
|
40
|
+
"lint:ci": "eslint . --max-warnings=0 && prettier --check .",
|
|
41
|
+
"typecheck": "tsc --noEmit",
|
|
42
|
+
"prepare": "husky",
|
|
43
|
+
"changeset": "changeset",
|
|
44
|
+
"changeset:version": "changeset version",
|
|
45
|
+
"changeset:publish": "changeset publish"
|
|
46
|
+
},
|
|
47
|
+
"lint-staged": {
|
|
48
|
+
"*.{ts,tsx,js,jsx}": [
|
|
49
|
+
"eslint --fix --cache",
|
|
50
|
+
"prettier --write"
|
|
51
|
+
],
|
|
52
|
+
"*.{css,md,json}": [
|
|
53
|
+
"prettier --write"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"keywords": [
|
|
57
|
+
"virastack",
|
|
58
|
+
"nextjs-boilerplate",
|
|
59
|
+
"nextjs-starter",
|
|
60
|
+
"react-boilerplate",
|
|
61
|
+
"react",
|
|
62
|
+
"nextjs",
|
|
63
|
+
"cursor-rules",
|
|
64
|
+
"clean-architecture",
|
|
65
|
+
"typescript",
|
|
66
|
+
"tanstack-query",
|
|
67
|
+
"tailwindcss",
|
|
68
|
+
"base-ui",
|
|
69
|
+
"dx"
|
|
70
|
+
],
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@base-ui/react": "^1.6.0",
|
|
73
|
+
"@hookform/resolvers": "^5.4.0",
|
|
74
|
+
"@next/bundle-analyzer": "^16.2.11",
|
|
75
|
+
"@tanstack/react-query": "^5.101.4",
|
|
76
|
+
"@tanstack/react-query-devtools": "^5.101.4",
|
|
77
|
+
"class-variance-authority": "^0.7.1",
|
|
78
|
+
"clsx": "^2.1.1",
|
|
79
|
+
"framer-motion": "^12.42.2",
|
|
80
|
+
"lucide-react": "^1.25.0",
|
|
81
|
+
"next": "16.2.11",
|
|
82
|
+
"next-intl": "^4.13.4",
|
|
83
|
+
"next-themes": "^0.4.6",
|
|
84
|
+
"nuqs": "^2.9.1",
|
|
85
|
+
"react": "19.2.4",
|
|
86
|
+
"react-dom": "19.2.4",
|
|
87
|
+
"react-hook-form": "^7.82.0",
|
|
88
|
+
"sonner": "^2.0.7",
|
|
89
|
+
"tailwind-merge": "^3.6.0",
|
|
90
|
+
"usehooks-ts": "^3.1.1",
|
|
91
|
+
"zod": "^4.4.3",
|
|
92
|
+
"zustand": "^5.0.14"
|
|
93
|
+
},
|
|
94
|
+
"devDependencies": {
|
|
95
|
+
"@changesets/cli": "^2.31.1",
|
|
96
|
+
"@commitlint/cli": "^21.2.1",
|
|
97
|
+
"@commitlint/config-conventional": "^21.2.0",
|
|
98
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
99
|
+
"@tailwindcss/postcss": "^4",
|
|
100
|
+
"@types/node": "^20",
|
|
101
|
+
"@types/react": "^19",
|
|
102
|
+
"@types/react-dom": "^19",
|
|
103
|
+
"babel-plugin-react-compiler": "1.0.0",
|
|
104
|
+
"cross-env": "^10.1.0",
|
|
105
|
+
"eslint": "^9",
|
|
106
|
+
"eslint-config-next": "16.2.11",
|
|
107
|
+
"husky": "^9.1.7",
|
|
108
|
+
"knip": "^6.28.0",
|
|
109
|
+
"lint-staged": "^17.1.1",
|
|
110
|
+
"prettier": "^3.9.6",
|
|
111
|
+
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
112
|
+
"rimraf": "^6.1.3",
|
|
113
|
+
"tailwindcss": "^4",
|
|
114
|
+
"tw-animate-css": "^1.4.0",
|
|
115
|
+
"typescript": "^5"
|
|
116
|
+
}
|
|
117
|
+
}
|