AI Freelance Studio is a comprehensive, AI-powered project management and discovery platform designed specifically for freelance web developers. It leverages the Google Gemini API to automate and streamline the entire client onboarding process, from initial discovery interviews to generating code prototypes and legal contracts.
- AI Discovery Chat: An intelligent chat interface that acts as a Senior Web Development Lead, interviewing the client to gather critical project requirements (Business DNA, Goals, Tech Requirements, Logistics).
- Automated Project Planning: Automatically generates a structured project plan including tasks, estimated budget, timeline, and milestones based on the discovery chat.
- Asset Generation: Generates placeholder copy and concept images (using Gemini Image models) for the website.
- Sitemap Generation: Automatically extracts and visualizes a sitemap from the generated project requirements or code.
- Rapid Prototyping: Generates a single-file HTML/Tailwind CSS prototype based on the project description or by uploading a UI sketch/mockup. Includes iterative refinement capabilities.
- Multi-Language Proposals: Generates professional project proposals in multiple languages (English, Romanian, Spanish, French, German, Italian) with one-click translation.
- Multi-Language Contracts: Generates legal service agreements with optional clauses (Liability, Force Majeure) in multiple languages.
- Client Communication: Drafts contextual client emails for status updates, asset requests, and payment reminders.
- Export & Print: Export proposals and contracts to PDF or print them directly from the dashboard.
- Frontend: React 18, TypeScript, Vite
- Styling: Tailwind CSS
- Icons: Lucide React
- AI Integration:
@google/genai(Gemini 3.1 Flash/Pro, Gemini 2.5 Flash Image) - PDF Generation:
jspdf,html2canvas
src/App.tsx: The main application container, managing the high-level state between the initial dashboard and the active project view.src/components/ProjectDashboard.tsx: The core interface for managing a project. It contains tabs for Plan, Assets, Sitemap, Prototype, Proposal, Contract, and Emails.src/services/geminiService.ts: The AI service layer. This file contains all the prompts and API calls to the Gemini models, handling structured JSON outputs, code generation, and image generation.src/types.ts: TypeScript interfaces defining the core data models (ProjectData,Task,Asset,Milestone, etc.).
- Discovery Phase: The user starts a new project by chatting with the AI. The AI uses
systemInstructionto guide the conversation through a specific checklist (Brand, Goals, Tech, Logistics). - Structured Output: Once enough information is gathered, the
generateProjectPlanfunction uses Gemini with a strictresponseSchemato output a structured JSON object containing the budget, timeline, tasks, and milestones. - Generative UI: The
generateWebsitePrototypefunction prompts Gemini to write raw HTML and Tailwind CSS. A customcleanPrototypeCodefunction ensures the output is stripped of markdown but retains essential HTML tags for rendering in an iframe. - Multilingual Support: The proposal and contract generators take the structured project data and prompt Gemini to write professional documents in the user's selected language, maintaining HTML formatting for the UI.
-
Install Dependencies:
npm install
-
Environment Variables: Create a
.envfile in the root directory and add your Gemini API key:API_KEY=your_gemini_api_key_here
-
Run the Development Server:
npm run dev