Next.js 14 App Router
The project is built on Next.js with the App Router, which gives it a single codebase for frontend UI, route structure, global styling, and server-side API handling.
A Next.js app for composing structured AI prompts with export, file upload, and Claude-powered image analysis. It uses React, TypeScript, Tailwind CSS, and server-side AI integration inside the App Router architecture.
Live at: https://prompt-builder.sugiro.ai/
What powers this AI prompt authoring tool and how the frontend and backend are split.
The project is built on Next.js with the App Router, which gives it a single codebase for frontend UI, route structure, global styling, and server-side API handling.
The interface is a React app composed of focused components for system prompt sections, user prompt sections, examples, output rendering, and information overlays.
The app and its API route are written in TypeScript, which helps structure prompt-building state, file-analysis responses, component props, and utility logic.
The visual system uses Tailwind and custom global styling to create the premium dark UI, spacing system, and responsive layout rather than a traditional CSS file-per-component approach.
The app sends uploaded image data to Claude through the official Anthropic SDK, using an internal API route to generate contextual prompt suggestions from visual references.
The main product value is not just static form entry. The app continuously assembles structured prompt output as the user edits sections and augments it with AI-assisted suggestions.
The app combines browser-side prompt editing with server-side image analysis.
app/page.tsx renders the main interface and mounts the prompt-building experience within the App Router structure.
The core builder component coordinates prompt sections, examples, uploaded reference files, project naming, and generated output text in client-side state.
Users can drag or select images and supporting files, then trigger AI analysis to extract persona, constraints, task, requirements, and tech-stack suggestions.
app/api/analyze-image/route.ts receives base64 image data, sends it to Claude Sonnet 4 through the Anthropic SDK, and parses the structured JSON suggestions.
The React frontend receives the generated recommendations and surfaces them back into the builder flow, helping the user create a stronger final prompt.
This project is a modern full-stack frontend tool rather than a purely static page.
package.json next.config.js tailwind.config.ts tsconfig.json app/page.tsx app/layout.tsx app/globals.css app/api/analyze-image/route.ts components/prompt-builder.tsx components/generated-prompt.tsx components/section-examples.tsx
This project is structurally closer to Card Tracker than to the static calculators, but its value is centered on AI-assisted authoring rather than data dashboards.
The app is primarily about shaping and exporting prompt content, with optional server-side AI assistance.
Users build system and user prompts interactively.
The generated prompt view updates in real time.
Export and copy behavior are client-facing workflow features.
The app is useful even before AI analysis is triggered.
The analyze-image route accepts image data and media type.
Claude returns structured JSON suggestion groups.
The route validates input and handles API-key errors.
The AI layer enriches the authoring flow rather than generating the entire product output by itself.
The normal Next.js local and production workflow applies here.
npm install npm run dev npm run build npm start npm run lint
This is a standard Next.js workflow. The AI-assisted image analysis path also requires the Anthropic API key to be configured.
ANTHROPIC_API_KEY for the image-analysis route.
Node.js and npm.
No separate database is required for the current app shape.
The frontend and API route are served from the same Next.js app.
Prompt Builder is a Next.js + React + TypeScript application with a focused Claude-powered backend route. It combines structured prompt authoring, file-aware workflow, and AI-assisted suggestion generation inside a single App Router product.