The repository is a monorepo for the VitNode framework, which includes a backend API, frontend documentation site, and shared packages.
- Use React 19.2, Next.js 16, TypeScript 5.9, Hono.js 4,
- Use pnpm as the runtime environment,
- Use Tailwind CSS 4 for styling,
- Please use as much as possible server-side API calls (server components, server actions),
- For client API calls, use
tanstack/react-queryhooks,
- Avoid using
anytype, - Do not nest ternary operators,
- Avoid creating
index.tsfiles for exports, instead use explicit file names, - Use only
constfor create functions, butfunctionfor pages and generic functions, - Prefer using nullish coalescing operator (
??) instead of a logical or (||), as it is a safer operator,
- Don't use
React.FC, instead explicitly type props - Don't use
useMemoanduseCallback. Project has React Compiler
- Use
motion/reactfor animations and gestures, - Use
translateinstead oftop/leftfor moving elements, as it is more performant