FolioFolioDocs

Create an app

In Folio, an app is just a folder on your shared drive. You do not need to deploy a backend, provision a database, or wire up authentication. The fastest way to create one is to describe the tool you want to a coding agent on a branch, test it live inside Folio, and merge it to main when it is ready for your team.

The 30-second mental model

Every Folio app folder has three parts:

  1. manifest.json: declares the app's name, which folders it can read or write, where it can be opened from, and any background jobs it is allowed to start.
  2. A web UI (such as index.html built from React or TypeScript): runs inside Folio's sandboxed frame and uses the Folio frontend SDK to read files, watch versions, and trigger jobs.
  3. An optional background worker (such as backend/worker.py): runs heavier compute or CLI tools like ffmpeg on a worker when a user kicks off a job, then publishes the output files back to the workspace.

Simple viewer or editor apps only need manifest.json and a web UI. Add a worker only when you need server-side processing, CLI tools, or external API calls.

Build an app in five steps

1. Create a branch

Start a new branch (for example, build-contact-sheet) before writing any app code. Developing on a branch keeps unfinished tools off main so your teammates never see broken changes while you iterate.

2. Open an agent session on that branch

Launch a Claude Code or Codex session on your branch from Agent sessions, or mount the branch locally via Connect your Mac if you prefer editing from your laptop.

If your app's worker will call an external API, add the key once in Keys so the workspace has access to it.

3. Describe the tool and point the agent at the Folio specs

You do not need to memorize Folio's manifest format or SDK hooks yourself. Tell your agent what files the app should work on, what controls you want in the UI, and what outputs it should save, then point it at Folio's builder docs so it writes valid code on the first try:

Prompt starter for Claude Code or Codex
Build a Folio app in this branch called "Contact Sheet".
- Open it on any folder of images.
- Show a grid preview of the current images in the folder.
- Add a button that runs a background job to export a 4x4 contact-sheet.png into the same folder.

Follow Folio's app conventions:
- Manifest format and permissions: /apps/manifest
- Frontend SDK (@planar/frontend-sdk): /apps/sdk
- Full reference example (UI + Python worker): /apps/sketch

Because app code lives on the shared drive, agents can also inspect any existing apps in your workspace and reuse their patterns directly.

4. Test the app on your branch

Switch the File Browser to your branch and open your new app on a real folder of files.

  • Verify that reads, saves, and version history behave the way you expect.
  • If the app runs background jobs, open Tasks in the title bar to watch the job run and confirm the outputs land in the right folder.
  • Ask the agent to refine the layout, fix edge cases, or adjust permissions until the workflow feels right.

5. Review permissions and merge to main

When the app works cleanly, open Review and merge for your branch:

  • Check manifest.json to make sure the app only requests access to the folders and operations it actually needs (see App permissions).
  • Merge the branch to main.

As soon as it lands on main, the app is installed and available to everyone in the workspace.

Updating an app later

Once an app is on main, Folio prevents it from modifying its own source code at runtime. Whenever you want to add a feature or fix a bug, repeat the same loop: make a branch, update the app with an agent or your editor, test it on the branch, and merge it back to main.

For developers and coding agents

When you (or your agent) need the exact technical details, use the Technical Spec section:

  • Data model: how folders, files, and entity metadata work like a structured database.
  • Porting apps: step-by-step patterns for wrapping a CLI tool (ffmpeg, qmd, scripts) or SQLite-backed app.
  • Example app: Sketch: a complete, annotated app covering React UI, local SQLite state, and a Python worker.
  • SDK reference: @planar/frontend-sdk hooks and methods for files, versions, entities, and jobs.
  • The manifest: exact manifest.json fields, slot permissions, and job declarations.