# Desktop Local surface
Source: https://docs.aden.space/docs/help/apps-integrations/desktop-local-surface

The desktop app's own screens: your DAW projects and the player on one page, plus Sync, Files, Samples and the AI DAW bridge.
{/* Generated by `bun docs:publish` from docs/features/desktop-local-surface.md: edit the spec, not this file. */}

## What it is [#what-it-is]

The Local tab is the part of the desktop app that is not the web app in a
window. It knows about this machine: the DAW projects on its disk, the folders
it watches, what has synced to it, and the audio it can play without a network.

## Using it [#using-it]

The tabs across the top are **System**, **App**, **Organisations**, **Admin**
and **Links**, centered like browser tabs. Teams stay on the left. The Aden
mark there shows connection: it floats and spins while the backend session is
coming up, then a green dot when you are connected. The speaker on the right
shows what is playing on hover.

**Windows**: the caption buttons (minimize, maximize, close) sit on the far
right. Close quits Aden. On macOS, close hides to the Dock and the menu bar.

**Two surfaces side by side**: on Links, the split control sits next to back,
refresh and home. Any surface can pair with any other.

The window is a frame with the page inside it as a card. The **rail*&#x2A; on the
left holds Aden, Files and Chat (hover one for its name), with search and
&#x2A;*•••** at its foot. Search opens the web app's palette on Aden and the desktop
palette elsewhere. ••• is the app's own menu on every surface: update, App
settings, language, sign out, and theme and zoom on its last line; a dot on it
means an update is downloading or ready. The **player** sits at the foot of the
window on every surface, under the page. The title bar keeps only the window
buttons, the address controls and the sound indicator. On macOS the frame is
translucent: the desktop shows through it, blurred, in light and dark mode.
**Frame opacity** in App settings > Appearance sets how much colour lies over
that blur, from none to solid. The settings window wears the same frost: its
rail sits on the blur and each section on a rounded card. It stays hidden
until its page has painted in that look (`settings_window_ready`), then fades
in, and fades out when closed (`main/window-fade.ts`, shared with the app
window, the launcher and popped-out windows).
**Rail density** in App settings > Appearance makes the rail compact (48px, 32px
buttons), default (56px, 40px) or roomy (64px, 44px); every rail button,
pins included, follows it.

When Aden can't be reached, an offline button appears on the rail above
Search, with an amber dot. Its tooltip says what still works (tracks on this
Mac, synced files, cloud lists as last seen); clicking it checks again, and it
goes away as soon as Aden answers.

Press **⌘S** (Ctrl+S on Windows and Linux) for **full page**: the frame slides
away and the page fills the window. Move the pointer to an edge to bring one
piece back over the page: the top for the title bar and window buttons, the
left for the rail. ⌘S again, "Toggle full page" in ⌘K, the Full page switch
in Settings > Appearance, or the exit button at the top of the peeked rail
and in the peeked title bar brings the frame back. The choice is remembered. The page card's
edges, corners and border move on the frame's curve, so it grows into the
window and shrinks back into the frame in place, height included.

Every Aden page opened from the desktop (a track's right-click menu, the
tray, Organisations and Admin, the address bar, the home button) moves the
web app with its own router when it is already on an Aden page, so the page
changes without a reload and uses what the rail already prefetched. Only a
`/frame/…` page, or a web app that has not loaded yet, loads whole.

Switching tabs fades the new one in. Projects, Folders and Files slide in
from their side of the sidebar list, and a track page slides in from the
right and back out to the left.

The System and Links sidebars share one layout, remembered on the computer.
**Hover previews** in Settings > Appearance (on by default, `lib/hover-previews.ts`) turns off every hover preview at once: rail peeks, conversation row peeks and message link cards. Resting on a rail button peeks it over the page on screen (`lib/surface-peek.ts&#x60;): Files and Chat show their real sidebar as the floating card (Files on its Files lists), and a click in it opens that surface; Aden, a pinned Aden page and a website pin whose page is open show that page live in the left third of the window, the rest faded out, where a click opens it and moving right puts the page back. Organisations and Admin peek live too, from a view of their own loaded on the first rest (the web view holds one route at a time); a pinned Aden page loads its view on the first rest; a System pin (DJ, Inbox, Samples) draws its page in place. The page on screen dims under any peek, and a peek fades out as it fades in. **⌘B*&#x2A; shows or hides them (also a two-finger swipe left, right to bring
them back). **⌘I** switches between docked beside the page and floating
as a card with a gap around it, the page starting beside it (also the sidebar button at its foot); the card's inset,
corners and shadow glide in and out with it. ⌘M stays macOS's minimize.
⌘B and ⌘I are left to text fields while you type in one. Hidden, resting the pointer on the page's left edge floats the sidebar in;
it slides off when the pointer leaves, or on Escape. Both are rows in ⌘K.
Inside the desktop app the Aden web app draws no card of its own, since the
frame already holds the page in one. It takes the app's light or dark mode as
soon as it loads: the page announces itself (`aden-ready`) once it is
listening, and the shell answers with its theme.

The team switcher lives at the top of the sidebar on every surface: the web
app's own on Aden, the shell's on System and Links, at the same inset and
height, so switching surfaces moves nothing. Inside the desktop app the web
sidebars skip their logo and search row, which the rail already has. Back and
forward sit beside the traffic lights. The middle of the title bar is one
field: on Aden and Links pages it shows the address, opens what you type if it
is an address and searches anything else; on System it opens search (⌘K).
Its controls wait for the pointer: hovered, the magnifier turns into Home
(the Aden dashboard, or Links home) and reload appears at its end. Page
settings live in the page's "…" menu. The **top rail** has two ends: left of
back and forward, where it starts with **Home**, and the far end beside
Follow-ups. It uses the side rail's buttons, a size down, with the same
active state. Drag a button along either end to reorder it, from one end to
the other, up from the side rail or back down to it; the end it would land in
lights up, and an empty one shows a slot mid-drag. Right-click works too:
"Move to top rail" and "Move to side rail". Kept per computer
(`aden:desktop:top-rail`). Home's page sits in the middle of the window.
The window opens where you left it: the rail pin, the Aden page and its
route, the System page (and which Files list), Links or the page tab you were
on, kept per computer (`aden:desktop:last-place`, `aden:desktop:files-tab`).
A pin waits for the pins to load; going somewhere first wins.

The sidebar shows **Playlists** as its own section under the pages. The
**Samples** rail page has no sidebar at all, like Home: its folder browser is
the only column it needs. Samples also sits under **Files**, as a fourth list
beside Projects, Folders and Files; both show the same library. The
**Collections** block (Projects, Recent, Playlists) is hidden for now: Home
lists projects and recent files. When shown, it folds from
its header, and the cog beside it chooses whether every chip carries a label
or only the open one, and compact or roomy rows. Projects starts with **Add
project**, the same DAW picker as the Home tile. Beside the search box sits
the filter, the same popover the web sidebar puts over its tracks: sorting,
kind, DAW, file type, when it last changed and which folder it sits in, each
a headed section with its own reset, and Clear all in the footer.
DAWs and project file types show the installed DAW's own icon, or its drawn
logo when it is not on this Mac.

A project in the sidebar is the same as on Home: right click for the same
actions (`components/projects/ProjectActions.tsx` renders both), the cloud
badge with its sync state when it belongs to a track, and hidden or other-team projects left out.

One bar at the foot of the window shows what is playing, on every tab, in the
same place under the sidebar and the page. It is the web app's bar, the same
components, not a copy of them: `@aden/ui/components/player-bar` holds the
layout and the transport and `@aden/ui/components/player-queue-panel` holds the
queue, and each app passes in what differs. The chevron grows the bar into the
full player, in place, on every tab: the bar goes away and its cover and title
morph into the player's (a view transition, skipped under reduced motion). It
is capped to about three quarters of the window so a video never pushes the
page off the screen, and the chevron in its corner shrinks it back. It is not a
second player, only a view of the one that owns the audio, and there is never
a bar and a player on screen at once.

**Two players, one bar.** Sound can come from this computer (the player above)
or from the web app (a track played on Aden). Whichever starts last pauses the
other and takes the bar; a small drive or globe icon before the second line
says which one it is. The web app draws no bar of its own inside the desktop
app: it reports its player to the shell (`aden-player-state`) and takes
play, pause, skip, seek and volume back (`aden-player-command`), while the
audio stays in the web app. Its queue opens inside the web app, so the queue
button brings the Aden tab forward first, and the title opens the track's page.
The web app's per-track actions menu is not on the shell's bar: open the track
for those.

**Home** opens on your projects and recent files as widgets on the web
dashboards' grid (`DashboardWidgetGrid`): drag one by its title, resize it
from its edges, right click its title to remove it, and bring it back from
**Add widget** under the grid. The layout sticks per machine
(`lib/home-grid.ts`, `aden:home-grid`). Each widget searches from the
magnifier beside its title, and its filter and cog show on hover; a filter in
use, or a folder picked by hand, keeps its button visible. The team switcher
the sidebar holds on other pages sits at Home's top left. Recent carries it too, next to its
**Synced** toggle: it replaced the strip of format chips, which could only
ever filter by extension. A file's row menu has **Add to Aden** as a submenu:
new version of a track, track documents, album documents (each a picker with
covers, the web's own picker rows), or team files straight away. Each tile is
a real project file with the icon Finder gives it, so an `.flp` and an `.als` are told apart at a glance. Click
one to open it in its DAW.

The filter itself is `components/shell/LocalFilterDropdown.tsx` over
`lib/local-filters.ts` (one state shape, one `applyLocalFilters`), built from
`@aden/ui/components/filter-sections`: the section heading, grid item, choice
grid and Clear all the web's track, album and playlist filters already use.
Those primitives moved out of `apps/web/components/entity-list/` so both apps
render the one implementation; the web file now only supplies its
translations.

* **New project** is the first tile. It launches an app on an empty session:
  every DAW opens on a blank project when started with no document, so starting
  one is launching the app. With one music app installed it goes straight
  there; with several it opens a searchable list showing each app's own icon,
  and &#x2A;*Choose an app…** at the bottom takes anything the scan missed.
* **The gear** holds everything about how the list is built: **Show as** (rows
  or tiles) and **Where to look** (across the machine by default, most recent
  first, or one folder you pick). Search sits beside the heading it filters,
  not at the far edge.
* **A zipped session is a project.** A `.zip` holding an `.flp`, an `.als` or
  any other session file is listed under the name of the file inside it, so the
  producer who zips everything before sending it still sees their work. A zip
  of samples is not listed. Opening one shows it in Finder or Explorer rather
  than unpacking it.
* **A project open in your DAW right now** carries a green dot and "Open", on
  Home and in the sidebar.
* **A project linked to a track** carries a cloud badge, on the corner of its
  tile, at the end of its row, in the sidebar and in Recent. The badge says how
  the sync stands: a green check when synced, an arrow while uploading or
  before the first upload, a plain cloud when auto-sync is off, amber when the
  last sync failed. Hover it for the track's name and when it last synced;
  click it to open the track. No badge means the project is only on this disk.
  It updates live as a push starts, lands or fails (`track_folder_event`).
  **Sync now** in the project's menu pushes it again, off while a push runs.
* **A project's menu** (hover a tile) opens it in its DAW, shows it in Finder,
  starts or links a track, or sends it as a transfer.
  * **Start track** (projects not linked yet) puts the project's card at the
    front of Suggested and scrolls to it: the same card an export gets, with
    the title, status, tags, audio export and folder choice.
  * **Link to a track** opens Files, Folders with the track picker for the
    project's folder already open. It used to land on Files, Projects, where
    the picker never mounted, so nothing appeared.
  * **Send as a transfer** zips the project's folder and gives you a link that
    expires in 30 days. It shows the folder's file count first, and when that
    count says the folder holds little more than the project file it names
    your DAW's collect-all export ("File > Collect All and Save" and so on)
    and tells you to run that first. A project file points at its audio by
    absolute path: zip it alone and it opens on the other machine with
    everything missing.

The sidebar lists your last few projects under the navigation, the way the web
app lists tracks in its own. Clicking one opens it in its DAW.

**Recent** is under the projects, and it is everything: bounces, sessions,
zipped sessions, whatever moved on this disk lately. Other files join when
their name says they belong to a release: a royalty statement, a banner, a
cover or the music video, as a whole word and in a document, image or video
format, so you can add them to a track from the same list. Code checkouts
(a folder with `.git`) and zips without a session inside stay out, so a
`COVERAGE.md` or a `…_banner.sql` migration never shows. A bounce, the session it came from
and the zip you sent a collaborator are one afternoon's work, so they are one
list. **Synced** narrows it to the folders Aden syncs (the team folder and
every track folder), which is "what changed in the work I share"; the chips
filter it by format, several at a time. Clicking a row plays it
(or opens it, for a session), and the artwork is the play button: the icon
crossfades in on hover where your eye already is. Add to queue and Show in
Finder sit at the end of the row, and right-clicking gives the same actions in
words plus Copy path. Its gear holds **Show as** (rows or columns) and which
folders it reads: left alone
it reads Music, Downloads and Desktop, which for most people is every audio
file on the machine and almost none of it theirs. Add a folder and it reads
that one instead; add one under **Skip** to keep a sample library or a cloud
mirror out.

The full player is the bar, grown: cover on the left, then the title, the
actions and the waveform in one column beside it. **A/B**, the **loudness
readout*&#x2A;, the &#x2A;*…** menu and the shrink chevron sit in the top-right rail.
The transport is one symmetrical row (shuffle, previous, back 15s, play,
forward 15s, next, repeat) with the queue and volume at its right end, where
the bar had them. The queue opens under the player. Clicking the waveform
plays from there, even on a launch where nothing has loaded yet.

Hovering the loudness readout explains M, S and I; clicking it opens **EQ,
speed, pitch and mono**. That is the web player's own panel, not a copy: the
desktop hands its audio element to the shared audio store, so both surfaces
run the same graph and the same controls.

It has no History or Browse tabs any more: history
was a list nobody opened, and Browse pointed at a folder that Recent now
covers. The queue is not here either: it lives in the bottom bar, the way it
does on the web.

**Files** is everything about this team on this machine, and it asks one
question first. Sync and Files used to be two tabs answering the same
question: Sync owned the folder and the tracks, Files owned the list of files
inside it, and neither made sense without the other.

Until the team has a folder on this Mac, that question is the only thing on
the page: pick a folder, and Aden keeps this team's projects there and pushes
your changes back as you save. Everything below it needs that folder to exist,
so nothing below it is shown yet.

Once it is set, one card holds the folder: the path (click it to open in
Finder), what the folder holds (bytes and files, measured by walking it, per
team), how many track folders are linked to that team, when it last synced,
and what is being synced. The size is the folder as it is on disk, not the
sum of what sync downloaded: that number ignored files pulled by another Mac,
put there by hand, or linked in place, and read as 47 MB for a folder holding
a 795 MB project. `main/folder-size.ts` walks it (no symlinks, depth 24,
200,000 files, cached a minute, dropped when a sync run writes), behind
`sync_get_folder_size`. A track card's own "126 files, 795 MB in Aden" is the
cloud total from `track_projects`, which is why it says in Aden. **Sync now** sits in the same card, and
its dropdown holds everything else about that folder: what gets synced, **Live
sync**, **Sync settings**, **Change folder** and **Stop syncing this folder**.
It used to be a folder row, a separate controls row and a status line under
that: three places to look for one thing, with an **Open** button next to a
path people already read as a link.

Under it, two tabs, because tracks and files are two lists of the same folder
and stacking them meant scrolling a screen of files to reach the board:

* **Tracks** is the board and the linked folders, with the web tracks page's
  own **Filter** and **Display** popovers (`@aden/ui/components/track-filters/`,
  see `tracks.md`): the same search box with AI search, the same facets
  (sorting, years, months, genres, tags, BPM, key, language, for sale, label,
  distributor, visibility, status, priority, date range, saved presets) plus
  two sections only this Mac can answer, **On this Mac** (synced here / cloud
  only) and **DAW**. Natural-language filter previews read individual genre
  strings from both local tracks and the API's genre arrays, using the board's
  shared field accessor. Licensing, pitches and access render with a reason
  ("Not available in the desktop app yet") rather than disappearing. Layouts
  are **Recent** (one row per track in date sections, the default), **Board**,
  **List** and **Table**; the board groups by status, by tags, genre, label,
  visibility or priority (the web's value-columns board, read-only here) or by
  **On this Mac** vs **In the cloud**; the list nests a second field under
  status. &#x2A;*The card is the web's card.** Board, list and recent rows draw
  `TrackCard` (`@aden/ui/components/track-card/`), the same component the web
  tracks page renders, so Display's card fields are the web's (cover, audio
  player, priority, genre, tags, ISRC, BPM & key, language, release date,
  collaborators, label, versions, dates), each one adding the same row to the
  same card, with **Show empty fields** and **Cover as background** behaving
  as on the web. Four fields only this Mac can fill sit at the end of the
  picker: **On this Mac** (folder name and sync state), **Files**, **Size**
  (the cloud totals, labelled "in Aden") and **DAW**. Fields the desktop list
  has no data for (tasks, release plans, submissions) stay empty and, with
  Show empty fields, link into the web tab; inline editing is the web's, so
  the desktop shows plain values and an empty row opens the track's page in
  the web tab. The desktop's own controls ride the card's slots: the play
  button, and the **On this Mac** row, which is the sync control itself
  (one state icon, click to sync or stop) with **Add files** beside it.
  Filters are session state; layout, sort, grouping, card fields and the
  desktop fields persist per Mac (`trackprojects_display`). The
  facets come off the team track list (`GET /api/v1/tracks`, which now also
  carries `for_sale`); AI search goes through `POST /api/v1/ai-search/tracks`
  behind the `ai_track_search` IPC channel.
  The card's play button plays the newest audio in the track's folder when it
  is on this Mac, otherwise its final or latest version streamed from Aden
  (from the `audio_url` the track list already returns); the table keeps the
  cover-as-play-button too. A streamed version draws the waveform the API stores with it, as on
  mobile, instead of downloading the file to decode it. R2's CORS rule does not
  list the desktop's origins, so `src/main/storage-cors.ts` adds
  `Access-Control-Allow-Origin` to R2 GET responses in the app window and the
  player loads them with `crossOrigin`. Without it the EQ/LUFS graph heard
  silence and streamed versions played muted.
  Clicking "In the cloud only" on a
  card (tooltip: **Sync to this Mac**) makes that track a folder inside the
  team folder, pulls down whatever
  the cloud already has for it, and pushes what you save in it from then on;
  the card then reads **On this Mac*&#x2A; and a toast says how many files landed.
  Clicking the row again stops syncing and unlinks the folder, leaving the
  files. The &#x2A;*+** beside it copies files into that folder, and is only
  offered once the track has one. The table's **Where** cell is the same
  toggle. With the **On this Mac** field on, each card says whether the
  track is on this device: a green monitor with the folder's name, or "In the
  cloud only". The status is not repeated on the status board, because the
  column it sits in is the status; the location and value boards add it as a
  row, as the web does.

  One control answers that question, and it reads both halves of "local": the
  folder mapping the main process owns (`track_folder_list`) and the projects
  watcher this screen keeps in localStorage. The card used to carry two, a
  cloud-download icon by the title driven by the first and a button driven by
  the second, so a track with a linked folder showed a green check beside a
  "Sync to this Mac" button, and one with the watcher on but no folder showed
  a cloud icon beside "Synced". Open a
  track and **Compare** is there: pick two versions and hear them against each
  other, the same panel, picker, meters and audio engine the web app uses.
  **Track folders** below it are folders you already have, each linked to one
  track. **Add folder** picks one and then asks which track it is, with **No
  track yet, create one** in the same dialog. Dropping an `.flp` or `.als` on
  the app asks the same question. **New track** makes the track and its
  folder in the team's sync folder at once (`create_track_in_sync_folder`);
  whatever is saved there syncs to the track. The first-run sync setup says
  the same: one Aden folder, a folder per track, offline or online-only, and
  collaborators on Aden desktop kept in sync.
* **Files** is everything Aden has for this team, whether or not it is on this
  Mac. A monitor icon means the file is here, a cloud icon means it is not.
  Search it, filter to On this Mac or In the cloud, and each row can be
  downloaded, shown in Finder, or removed from the disk (the cloud copy stays).
  **Recently synced**, **Watched folders** and **Storage on this device** are
  collapsed under it.
* **A file that is only in the cloud** shows in Finder and Explorer as a page
  with a cloud on it. Open it (or pick any Aden action on it) and Aden shows
  a preview of the real file, straight from the cloud, without downloading
  it. **Download and open** puts it on this computer and opens it in its app.
* **Open in …** opens a file or folder on this computer in the app you pick.
  The file viewer and a local track's folder show it as a button: **Open in
  Preview**, with every app that opens it behind the arrow, DAWs and other
  music apps first, then Show in Finder and &#x2A;*Choose another app…**. The app
  you pick is remembered for that kind of file, and ⌘O opens with it in the
  viewer. Project menus on Home, in the sidebar and on a track's projects,
  and the right-click menu on a file, have the same list under **Open with**.
  On Windows the list is your installed DAWs and music apps.

**Match local exports to tracks**, the one-off import that turns a folder of
MP3/WAV exports into final versions, lives in Settings under Import, and in the
command palette.

**Samples** is the sample libraries (see the sample-libraries spec).
**AI DAW** is the local MCP bridge.

**Scale the app** with Cmd/Ctrl and `+`, `-` or `0`, or from **Zoom** in the
team switcher. It scales every Aden window and survives a restart.