Spaces:
Running
Running
File size: 7,956 Bytes
1cf8f01 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
# DeepSite 2.0 π
**The Next-Generation AI-Powered Web Development Platform**
DeepSite 2.0 is a revolutionary web development platform that combines the power of Google Gemini AI with an intuitive, professional-grade development environment. Create, edit, and manage complete web projects with unprecedented AI assistance.
## β¨ Key Features
### π€ Advanced AI Integration
- **Google Gemini 2.5 Models**: Access to the latest and most powerful AI models
- **Smart Code Generation**: Generate complete projects from simple descriptions
- **Intelligent Code Improvement**: AI-powered code optimization and bug fixing
- **Context-Aware Assistance**: AI that understands your project structure
- **Custom Prompt System**: Reusable AI prompts for consistent workflows
### π― Professional Development Environment
- **Multi-Tab Editor**: Monaco-based editor with advanced features
- **File Explorer**: Hierarchical file and folder management with drag-and-drop
- **Live Preview**: Real-time preview with multiple viewport sizes
- **Smart File Detection**: Automatic file type detection and syntax highlighting
- **Version Control**: Built-in file versioning and change tracking
### π¨ Modern User Experience
- **Responsive Design**: Optimized for all screen sizes
- **Dark Theme**: Professional dark interface
- **Customizable Layout**: Flexible panel system with resizable components
- **Keyboard Shortcuts**: Full keyboard navigation support
- **Performance Optimized**: Fast loading and smooth interactions
### π§ Advanced File Management
- **Hierarchical Structure**: Organize files in folders and subfolders
- **File Type Support**: HTML, CSS, JS, TS, React, Vue, and more
- **Drag & Drop**: Intuitive file organization
- **Search & Filter**: Quickly find files and content
- **Bulk Operations**: Manage multiple files at once
## π Tech Stack
### Frontend
- **Next.js 14**: React framework with App Router
- **React 18**: Latest React with concurrent features
- **TypeScript**: Full type safety
- **Tailwind CSS**: Utility-first styling
- **shadcn/ui**: Modern component library
- **Monaco Editor**: VS Code-powered editor
### Backend & AI
- **Google Gemini API**: Advanced AI models
- **MongoDB**: Document database
- **Mongoose**: Object modeling
- **NextAuth.js**: Authentication
## π Getting Started
### Prerequisites
- Node.js 18+
- MongoDB database
- Google Gemini API key
### Installation
1. **Clone the repository**:
```bash
git clone https://github.com/yourusername/deepsite.git
cd deepsite
```
2. **Install dependencies**:
```bash
npm install
```
3. **Set up environment variables**:
```bash
cp .env.example .env.local
```
Configure your environment:
```env
# Database
MONGODB_URI=your_mongodb_connection_string
# Authentication
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=http://localhost:3000
# AI Integration
GEMINI_API_KEY=your_google_gemini_api_key
HF_TOKEN=your_hugging_face_token
```
4. **Run the development server**:
```bash
npm run dev
```
5. **Open your browser**:
Navigate to [http://localhost:3000](http://localhost:3000)
## π Usage Guide
### Creating Your First Project
1. **Sign Up/Login**: Create an account or sign in
2. **New Project**: Click "Create Project" and choose a template
3. **AI Generation**: Use the AI Project Generator for instant setup
4. **Code Editing**: Use the multi-tab editor with AI assistance
5. **Live Preview**: See changes in real-time
6. **Export/Deploy**: Download or deploy your project
### AI-Powered Development
#### Project Generation
```
Describe your project: "Create a modern portfolio website with dark theme,
image gallery, contact form, and smooth animations"
```
#### Smart Code Assistance
- **Code Improvement**: Select code and use AI to enhance it
- **Bug Fixing**: Automatic detection and fixing of issues
- **Code Explanation**: Get detailed explanations of complex code
- **Style Enhancement**: Improve visual design with AI suggestions
#### Custom Prompts
Create reusable prompts for:
- Code reviews
- Performance optimization
- Security audits
- Documentation generation
## π API Reference
### Projects API
```typescript
// Get all projects
GET /api/projects
// Create project
POST /api/projects
{
"name": "My Project",
"description": "Project description",
"type": "website"
}
// Get specific project
GET /api/projects/[id]
// Update project
PUT /api/projects/[id]
// Delete project
DELETE /api/projects/[id]
```
### Files API
```typescript
// Get project files
GET /api/projects/[id]/files
// Create file
POST /api/projects/[id]/files
{
"name": "index.html",
"content": "<html>...</html>",
"type": "html"
}
// Update file
PUT /api/projects/[id]/files/[fileId]
// Delete file
DELETE /api/projects/[id]/files/[fileId]
```
### AI API
```typescript
// Generate with Gemini
POST /api/ai/gemini
{
"model": "gemini-2.5-flash",
"prompt": "Create a responsive navbar",
"config": {
"temperature": 0.7,
"maxTokens": 4096
}
}
// Generate project files
POST /api/projects/[id]/generate-files
{
"prompt": "Create a landing page",
"projectType": "website",
"framework": "vanilla"
}
```
## π¨ Features Overview
### File Management System
- **Hierarchical Organization**: Create folders and subfolders
- **Drag & Drop**: Move files between folders easily
- **File Type Detection**: Automatic detection of 20+ file types
- **Search & Filter**: Find files quickly with advanced search
- **Bulk Operations**: Select and manage multiple files
### AI-Powered Editor
- **Smart Suggestions**: Context-aware code completions
- **Code Analysis**: Real-time error detection and fixes
- **Performance Optimization**: AI-powered code improvements
- **Security Audits**: Automatic vulnerability detection
- **Documentation**: Auto-generate code documentation
### Multi-Tab Interface
- **Unlimited Tabs**: Open multiple files simultaneously
- **Tab Management**: Close, duplicate, and organize tabs
- **Unsaved Changes**: Visual indicators for modified files
- **Auto-Save**: Automatic saving with configurable intervals
- **Session Restore**: Restore tabs after browser restart
### Live Preview System
- **Real-Time Updates**: See changes instantly
- **Multiple Viewports**: Test responsive designs
- **Device Simulation**: Mobile, tablet, and desktop views
- **Console Integration**: Debug JavaScript in real-time
- **Error Reporting**: Visual error indicators and fixes
## π§ Configuration
### Editor Settings
```typescript
{
theme: 'deepsite-dark',
fontSize: 14,
fontFamily: 'JetBrains Mono',
tabSize: 2,
wordWrap: 'off',
minimap: true,
lineNumbers: 'on'
}
```
### AI Configuration
```typescript
{
defaultProvider: 'google',
defaultModel: 'gemini-2.5-flash',
maxTokens: 8192,
temperature: 0.7
}
```
## π€ Contributing
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
### Development Setup
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Add tests if applicable
5. Submit a pull request
### Code Style
- Use TypeScript for all new code
- Follow the existing code style
- Add JSDoc comments for functions
- Write tests for new features
## π License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## π Support
- **Documentation**: [docs.deepsite.dev](https://docs.deepsite.dev)
- **Issues**: [GitHub Issues](https://github.com/yourusername/deepsite/issues)
- **Discussions**: [GitHub Discussions](https://github.com/yourusername/deepsite/discussions)
- **Email**: support@deepsite.dev
## πΊ Roadmap
### Version 2.1 (Coming Soon)
- [ ] Real-time collaboration
- [ ] Cloud synchronization
- [ ] One-click deployment
- [ ] Advanced analytics
- [ ] Plugin system
### Version 2.2 (Future)
- [ ] Mobile app
- [ ] Offline mode
- [ ] Team workspaces
- [ ] Advanced AI models
- [ ] Custom themes
---
**Built with β€οΈ by the DeepSite Team**
|