尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证A starter template for developing applications with Next.js.
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Next Template
Production-ready Next.js starter with TypeScript, Tailwind CSS v4, i18n and working examples for every shipped library查看完整 README ↗noUncheckedIndexedAccess, exactOptionalPropertyTypes)[locale] routing, key-parity check, typed messages, title template + hreflanguiSlice example) + TanStack Query (streaming SSR: pending-query dehydration + useSuspenseQuery)strict-dynamic), hardened headers, one rate-limit identity rule for pages/API/actions, CSRF check for actions, header-only ISR webhook secretpnpm check runs them all; CI and Vercel run the same setminimumReleaseAge + install-script allow-list, SHA-pinned Actions, Dependabot cooldownnpx degit hHolyMolly/next-template my-app
cd my-app
pnpm install
git init && pnpm prepare # enable git hooks
pnpm dev
Remove the demo surface when you start building:
pnpm clean:demo my-app # degit clones: also renames + finalizes
pnpm clean:demo my-app --force # git clones: force the finalization step
Node.js 24+, pnpm 10.16+.
next-env.d.tsis generated bypnpm dev/pnpm typecheck.
clean:demo)Every shipped library is exercised by real code on the home page:
| Example | Shows |
|---|---|
[locale]/components/ContactForm | RHF + zodResolver → Server Action (withServerAction + CSRF + rate limit) → toast |
[locale]/components/HealthStatus | TanStack Query streaming SSR: in-process prefetch + HydrationBoundary → useSuspenseQuery + ErrorBoundary; axios refetches |
[locale]/components/DemoBanner | Redux uiSlice + featureFlags + useLocalStorage |
GET /api/health · POST /api/echo | withApiHandler: Zod validation, typed errors, rate-limit headers |
| Command | Description |
|---|---|
pnpm dev / build / start / preview | Develop · build · serve |
pnpm lint / lint:fix | ESLint, 0 warnings allowed |
pnpm lint:css / lint:css:fix | Stylelint check · autofix |
pnpm format / format:check | Prettier write · check |
pnpm typecheck / typecheck:test | TypeScript: app · tests |
pnpm test / test:watch / test:coverage | Vitest (+ coverage thresholds) |
pnpm check | All gates in one command (same set as CI) |
pnpm check:i18n | Locale key parity |
pnpm knip | Unused files / deps (blocking), exports (advisory) |
pnpm analyze | Turbopack bundle analyzer |
pnpm clean / clean:cache / clean:demo | Cleanup |
Git hooks: pre-commit (lint-staged + i18n parity) · commit-msg (commitlint) · pre-push (typecheck + tests).
src/
├── app/
│ ├── layout.tsx # <html>/<body>, JSON-LD (nonce), styles, font variable
│ ├── api/ # health · echo (demo) · revalidate (ISR webhook) — withApiHandler
│ └── [locale]/
│ ├── layout.tsx # locale + NextIntlClientProvider (client namespaces)
│ ├── page.tsx # demo home (SSR query prefetch)
│ ├── components/ # demo surface (clean:demo removes it)
│ └── (routes)/ # Header/Footer layout, template page, 404 catch-all
├── components/ UI/ (shadcn) · layouts/ (Header, Footer, LanguageSwitch, WebVitals, …) · icons/
├── configs/ project · metadata · routes · env · featureFlags
├── hooks/ 13 SSR-safe hooks
├── lib/ withApiHandler · withServerAction · rateLimit · errors · errorReporting · cn · queryClient
├── messages/ {en,ru}/{translations,metadata,demo}.json
├── services/ api (http policy · axios · serverFetch · queryOptions · cache) · i18n (next-intl)
├── store/ Redux Toolkit (slices/uiSlice)
├── styles/ tailwind.css (@theme) · vars.css (oklch tokens) · normalize.css (@layer base) · fonts.ts
└── proxy.ts middleware: rate limit → CSP nonce → next-intl
.env.development / .env.production are committed (no secrets). Local overrides go to
.env.local (gitignored, wins). Required: NEXT_PUBLIC_CLIENT_URL. Full list: .env.example.
Vercel — import the repo; vercel.json runs pnpm check && pnpm build on every push (same gates as CI).
Self-hosted — pnpm build && pnpm start behind a reverse proxy (set TRUSTED_PROXY_HOPS).
Architecture rules, conventions and security contracts live in AGENTS.md — the single source of truth for humans and AI agents alike. Debugging notes: docs/gotchas.md. Release checks: docs/verification-playbook.md. Security policy: SECURITY.md.
MIT © HolyMolly