Skip to content

joansongjr/Coding-as-Dressing-Princess-Studio

Repository files navigation

🎀 Princess Studio: Coding as Dressing

"Coding is the fine art of thoughts." A high-fashion, Princess Maker 4 inspired IDE that translates complex code logic into elegant royal outfits.

🌟 Overview

Princess Studio is an experimental AI-powered coding environment that bridges the gap between Software Engineering and Aesthetic Design. Using Google Gemini 3 Pro and Flash models, it converts natural language programming requirements into:

  1. Clean Code: Executable, high-quality logic.
  2. Couture Mapping: A pedagogical translation of code structures (loops, variables, APIs) into fashion elements (lace, jewelry, tailoring).
  3. Visual Representation: AI-generated character illustrations wearing the "Code-Gown" generated from your logic.

🎨 The "Coding as Dressing" Philosophy

We believe that code quality shares the same principles as high-end tailoring:

  • Frontend (UI/UX) = Fabric & Silhouette: The touch, drape, and first impression.
  • Backend (Logic) = Tailoring & Support: The internal stitching that determines durability and fit.
  • Refactoring = Wardrobe Capsule: Streamlining redundancy while keeping the essentials.
  • Clean Code = Minimalism: The "Old Money" aesthetic—functional, timeless, and devoid of unnecessary clutter.

🚀 Features

  • Magick Command Line: Input your programming wishes in natural language.
  • Princess Mirror (Visualizer): See your code come to life as a bespoke outfit for your digital princess.
  • IDE Explorer: A VSCode-style file management interface for organizing your "Magic Blueprints."
  • Atelier Report: Deep-dive analysis into the aesthetic mapping of your logic.
  • Attribute System: Track your code's Elegance, Clarity, and Power levels.

🛠️ Tech Stack

  • Framework: React 19 + TypeScript
  • Styling: Tailwind CSS (with Princess Maker 4 Aesthetic Overlays)
  • AI Engine:
    • gemini-3-pro-preview: For logic generation and fashion mapping.
    • gemini-2.5-flash-image: For real-time couture illustration.
  • Icons & Fonts: Cormorant Garamond, JetBrains Mono, Custom Ornate Borders.

📂 Project Structure

src/
├── components/
│   ├── FileExplorer.tsx      # VSCode-style sidebar
│   └── MarkdownRenderer.tsx  # Styled report engine
├── geminiService.ts          # Core AI logic & System Instructions
├── types.ts                  # Type definitions
└── App.tsx                   # Main layout and state orchestration

📜 How to Use

  1. Clone the repository.
  2. Set your Gemini API Key: Ensure process.env.API_KEY is configured.
  3. Start the Studio: npm start or run via your preferred hosting.
  4. Input a Command: E.g., "Create a function that sorts a list of rose petals by color."
  5. Observe the Magic: Watch the code appear and see the princess change into an outfit that represents that specific logic.

Developed with ❤️ for the intersection of logic and beauty.

About

一句话简介: 把晦涩的代码逻辑翻译成小白秒懂的“换装游戏”。 项目初衷 (Why): 很多小白在学编程时,被堆砌的字符搞得很头大。但我发现,大家虽然不懂代码,但都懂穿搭:知道什么衣服配什么鞋,知道什么时候穿西装、什么时候穿睡衣。 我想:如果写代码能像在《美少女梦工厂》里给女儿选衣服一样直观,编程是不是就不再可怕了? 核心方案 (What): 用户贴入一段代码,模型会通过 Step-1V 的理解能力,将其转化为一套“穿搭方案”: 函数 就是单品(比如:这块逻辑像是一件有力量感的风衣); 变量 就是配饰(比如:变量名起得好,就像点睛之笔的项链); 逻辑错误 就是搭配事故(比如:逻辑冲突就像羽绒服配凉鞋,一眼就能看出不对劲)。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors