Skip to content

chuanchuan123321/JC-Code-Studio

Repository files navigation

JC-Code Studio

English | 简体中文

JC-Code Studio Logo React TypeScript AI

An AI-Native Frontend Development Platform


Introduction

JC-Code Studio is a cutting-edge, AI-native frontend development platform designed to revolutionize the way developers build web applications. Similar to Google AI Studio, JC-Code Studio provides an intelligent, conversational coding experience that empowers developers to create stunning web projects through natural language interaction.

Born from the vision of making programming accessible and efficient, JC-Code Studio leverages advanced AI models to generate, modify, and refactor frontend code in real-time. Whether you're a seasoned developer or just starting your coding journey, JC-Code Studio adapts to your workflow and accelerates development like never before.

Key Features

🤖 Native AI-Driven Development

  • Conversational Coding Interface: Interact with your codebase using natural language. Describe what you want, and watch JC-Code Studio bring it to life
  • Real-Time Streaming Responses: See code generated instantly as AI streams responses character by character
  • Intelligent Context Awareness: The AI understands your entire project structure, ensuring consistent and coherent code generation
  • Multi-Turn Conversations: Maintain context across multiple interactions for complex project development

📁 Multi-File Project Generation

  • Automatic File Organization: JC-Code Studio intelligently creates and organizes files into professional folder structures
  • Simultaneous Multi-File Editing: Update multiple files (HTML, CSS, JavaScript) in a single request
  • Smart Dependency Management: The AI understands file dependencies and loads scripts in the correct order
  • Hierarchical Folder Support: Create complex projects with nested folders and subdirectories
  • Template-Based Generation: Use professional project templates or build from scratch

🎨 Complete Frontend Stack Support

  • HTML Structure Generation: Semantic markup with accessibility best practices
  • CSS Styling: Modern styles including animations, responsive design, and advanced effects
  • JavaScript Functionality: Dynamic interactions, event handling, and complex logic
  • TypeScript Support: Type-safe code generation for robust applications
  • Framework Agnostic: Works with vanilla JavaScript or can be extended for frameworks

🔄 Advanced Version Control

  • Code History Tracking: Every AI-generated version is automatically saved with timestamps
  • Time-Travel Debugging: Restore any previous version of your code with a single click
  • Message-Based History: History is linked to chat messages for easy reference
  • Diff Visualization: See exactly what changed between versions
  • Branch-Like Development: Experiment safely knowing you can always revert

📥 Code Import & Export

  • Drag-and-Drop Import: Easily import existing projects by dragging files into the workspace
  • Project Archiving: Save complete projects to local storage for later access
  • Export Functionality: Download your entire project as a zip file
  • Clipboard Integration: Quick copy-paste of code snippets
  • Format Preservation: Maintain your code structure during imports

🖼️ Multimodal AI Interaction

  • Image Upload Support: Upload screenshots, designs, or mockups to guide AI generation
  • Visual Context Understanding: The AI analyzes images to generate matching UI components
  • Design-to-Code: Transform visual designs into functional code automatically
  • Reference Image Chat: Discuss uploaded images with the AI for precise implementation
  • Multi-Format Support: JPG, PNG, WebP, and more

🎛️ Professional IDE Features

  • Syntax Highlighting: Beautiful code display powered by Prism.js
  • Split-Pane Layout: Customizable workspace with Chat, Editor, and Preview panels
  • Resizable Panels: Drag panel borders to create your perfect workspace
  • Tab-Based File Navigation: Easily switch between multiple open files
  • Auto-Save: Never lose your work with automatic project persistence
  • Keyboard Shortcuts: Speed up your workflow with quick actions

🚀 Live Preview Environment

  • Instant Rendering: See your changes immediately in the integrated preview pane
  • Isolated Execution: Preview runs in a secure iframe environment
  • Hot Reload: Changes reflect instantly without manual refresh
  • Responsive Testing: Test your designs at different viewport sizes
  • Console Access: Debug JavaScript with integrated browser console
  • Performance Monitoring: Track resource usage and loading times

Use Cases

🎯 For Beginners

  • Learn by Doing: Ask JC-Code Studio to explain concepts while building real projects
  • Code Assistance: Get help with syntax errors and best practices
  • Project Ideas: Receive suggestions for practice projects tailored to your skill level
  • Interactive Tutorials: Build complete applications step-by-step with AI guidance

💼 For Professional Developers

  • Rapid Prototyping: Create MVPs in minutes instead of hours
  • Boilerplate Generation: Skip repetitive setup tasks with AI-generated templates
  • Code Refactoring: Improve code quality and organization instantly
  • Documentation: Generate documentation alongside your code
  • Testing Assistance: Create test cases and example scenarios

🎨 For Designers & Frontend Developers

  • Design-to-Code Workflow: Convert Figma/Sketch designs to code automatically
  • Animation Creation: Generate complex CSS animations and transitions
  • Responsive Layouts: Build mobile-first designs effortlessly
  • Component Libraries: Create reusable UI components with AI assistance
  • Style Consistency: Maintain design systems across large projects

🏢 For Teams

  • Onboarding: Get new team members up to speed quickly
  • Code Reviews: Use AI to review and suggest improvements
  • Documentation: Keep project docs in sync with code changes
  • Knowledge Sharing: Share project templates and patterns
  • Standardization: Enforce coding standards automatically

Quick Start Guide

Prerequisites

  • Node.js 18+ installed
  • Modern web browser (Chrome, Firefox, Safari, Edge)
  • Basic understanding of web development concepts

Installation Steps

  1. Clone the Repository
git clone https://github.com/your-username/vibe-coding.git
cd vibe-coding
  1. Install Dependencies
npm install
  1. Configure API Access

Create a .env.local file in the project root:

# API Configuration
API_URL=https://yunwu.ai/v1
API_KEY=your_api_key_here
MODEL=gemini-3-pro-preview

# Optional: Customize AI behavior
TEMPERATURE=0.7
MAX_TOKENS=32000
  1. Launch JC-Code Studio
npm run dev
  1. Start Creating

Open http://localhost:3000 in your browser and start your JC-Code Studio journey!

Project Showcase

Example Projects Built with JC-Code Studio

🎮 Interactive Game Dashboard

// Ask JC-Code Studio: "Create a gaming dashboard with player stats,
// achievement badges, and a dark theme with neon accents"

// JC-Code Studio generates:
// - HTML structure with semantic markup
// - CSS with glowing effects and animations
// - JavaScript for real-time stat updates

📊 Data Visualization App

// Ask: "Build me an analytics dashboard with charts,
// data tables, and export functionality"

// JC-Code Studio generates:
// - Complete chart library integration
// - Responsive grid layout
// - Data processing and CSV export

🛒 E-Commerce Interface

// Ask: "Create a product listing page with filters,
// shopping cart, and checkout flow"

// JC-Code Studio generates:
// - Product cards with hover effects
// - Filter sidebar with categories
// - Cart state management
// - Checkout form validation

📱 Portfolio Website

// Ask: "Design a personal portfolio with project gallery,
// about section, and contact form"

// JC-Code Studio generates:
// - Hero section with animations
// - Project gallery with lightbox
// - Smooth scroll navigation
// - Form validation and submission

Development Workflow

1. Project Initialization

Start by describing your vision:

You: "I want to build a task manager app with drag-and-drop,
categories, and local storage"

2. Iterative Development

Refine and expand:

You: "Add dark mode toggle and save user preference"
You: "Create a priority system with color coding"
You: "Add due dates with reminder notifications"

3. Visual Customization

Perfect the appearance:

You: "Make the design more modern with gradients and glassmorphism"
You: "Add smooth page transitions and micro-interactions"

4. Feature Enhancement

Add advanced functionality:

You: "Implement search and filtering capabilities"
You: "Add export to CSV functionality"

Technical Architecture

Technology Stack

Frontend Framework:  React 19
Language:            TypeScript 5.8
Build Tool:           Vite 6.2
Styling:              Tailwind CSS (CDN)
Syntax Highlighting:   Prism.js
Markdown:            React Markdown + Remark GFM
File Compression:     JSZip

System Architecture

┌─────────────────────────────────────────────────────────┐
│                    JC-Code Studio Platform               │
├─────────────┬─────────────┬─────────────────────────┤
│   Chat Panel │   Editor    │      Preview Pane       │
│             │   Panel     │                         │
│  • AI chat  │  • Syntax   │  • Live Rendering      │
│  • Image    │    Highlight │  • Iframe Sandbox     │
│    upload   │  • Tabs     │  • Console Access      │
│  • History  │  • File     │  • Responsive Mode    │
│    tracking │    Tree     │  • Performance Mon.    │
└─────────────┴─────────────┴─────────────────────────┘
                        │
                        ▼
              ┌─────────────────────┐
              │   State Management  │
              │  (React Hooks)     │
              │  • localStorage     │
              │  • Session Sync    │
              └─────────────────────┘
                        │
                        ▼
              ┌─────────────────────┐
              │   AI Service Layer  │
              │  • Streaming API    │
              │  • File Generation  │
              │  • Context Mgmt     │
              └─────────────────────┘

Configuration Options

Environment Variables

Variable Type Description Default
API_URL string AI service endpoint https://yunwu.ai/v1
API_KEY string Your API authentication key (required)
MODEL string AI model to use gemini-3-pro-preview
TEMPERATURE number AI creativity (0-1) 0.7
MAX_TOKENS number Maximum response tokens 32000

Advanced Settings

Customize your JC-Code Studio experience by modifying vite.config.ts:

export default defineConfig({
  server: {
    port: 3000,           // Change development port
    host: '0.0.0.0',      // Enable network access
  },
  // Add custom build optimizations
  build: {
    minify: 'terser',
    sourcemap: true,
  }
});

Browser Compatibility

Browser Version Status
Chrome 90+ ✅ Fully Supported
Firefox 88+ ✅ Fully Supported
Safari 14+ ✅ Fully Supported
Edge 90+ ✅ Fully Supported

Contributing

We welcome contributions from the community! Here's how you can help:

Ways to Contribute

  1. Report Bugs: Open an issue with detailed reproduction steps
  2. Suggest Features: Share your ideas for improving JC-Code Studio
  3. Submit PRs: Fix bugs or implement features
  4. Improve Docs: Help make documentation clearer
  5. Share Projects: Show off what you've built with JC-Code Studio

Development Setup

# Fork and clone the repository
git clone https://github.com/your-username/vibe-coding.git

# Install dependencies
npm install

# Create feature branch
git checkout -b feature/amazing-feature

# Make your changes
# Commit with clear messages
git commit -m "Add: amazing feature"

# Push and create PR
git push origin feature/amazing-feature

Troubleshooting

Common Issues

Q: Preview pane shows blank screen

  • Ensure you have an index.html file
  • Check browser console for JavaScript errors
  • Try refreshing the preview

Q: AI responses are slow

  • Check your internet connection
  • Verify API_KEY is correct in .env.local
  • Try reducing MAX_TOKENS in configuration

Q: Can't upload images

  • Ensure image format is supported (JPG, PNG, WebP)
  • Check file size (max 10MB recommended)
  • Verify browser permissions

Q: Lost my code changes

  • Check history panel and restore previous version
  • Look in localStorage for auto-saved projects
  • Check browser cache for recent changes

License

This project is provided as-is for educational and development purposes.

Acknowledgments

  • Built with modern web technologies
  • Powered by advanced AI models
  • Inspired by the vision of making coding accessible to everyone
  • Created with passion for improving developer experience

Made with ❤️ by the JC-Code Studio Team

Transforming ideas into code, one conversation at a time.

⭐ Star us on GitHub — it helps!

🔥 Join our community and start coding smarter

About

一个原生AI驱动的前端Vibe coding软件,支持AI自由化多文件生成前端,支持html,css,javascript渲染,支持历史回退,代码导入,图片发送等等,

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors