> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bloom.diy/llms.txt
> Use this file to discover all available pages before exploring further.

# Code Preview

> Browse and understand your generated codebase on web and mobile.

Bloom lets you browse your generated code on both web and mobile. Code files are read-only within Bloom. To edit code directly, use [**GitHub Sync**](/github-sync) or [**export your code**](/exporting-code).

## On web

Click the **Code view** button in the left panel (the second icon below Chat) to open the file browser.

<Frame>
  <img src="https://mintcdn.com/bloom-eafef039/6Jj6W1TQ2_0nANBi/images/code-preview-web.png?fit=max&auto=format&n=6Jj6W1TQ2_0nANBi&q=85&s=af8d5ee2243495cf55505eaa7be0a494" alt="Code preview on web" width="1416" height="1434" data-path="images/code-preview-web.png" />
</Frame>

The code view has two panels:

* **File tree** (left) — Browse your project's folder structure. Click any folder to expand it and any file to open it.
* **File viewer** (right) — Displays the contents of the selected file with syntax highlighting and line numbers. The filename appears in the top bar.

The toolbar at the top includes:

* **Refresh** to reload the file tree and contents
* **Copy** (top right) to copy the current file's contents to your clipboard

## On mobile

From the **More** tab, tap **View Code** to open a modal where you can browse your project files.

<img src="https://mintcdn.com/bloom-eafef039/6Jj6W1TQ2_0nANBi/images/mobile-code-preview.png?fit=max&auto=format&n=6Jj6W1TQ2_0nANBi&q=85&s=17b8ad3905589f872d8ded3a883e62a0" alt="Code preview on mobile" style={{width: '320px'}} width="1170" height="2532" data-path="images/mobile-code-preview.png" />

The code preview modal includes:

* **File dropdown** (top left) to switch between files in your project
* **Refresh** to reload the file contents
* **Copy** to copy the current file's contents to your clipboard (Starter plan and above)
* **Download** to download the file to your device (Starter plan and above)

<Info>
  The copy and download buttons require a **Starter plan** (\$20/month) or above. On the Free plan, these actions are locked.
</Info>

## What you can see

Your Bloom app is a Turborepo monorepo containing an Expo frontend and a Convex backend. The code preview gives you visibility into the full project structure:

* **`apps/default/`** — Your universal app (iOS, Android) using React Native StyleSheet
* **`apps/web/`** — Your web app using Tailwind CSS and Framer Motion
* **`packages/backend/convex/`** — Your Convex schema, functions, and backend logic
* **`assets/`** — Shared images and fonts
* **`package.json`** and **`turbo.json`** — Workspace configuration and build tasks

For a detailed breakdown of every file and folder, see [**App Structure**](/app-structure).

## What's next?

<CardGroup cols={2}>
  <Card title="App Structure" icon="folder-tree" href="/app-structure">
    Detailed breakdown of every file and folder in your project.
  </Card>

  <Card title="Export Your Code" icon="download" href="/exporting-code">
    Download your code as a ZIP or sync with GitHub.
  </Card>

  <Card title="GitHub Sync" icon="github" href="/github-sync">
    Set up bidirectional sync to edit code in your preferred IDE.
  </Card>

  <Card title="Build from Mobile" icon="mobile-screen" href="/building-from-mobile">
    Learn more about building and managing apps from your phone.
  </Card>
</CardGroup>
