File size: 8,618 Bytes
b937320
 
 
 
 
 
 
 
 
 
 
 
405f2d4
6b4f03a
405f2d4
baf3ed5
405f2d4
baf3ed5
 
 
6b4f03a
 
f48e399
405f2d4
b937320
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
716b726
 
 
b937320
54c7e54
 
 
716b726
54c7e54
03eeded
54c7e54
03eeded
54c7e54
03eeded
 
54c7e54
 
 
 
 
716b726
b937320
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
716b726
b937320
 
 
 
 
54c7e54
 
 
 
 
 
 
 
 
 
 
 
b937320
716b726
b937320
 
 
 
 
716b726
b937320
716b726
b937320
 
 
 
716b726
 
b937320
716b726
 
 
 
b937320
716b726
b937320
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f48e399
 
 
 
b937320
 
f48e399
 
 
b937320
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Managing Projects

**Everything you need to know about creating, organizing, and exporting projects.**

---

## Creating Projects

1. Click **Projects** in the sidebar
2. Click **+ New Project**
3. Enter a project name
4. Choose a template:
   - **Website Starter** - Minimal starting point with basic HTML/CSS/JS structure
   - **Starter (Handlebars)** - Handlebars starter with templating
   - **Example Studios** - Pre-built multi-page portfolio example
   - **Starter (React + TypeScript)** - Minimal React app with auto-bundling
   - **React Demo: Task Tracker** - Interactive task tracker showcasing React components and state
   - **Starter (Preact + TypeScript)** - Lightweight React alternative with signals
   - **Starter (Svelte)** - Svelte 5 app with compile-time reactivity
   - **Starter (Vue)** - Vue 3 app with Composition API
   - **Starter (Python)** - Python script with Pyodide WASM runtime
   - **Starter (Lua)** - Lua script with wasmoon WASM runtime
   - **Landing Page with Contact Form** - Contact form with Resend email (Backend)
   - **Blog with Comments** - Blog with auth and moderated comments (Backend)
   - Or select any custom template you've created
5. Optionally add a description
6. Click **Create Project**

All projects start from a template. The built-in templates provide a foundation to build upon.

**[Learn more about templates โ†’](?doc=templates)**

---

## Opening Projects

### From Projects View

1. Click **Projects** in the sidebar
2. Find your project in the grid
3. Click on the project card

### Recent Projects

Your 3 most recent projects appear in the sidebar for quick access.

---

## Project Workspace

The workspace displays up to 3 panels side-by-side. Open, close, and reorder panels from the sidebar or panel headers โ€” drag the grip handle in a panel header to rearrange. Panel widths, order, and visibility persist between sessions.

Available panels: Chat, File Explorer, Code Editor, Preview, Console (Python/Lua), Skills, Checkpoints, Debug, Settings. When you open a 4th panel, the rightmost panel is replaced.

### Workspace Header

The header contains key controls:
- **Project name** - Displayed in the header
- **Mode toggle** - Switch between Chat (read-only) and Code (full access) modes
- **Deployment selector** (Server Mode only) - Choose which published deployment's backend context to load

#### Deployment Selector (Server Mode)

In Server Mode, a dropdown appears in the workspace header that lets you select a deployment. When selected:
- The AI gains awareness of that deployment's backend features
- A `/.server/` hidden folder appears with server context files
- You can ask the AI about edge functions, database schema, etc.

See **[Server Mode โ†’ Server Context Integration](?doc=server-mode#server-context-integration)** for details.

### Chat

Talk to AI to build and modify your project. The chat panel has two modes:

**Chat Mode** (read-only):
- AI uses read-only shell commands
- Explore and discuss without making changes
- See how the AI understands your project
- Perfect for planning before building

**Code Mode** (full access):
- AI can create, edit, and delete files
- Make actual changes to your project
- Build features and fix bugs

**Pro tip**: If unsure, start with Chat mode to see how the AI views your project. You can also one-shot prompt full multi-page websites, though smaller, focused tasks are generally more consistent.

### File Explorer

Browse your project structure:
- Click folders to expand/collapse
- Click files to open in editor
- Right-click for options (rename, delete, etc.)
- Right-click and select **Show Hidden Files** to view hidden folders

#### Hidden Folders

OSW Studio uses hidden folders (starting with `.`) to provide AI context:

| Folder | Icon | Purpose |
|--------|------|---------|
| `/.skills/` | Purple book | Skill documents that teach the AI your preferences |
| `/.server/` | Orange server | Server context (Server Mode only) - database schema, edge functions, etc. |

These folders are **read-only** and **transient** - their contents are generated dynamically to provide context to the AI and are not saved with your project

### Code Editor

View and edit code:
- Multiple tabs for different files
- Syntax highlighting
- Save with `Cmd/Ctrl+S`
- Supports HTML, CSS, JavaScript, TypeScript, TSX, JSON, Markdown, XML, SVG, Python, Lua, Svelte, Vue SFCs

### Live Preview

See your website in real-time:
- Updates automatically when files change
- Click links to navigate
- Test responsive design with mobile/tablet/desktop size presets
- Click **Maximize** to fill the whole screen with the preview (hides all other panels)
- Open in new tab for full testing
- Use the **focus tool** to select specific elements and add them to message context for targeted AI edits
- Drag **semantic blocks** from the Blocks palette onto the preview โ€” the AI writes code that fits your project

### Console (Python/Lua)

For terminal runtimes (Python, Lua), the Console panel shows script output and lets you see errors from script execution. Opens automatically for terminal runtimes.

---

## Saving Your Work

### Manual Save

Press `Ctrl+S` (Windows/Linux) or `Cmd+S` (Mac) to save your project.

**Important**: Projects require manual save to persist. While checkpoints are created automatically during AI operations, you must manually save to create a permanent restore point.

### Checkpoints

OSW Studio creates checkpoints automatically after AI makes changes:

- **Starting point** is created when you open a project (if no prior save exists)
- **Auto-checkpoints** are created during AI operations (last 10 kept per project)
- **Manual saves** (Cmd/Ctrl+S) persist across refreshes and are never evicted
- **"Discard Changes"** reverts to the state when you opened the project โ€” your last manual save if one exists, or the Starting Point otherwise

**How to restore:**
1. Open the **Checkpoints Panel** in the workspace
2. Browse starting point, auto-checkpoints, and manual saves
3. Click any checkpoint to restore your project to that state

---

## Exporting Projects

### Export as ZIP

Download your complete website ready to deploy:

1. Click the **Menu** icon (โ‹ฎ) in the top right
2. Select **Export**
3. Choose **ZIP** (suitable for hosting)
4. Save the ZIP file

The ZIP contains:
- All HTML, CSS, JavaScript files
- Images and assets
- Clean structure ready for hosting

**Deploy it to:**
- Vercel, Netlify, GitHub Pages
- Any static file host
- Your own server

**[Deployment guide โ†’](?doc=deploying-sites)**

### Export as JSON (Backup)

Save your entire project including chat history and checkpoints:

1. Click the **Menu** icon (โ‹ฎ)
2. Select **Export**
3. Choose **JSON** (backup format)
4. Save the file

Use this to:
- Back up your work
- Transfer projects between computers
- Share projects with others
- Keep complete history

### Import JSON Files

Restore a backed-up project:

1. Click **Projects** in sidebar
2. Click **Import Project**
3. Select your `.json` backup file
4. Project loads with full history

---

## Organizing Projects

### Naming

Give projects clear names:
- โœ… "Portfolio Website"
- โœ… "Client Landing Page - Acme Corp"
- โœ… "Blog v2"
- โŒ "Untitled 1"
- โŒ "New Project"

### Deleting Projects

1. Go to **Projects** view
2. Find the project
3. Click the **Delete** button (trash icon)
4. Confirm deletion

**โš ๏ธ Warning**: Deletion is permanent. Export a backup first if you might need it later.

---

## Tips for Project Management

**๐Ÿ’ก Name Projects Clearly**
You'll thank yourself later when you have many projects

**๐Ÿ’ก Export Backups Regularly**
Especially before major changes or experiments

**๐Ÿ’ก Use Templates**
Don't rebuild the same structure every time

**๐Ÿ’ก One Feature at a Time**
Make changes incrementally and test as you go

**๐Ÿ’ก Test in Preview**
Always check the live preview before exporting

**๐Ÿ’ก Keep Chat History Clean**
Start new conversations when switching to different features

---

## Common Tasks

### Duplicate a Project

1. Export project as JSON
2. Import it back with a new name
3. Continue working on the copy

### Start Over

1. Delete old project
2. Create new project with same name
3. Or keep old as reference and create new

### Share a Project

1. Export as JSON
2. Share file with others
3. They import it in their OSW Studio

---

**Next Steps:**

- **[Working with AI](?doc=working-with-ai)** - Get better results from AI
- **[Templates](?doc=templates)** - Start projects faster
- **[Deploying Sites](?doc=deploying-sites)** - Put your site online