# Desktop & local workflows

> Pair the ExaSpark Desktop App on macOS and Windows with Web Studio and GitHub for local project inspection, IDE workflows, backups, and team code reviews.

- Canonical: https://exaspark.ai/docs/desktop-and-local-workflows/

## Choosing between Desktop App, Web Studio, and local IDEs

**Web Studio**, **Mobile Web**, and the **Desktop App** (macOS and Windows) share one ExaSpark account, credit balance, custom domain list, and cloud project catalog. You can switch devices mid-project with zero manual transfers; see [Web, Mobile & Desktop](https://exaspark.ai/docs/where-to-use/) for an overview of every surface.

*Figure: Switch freely across Web Studio, Mobile Web, and the Desktop App while keeping one shared account, credit pool, and cloud project list.*

When you also want traditional local developer tooling—such as **VS Code**, **Cursor**, local Git branches, or offline archives—pair ExaSpark with exported snapshots from the [Official GitHub App](https://exaspark.ai/docs/code-and-github/).

| Environment | Best suited for | Strengths |
| --- | --- | --- |
| **Web Studio** (`builder.exaspark.ai`) | Fast zero-install sessions, sharing project links, and team reviews | Works in any modern browser with instant Preview, Device Lab, Cloud, Code, and Publish |
| **Desktop App (macOS & Windows)** | Focused daily building in a dedicated native window | Stays separate from cluttered browser tabs, keeps persistent sign-in, and simplifies switching across active projects |
| **Local IDE (VS Code / Cursor) via GitHub** | Deep code audits, custom automated tests, local Git branches, and external CI | Full local terminal, editor extensions, static analyzers, and offline repository backups |

## Setting up the ExaSpark Desktop App

Installing the Desktop App takes less than two minutes and requires no local compilers, runtime managers, or database servers to start building cloud projects.

1. **Download for macOS or Windows** — Install the ExaSpark Desktop App installer matching your operating system (Apple Silicon / Intel macOS or Windows).
2. **Sign in to your ExaSpark account** — Authenticate with the exact email or Google account you already use in Web Studio so your existing plan, credits, and projects appear immediately.
3. **Open a project and pick your layout** — Launch any existing cloud project or start a new one, switching cleanly between chat, **Design**, live **Preview**, **Cloud**, **Code**, and **Publish**.
4. **Move freely across surfaces** — Close the Desktop App and pick up the exact same conversation thread and version checkpoints later on Web Studio or Mobile Web.

> **Note:** Credits, published apps, custom domains, and isolated Preview and Live databases belong to your ExaSpark workspace—not a single computer. Uninstalling or switching laptops never deletes your cloud projects.

## Working with local project directories and your own IDE

Many engineers and technical founders enjoy combining ExaSpark's rapid AI build loop and managed hosting with direct inspection in **VS Code**, **Cursor**, or JetBrains IDEs.

### Opening a GitHub snapshot in a local workspace

Push a clean milestone from ExaSpark using the [Official GitHub App](https://exaspark.ai/docs/code-and-github/), then clone the repository into a dedicated local directory on your machine:

```text
# Clone your private ExaSpark snapshot repository locally
git clone git@github.com:your-org/your-app.git
cd your-app

# Inspect the project inside VS Code or Cursor
code .
# or: cursor .

# Create an isolated branch for code review notes or local checks
git checkout -b audit/security-and-types
```

Opening the codebase in a local IDE gives engineers instant jump-to-definition, global regex search across frontend and backend routes, TypeScript diagnostics, and familiar pull-request diff tools without interrupting active design work inside ExaSpark.

### Protecting secrets and environment variables locally

Because ExaSpark intentionally excludes live production secrets from pushed GitHub snapshots, running scripts or test servers locally requires creating an untracked local environment file (such as `.env.local`).

- **Never copy Live credentials to a laptop casually.** Use Stripe **test mode** API keys (`pk_test_...`, `sk_test_...`) and disposable test credentials when inspecting payment or auth flows locally; see [Testing Stripe & webhooks](https://exaspark.ai/docs/testing-stripe-and-webhooks/).
- **Confirm `.env*` is listed in `.gitignore`.** Verify `git status` never stages local secret files before committing review branches or pushing to GitHub.

## Pairing cloud hosting with local inspection and backups

You do not have to choose between fully manual DevOps and zero visibility into your code. A hybrid operating model gives small teams the highest leverage:

| Daily task | Recommended workflow | Why it works well |
| --- | --- | --- |
| **Feature builds, design polish & rapid iterations** | ExaSpark **Desktop App** or **Web Studio** | Live Preview, visual edits, and instant turn checkpoints keep iteration fast |
| **Production hosting, HTTPS & database ops** | ExaSpark **Cloud** & **Publish** | Managed Preview/Live separation, automatic SSL, and 1-click rollback remove server maintenance |
| **Code quality & security review** | **Code** tab or local **VS Code / Cursor** via GitHub snapshot | Familiar IDE navigation, diffing, and static-analysis tools verify critical server logic |
| **Compliance archiving & CI checks** | Private **GitHub** repository + local backup clones | Permanent Git history, automated linters, and independent code portability under your account |
| **Approvals & quick checks away from desk** | **Mobile Web** | Review live metrics, inspect previews, or approve Pro ad proposals on the go |

## Coordinating reviews across engineers and non-technical teammates

Mixed teams move fastest when everyone works inside a clear handoff loop rather than stepping on one another's edits.

1. **Build and validate in Preview** — Founders, designers, or product managers build a feature milestone in Web Studio or Desktop App and verify responsive screens in [Browser Device Lab](https://exaspark.ai/docs/device-lab/).
2. **Push a milestone snapshot to GitHub** — Export the verified workspace snapshot to your private repository via the Official GitHub App so engineers can review clean diffs.
3. **Audit critical boundaries locally** — Engineers open the snapshot in VS Code or Cursor to inspect role-based access controls ([Authentication & roles](https://exaspark.ai/docs/authentication-and-roles/)), input validation, database queries, and Stripe webhook verification.
4. **Apply targeted fixes in ExaSpark and publish** — Turn concise review notes into a focused ExaSpark prompt, re-verify in Preview, and click **Publish** to ship an immutable production release.

Here is an example of turning local IDE review feedback into one crisp, deterministic Agent pass inside ExaSpark:

> **Example prompt (App):** Apply these four engineering review fixes before we publish v1.2: enforce server-side admin role validation on PATCH /api/bookings/:id, add Zod schema validation on the checkout payload, index the bookings(user_id, start_time) query columns, and return clean 403 JSON errors when a non-owner attempts to cancel another user's reservation.

On **Pro** (`$25/mo` or `$20/mo` annually), up to **3 builder seats** plus unlimited free viewers can collaborate directly inside the shared ExaSpark workspace while GitHub manages external engineering access. See [Teams & permissions](https://exaspark.ai/docs/team/).

## Troubleshooting desktop and local workflows

| Symptom | Likely cause | How to resolve |
| --- | --- | --- |
| **Desktop App does not show a recent Web Studio project** | Signed into a different email or Google login on Desktop vs Web | Check your account email in Desktop App settings and sign in with the matching account |
| **Local IDE shows missing environment variable warnings** | ExaSpark excludes production secrets from GitHub snapshots for safety | Create a gitignored `.env.local` with **test-mode** keys matching the project's documented variable names |
| **Local edits on GitHub did not appear in ExaSpark Preview** | Official GitHub App exports snapshots from ExaSpark rather than merging arbitrary external commits back | Apply production fixes inside ExaSpark if hosting on ExaSpark Cloud, or deploy independently from your own CI pipeline |
| **Teammate cannot edit a shared project** | Workspace is on Free/Starter (1 builder) or teammate was invited as a viewer | Upgrade to Pro (3 builder seats) or update the member's role in [Teams & permissions](https://exaspark.ai/docs/team/) |

## Next steps

- [Inspect code & GitHub App](https://exaspark.ai/docs/code-and-github/) — Connect the Official GitHub App and push clean repository snapshots.
- [Teams & permissions](https://exaspark.ai/docs/team/) — Manage Pro builder seats, free viewers, and shared project access.
- [Web, Mobile & Desktop](https://exaspark.ai/docs/where-to-use/) — Compare every ExaSpark surface across desktop and mobile.

## From the blog

- [Frontend vs backend](https://exaspark.ai/blog/frontend-vs-backend/) — Understand the full-stack project structure you inspect locally.
- [Do you need a technical co-founder?](https://exaspark.ai/blog/do-you-need-a-technical-cofounder/) — Practical ways solo founders and engineers divide work.
- [What is web hosting?](https://exaspark.ai/blog/what-is-web-hosting/) — Why managed cloud hosting pairs cleanly with local code reviews.
