# Glossary & core concepts

> Decode core ExaSpark and full-stack software terms in plain English — from Preview isolation and relational tables to webhooks, DNS, rollover credits, and .aab bundles.

- Canonical: https://exaspark.ai/docs/core-concepts-glossary/

## How to use this glossary

You do not need a computer science background to ship real cloud software, yet knowing what twenty core terms actually mean makes every prompt sharper and every launch calmer. Keep this reference handy whenever an unfamiliar term appears in chat, **Cloud**, or your domain registrar.

| Concept group | What it governs | Primary place in ExaSpark |
| --- | --- | --- |
| **Studio & Agent** | Turns, modes, Design Canvas, choice cards, click-to-edit, Undo | Left chat rail, **Design**, and **Preview** |
| **Data & Security** | Relational tables, foreign keys, auth providers, RBAC, row privacy | **Cloud** panel and backend APIs |
| **Publishing & DNS** | Preview vs Live, atomic deploys, rollbacks, DNS records, SSL | **Publish** popover and domain settings |
| **Payments & Mobile** | Stripe Test vs Live, webhooks, Device Lab, Android QR, `.aab` | **Payments**, **Device Lab**, and mobile export |
| **Plans & Ownership** | Daily credits, rollover, app-running pool, Official GitHub App | Billing settings and **Code** / GitHub |

## Building and workspace concepts

### Turn

One complete exchange with the ExaSpark Agent: reading live project state, updating UI, APIs, and **Cloud** schema together, verifying **Preview**, and saving a checkpoint. Scoping one milestone per turn produces cleaner code.

### Build modes

Six specialized workflows inside one project: **App**, **Web**, **Design**, **Image**, **Video** (Pro 10-second audio launch reels), and **Slides**. Brand tokens carry seamlessly across modes. See [Build modes](https://exaspark.ai/docs/modes/).

### Design Canvas and design tokens

An interactive board for comparing visual directions side by side before coding backend logic. Adopting one concept freezes **design tokens** — colors, typography, and spacing — across all later screens. See [Design Canvas](https://exaspark.ai/docs/design-canvas/).

### Choice cards and click-to-edit

- **Choice cards.** Non-blocking cards posted in chat whenever an open product decision needs your input (such as guest checkout versus required sign-in). Pick an option or reply with your own rule.
- **Click-to-edit.** Direct visual editing inside **Preview** or **Design** to change wording, colors, or spacing inline without a full chat turn.

### Turn checkpoints, Undo, and Ask AI to fix

Every finished turn saves an immutable restore point; clicking **Undo** reverts code and config cleanly in one click. Whenever **Preview**, publishing, or an Android build fails, click **Ask AI to fix** to hand the exact stack trace to the Agent. See [Checkpoints & undo](https://exaspark.ai/docs/checkpoints-and-undo/).

## Data, accounts, and security concepts

### Relational database

Structured cloud storage organizing records into linked **tables** (`users`, `products`, `orders`) with typed **columns** and **rows** instead of unstructured blobs. Every ExaSpark project includes a managed relational database automatically. See [Accounts & database](https://exaspark.ai/docs/accounts-and-data/).

### Foreign key

A column (such as `bookings.user_id`) linking a row in one table to a specific record in another table (`users.id`). Foreign keys keep customer profiles, orders, and schedules consistent everywhere without duplicating data.

### Authentication and 19+ providers

Verifying who a user is before opening private screens. ExaSpark Cloud supports email/password, magic links, and `19+` sign-in providers (such as Google, Apple, and GitHub) with encrypted server sessions.

### Role-based access control (RBAC)

Assigning each account a role (`member`, `staff`, `admin`) and enforcing permissions strictly on the server. Hiding a button in the UI is cosmetic; server RBAC checks actually protect restricted actions. See [Authentication & roles](https://exaspark.ai/docs/authentication-and-roles/).

### Server-enforced row-level privacy

Backend checks ensuring signed-in users can read or edit only rows they own (`orders.user_id === currentUser.id`) unless they hold an elevated staff or admin role. See [Row-level data privacy](https://exaspark.ai/docs/row-level-data-privacy/).

### Public vs private file storage

**Public assets** (logos, product photos) load rapidly for all visitors. **Private files** (invoices, ID uploads, paid downloads) stay locked behind server checks and short-lived signed links. See [File storage](https://exaspark.ai/docs/file-storage/).

## Environments, publishing, and domains

### Preview vs Live isolation

Every project runs two completely isolated worlds. **Preview** updates every turn with disposable test data and Stripe Test mode. **Live** serves real customers on `.exaspark.app` or your custom domain and never changes until you click **Publish**. See [Preview vs Live](https://exaspark.ai/docs/preview-vs-live/).

### Atomic release and rollback

Clicking **Publish** swaps your live site to an immutable, fully verified build at once — visitors never see half-updated screens. Any prior release stays one click away for instant rollback.

### Custom domain, DNS, and automatic SSL

Connecting your own domain on **Starter** or **Pro** requires adding short DNS records at your registrar, after which ExaSpark automatically provisions and renews **HTTPS / SSL** padlock certificates:

```dns
@     A      <provided-ip-address>     # Root domain
www   CNAME  <provided-target-host>    # Subdomain
@     TXT    "v=spf1 include:<host> ~all"  # Branded email auth
```

### Branded email and SPF / DKIM / DMARC

Sending receipts and login links from your own domain on **Starter** (`1,000` emails/month, 1 custom domain) or **Pro** (`10,000` emails/month, 3 custom domains). **SPF**, **DKIM**, and **DMARC** prove to Gmail and Outlook that your emails are genuine. See [Branded email](https://exaspark.ai/docs/branded-email/).

## Payments, mobile, and growth concepts

### Stripe Test mode, Live mode, and webhooks

Stripe **Test mode** (default in **Preview**) accepts fake cards (`4242 4242 4242 4242`) with `$0` charged; **Live mode** charges real cards and pays your bank. A **webhook** is Stripe's automated server-to-server confirmation (`checkout.session.completed`) that reliably unlocks paid access even if a buyer closes their browser early.

### 0% ExaSpark platform fee

ExaSpark takes `0%` commission on sales processed through your app's Stripe checkout on Free, Starter, and Pro. Only Stripe's standard card processing fees apply.

### Browser Device Lab, Android QR, `.aab`, and iPhone install

- **Browser Device Lab.** Built-in viewport tester displaying **iPhone**, **Pixel**, **Galaxy**, and **foldable** frames. See [Browser Device Lab](https://exaspark.ai/docs/device-lab/).
- **Android QR vs `.aab`.** Scan a **QR code** to install directly on Android hardware for fast testing; export a signed **`.aab` (Android App Bundle)** on **Starter** or **Pro** for Google Play Console submission.
- **iPhone Add to Home Screen.** iOS visitors open your published HTTPS link in Safari, tap **Share**, and pick **Add to Home Screen** for a full-screen icon without App Store review delays.

### Approval-only Ads and ROAS (Pro)

Exclusive to **Pro** (`$25/mo` or `$20/mo` annually), ExaSpark drafts Google and TikTok ad campaigns and measures **ROAS (Return on Ad Spend)** against real Stripe revenue. Nothing spends budget without your explicit approval. See [Google & TikTok Ads](https://exaspark.ai/docs/google-ads/).

## Billing, credits, and code ownership

### Free allowances vs Starter and Pro rollover

- **Free (`$0/mo`).** `4,000` welcome credits + `1,000` daily credits when you open ExaSpark (**Free-only**, valid that day) + a dedicated `5,000/month` **app-running pool** keeping up to `5` published apps online.
- **Starter & Pro rollover.** Paid plans replace daily Free grants with a unified monthly credit balance (`20,000` or `36,000` on **Starter** from `$4.99/mo` or `$3.99/mo` annually; `60,000` to `1,250,000` on **Pro** from `$25/mo` or `$20/mo` annually). Unused monthly credits **roll over 1 billing cycle**.
- **Seats.** **Builders** edit and publish (`1` seat on Free/Starter; `3` seats on Pro); **Viewers** are always free and unlimited.

### Official GitHub App

ExaSpark's official, repo-scoped GitHub integration for exporting and pushing clean source-code snapshots into your personal or organization repository. You keep full IP ownership for backups, code review, or local IDE handoff without exposing account-wide tokens. See [Inspect code & GitHub App](https://exaspark.ai/docs/code-and-github/).

## Common concept mix-ups

| Confused pair | First concept | Second concept | Practical takeaway |
| --- | --- | --- | --- |
| **Preview vs Live** | Test workspace with isolated DB and Stripe Test mode | Public production app with real users and Live Stripe | Test rows in **Preview** never appear on **Live** automatically |
| **Undo vs Rollback** | Reverts workspace code one turn in **Preview** | Restores a prior published release on **Live** | Use **Undo** while building; **Rollback** after publishing |
| **Android QR vs `.aab`** | Direct test install link for Android phones | Signed bundle required by Google Play Console | Test via QR on any plan; export `.aab` on **Starter**/**Pro** |
| **Free daily vs Rollover** | `1,000/day` Free-only grant expiring daily | Monthly **Starter**/**Pro** pool rolling over 1 cycle | Paid plans consolidate creation and hosting into one rollover pool |
| **Platform vs Stripe fee** | ExaSpark's commission on app sales (`0%`) | Stripe's standard card network processing fee | You pay Stripe's normal processing fee with zero ExaSpark markup |

## Next steps

- [How ExaSpark works](https://exaspark.ai/docs/how-exaspark-works/) — Trace how one prompt updates UI, APIs, database tables, and checkpoints together.
- [Frontend vs backend guide](https://exaspark.ai/docs/frontend-vs-backend/) — Learn what runs in the browser versus on the server and why.
- [Plans & credits](https://exaspark.ai/docs/plans-and-credits/) — Compare Free, Starter, and Pro allowances, seats, and rollover rules.

## From the blog

- [What is a database?](https://exaspark.ai/blog/what-is-a-database/) — Plain-English guide to tables, rows, keys, and why structure matters.
- [What is a domain name?](https://exaspark.ai/blog/what-is-a-domain-name/) — How domains, registrars, DNS records, and SSL certificates connect.
- [What is an API?](https://exaspark.ai/blog/what-is-an-api/) — Understand how screens, backends, webhooks, and external services talk.
