Spaces:
Running
Running
File size: 9,538 Bytes
b937320 115d3f3 b937320 115d3f3 b937320 115d3f3 b937320 115d3f3 b937320 115d3f3 b937320 115d3f3 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 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 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 |
# Frequently Asked Questions
---
## General
### What is OSW Studio?
OSW Studio (Open Source Web Studio) is a browser-based AI development environment where you describe what you want and an AI agent writes the code. It's designed for building static websites (HTML/CSS/JS) using natural language prompts.
### Is OSW Studio free?
The application itself is **free and open source** (MIT license). However:
- **BYOK (Bring Your Own Key)**: You provide your own AI API keys
- **API costs**: You pay providers directly for AI usage (typically $0.01-$0.10 per request)
- **Local models**: Ollama and LM Studio are completely free (run on your machine)
### What can I build with OSW Studio?
**You can build**:
- Landing pages and marketing sites
- Portfolios and personal websites
- Blogs and content sites
- Prototypes and demos
- Documentation sites
- Static web applications (front-end only)
**You cannot build** (no backend):
- Node.js/Python/PHP backends
- Databases and servers
- User authentication systems
- Server-side processing
- Real-time applications requiring WebSocket servers
### Do I need an API key?
- **Cloud providers** (OpenAI, Anthropic, etc.): Yes, get key from provider
- **Local providers** (Ollama, LM Studio): No, run models locally for free
### Is my data private?
**Browser Mode** (default):
- All data stays in your browser (IndexedDB)
- Code never sent to OSW Studio servers (we don't have servers!)
- Only sent to AI provider when you generate
**Server Mode** (optional):
- Data stored locally on your server
- You control the infrastructure
**AI Providers**:
- Your code is sent to AI provider when generating
- Check provider's privacy policy
- Use local models (Ollama/LM Studio) for complete privacy
---
## Features
### What's the difference between Chat and Code mode?
**Chat Mode** (read-only):
- AI can read your code
- Ask questions, get explanations
- Plan features
- AI **cannot** edit files
**Code Mode** (full editing):
- AI can create, edit, delete files
- Implement features
- Fix bugs
- Full project modifications
**When to use**: Chat for planning, Code for implementation
### How do checkpoints work?
**Auto-checkpoints**:
- Created after every AI operation
- Last 10 kept in memory
- Cleared on browser refresh
**Manual save** (Cmd/Ctrl+S):
- Permanent save
- Persists across refreshes
- "Discard Changes" reverts to last save
**Best practice**: Save often, especially before major changes
### Can I work offline?
**Yes, partially**:
- β
Edit files in Monaco editor
- β
Browse file explorer
- β
View live preview
- β AI generation (requires internet + API)
**Fully offline with local models**:
- Install Ollama or LM Studio
- Download models
- No internet needed for AI
### Can I collaborate with others?
**Not directly**, OSW Studio is single-user. However:
- Export projects as .osws and share files
- Use Server Mode with shared database (advanced)
- Export ZIP and collaborate via git
### How much does AI generation cost?
**Varies by provider and model**:
- **GPT-4o-mini**: ~$0.02-0.05 per request
- **Claude 3.5 Haiku**: ~$0.01-0.03 per request
- **GPT-4o**: ~$0.10-0.30 per request
- **Claude 3.5 Sonnet**: ~$0.05-0.15 per request
- **Ollama/LM Studio**: Free (local)
**Cost tracking**: View in project cards and settings (accurate with OpenRouter only)
---
## Technical
### What file types are supported?
**Text** (5MB limit):
- HTML, CSS, JavaScript, JSON
- Markdown, TXT, XML, SVG
- Handlebars (.hbs)
**Binary** (10MB images, 50MB video):
- Images: PNG, JPG, GIF, WebP
- Video: MP4, WebM
### How big can projects be?
**Browser Mode**: ~50MB total (IndexedDB quota)
**Server Mode**: Database-dependent (usually much larger)
**Recommendation**: Keep projects focused, compress images
### Does it support TypeScript?
Not directly. OSW Studio builds static sites (no build tooling). You can:
- Write JavaScript directly
- Use TypeScript playground to transpile manually
- Deploy with external build process
### Can I install npm packages?
No, OSW Studio doesn't run Node.js build tools. Instead:
- Use CDN links (e.g., unpkg.com, cdnjs.com)
- Include libraries via `<script>` tags
- Vanilla JavaScript works great
**Example**:
```html
<!-- Add React from CDN -->
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
```
### How does Handlebars work?
**Build-time templating**:
- Write `.hbs` files with reusable components
- Export compiles to static `.html`
- Not runtime (no Handlebars.js included)
**Example**:
```handlebars
{{!-- templates/header.hbs --}}
<header><nav>...</nav></header>
{{!-- index.hbs --}}
{{> header}}
<main>Content</main>
```
**Export** β `index.html` with header compiled in
---
## Deployment
### Where can I deploy my projects?
**Static Hosts** (Recommended):
- Vercel
- Netlify
- GitHub Pages
- Cloudflare Pages
- AWS S3 + CloudFront
**How**: Export β ZIP β Upload to host
### Do I need a server?
**No!** OSW Studio builds static sites that run on:
- Any web server
- CDN (content delivery network)
- Static hosting services
- Even file:// protocol (local)
### How do I setup SSL/HTTPS?
Most static hosts provide free SSL:
- **Vercel**: Automatic
- **Netlify**: Automatic
- **GitHub Pages**: Automatic
- **Cloudflare Pages**: Automatic
**Note**: Hosting providers typically include custom domain support with automatic SSL provisioning.
### What about SEO?
**OSW Studio supports**:
- Meta tags (title, description, keywords)
- Open Graph (social sharing)
- Sitemap.xml (Server Mode only)
- Robots.txt (Server Mode only)
- Semantic HTML
**You should**:
- Use descriptive titles/descriptions
- Alt text on images
- Clean URL structure
- Fast loading times
---
## Server Mode
### What's the difference between Browser and Server Mode?
**Browser Mode** (default):
- Pure client-side
- IndexedDB storage
- No authentication
- No site publishing
**Server Mode** (optional):
- Local database (no external database needed)
- Admin authentication
- Site publishing system
- Next.js routing
**See**: [Server Mode Guide](?doc=server-mode)
### When should I use Server Mode?
**Use Server Mode if**:
- You want server-side persistence
- Need site publishing features
- Building production systems
- Multi-device access
**Stick with Browser Mode if**:
- Personal use
- Quick prototyping
- Privacy-focused
- Don't need publishing features
### How do I enable Server Mode?
1. Set environment variables:
```bash
NEXT_PUBLIC_SERVER_MODE=true
SESSION_SECRET=...
ADMIN_PASSWORD=...
```
2. Run `npm install && npm start`
**See**: [Server Mode Guide](?doc=server-mode) for complete setup
---
## Troubleshooting
### Why isn't the AI responding?
**Common causes**:
1. **Invalid API key**: Check settings
2. **Rate limit**: Wait 1 minute, retry
3. **Model unavailable**: Try different model
4. **Network issue**: Check internet connection
**See**: [Troubleshooting Guide](?doc=troubleshooting)
### Files not saving?
1. Check browser console (F12) for errors
2. Try Cmd/Ctrl+S explicitly
3. Check IndexedDB quota (may be full)
4. Export project as backup
### Preview not updating?
1. Click β» refresh button
2. Hard refresh preview (right-click β Inspect β Hard Reload)
3. Save file first (Cmd/Ctrl+S)
### Lost my project?
**If you saved**:
- Projects persist in IndexedDB
- Check other browser profiles
- Import .osws backup if you have one
**If you didn't save**:
- In-memory checkpoints cleared on refresh
- Unfortunately, can't recover unsaved work
- **Lesson**: Save often!
---
## Skills & Templates
### What are Skills?
AI guidance documents injected into the system prompt. They teach the AI how to approach specific tasks.
**Built-in**: OSW Workflow, Handlebars Advanced, Accessibility
**See**: [Skills Guide](?doc=skills)
### What are Templates?
Reusable project starting points with files, structure, and metadata.
**Built-in**: Example Studios (portfolio example), Blank (minimal)
**See**: [Templates Guide](?doc=templates)
### Can I create custom Skills?
Yes! Skills are markdown files with YAML frontmatter:
1. Go to Skills view
2. Click "+ New Skill"
3. Write instructions
4. Save and enable
### Can I create custom Templates?
Yes! Export any project as template:
1. Right-click project
2. "Export as Template"
3. Fill metadata
4. Download .oswt file
5. Import into any OSW Studio instance
---
## Getting Help
### Where can I get support?
1. **Documentation**: Check relevant guide first
2. **GitHub Issues**: [Report bugs or request features](https://github.com/o-stahl/osw-studio/issues)
3. **Community**: Check GitHub Discussions
### How do I report a bug?
1. Go to [GitHub Issues](https://github.com/o-stahl/osw-studio/issues)
2. Search existing issues
3. If new, create issue with:
- Clear description
- Steps to reproduce
- Expected vs actual behavior
- Browser/OS version
- Error messages (F12 β Console)
### Can I contribute?
Yes! OSW Studio is open source. Visit the [GitHub repository](https://github.com/o-stahl/osw-studio) for:
- Code contributions
- Documentation improvements
- Bug reports
- Feature requests
---
## Next Steps
- [Getting Started](?doc=getting-started) - Create your first project
- [Working with AI](?doc=working-with-ai) - Get better results
- [Troubleshooting](?doc=troubleshooting) - Common issues
- [Server Mode](?doc=server-mode) - Advanced features
|