This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ before writing any code. Heed deprecation notices.
- Next.js & React Version Quirks: Running Next.js 16.2.6 (App Router) and React 19.2.4. DO NOT assume typical Next.js 13/14 or React 17/18 behaviors. Consult
node_modules/next/dist/docs/for specific API compatibility. - Tailwind CSS v4 Integration: Styling uses Tailwind CSS v4.
- No
tailwind.config.*files exist. - All customizations/theme overrides must reside under the
@themedirective insidesrc/app/globals.css. - Never use
@applyin CSS; compose utility classes directly in JSX.
- No
- Strict Code & Type Architecture:
import * as React from 'react'is required (do not useimport React).- Use the
@/path alias for all internal source imports. - Utility/pure functions (in
src/tools/) must never throw to the UI. Return a result object matching:type Result = { success: true; data: unknown } | { success: false; error: string }; - Interactive components MUST begin with
'use client'. - All shared components must use named exports:
export { Component, type ComponentProps }. - Page components use
export default function Page()(Next.js convention).
- Pure Logic: Create
src/tools/<tool-name>/utils.ts(pure functions only, no React imports). - Interactive UI: Create
src/app/tools/<tool-name>/page.tsx('use client', wires state to utils). - Register: Add the tool definition to
src/components/homepage/ToolGrid.tsxandsrc/components/layout/CommandPalette.tsx.
- Start Dev Server:
npm run dev - Lint Code:
npm run lint - Production Build:
npm run build - Start Production:
npm run start
Note: There is no test runner installed. DO NOT install or configure one unless explicitly requested.