FDL — Folium Design Language
A declarative language for designing user interfaces for mobile and web.
FDL lets you describe screens, navigation, and data interactions in a clean, readable syntax. This extension provides full language support for .fdl files in Visual Studio Code.
© inecta llc
Getting Started
Part 1: Install Prerequisites
These are third-party tools that Folium depends on but are not part of Folium itself.
Let Claude do this part. Open Claude Code and paste:
Install all Folium prerequisites following the FDL extension README.
If any step fails, give Claude the error output to diagnose and fix.
1. Install required software
Flutter SDK — install from flutter.dev/get-started/install or run in PowerShell:
cd C:\
git clone https://github.com/flutter/flutter.git -b stable
Google Chrome — install from google.com/chrome
Google Cloud CLI (gcloud) — install from cloud.google.com/sdk/docs/install
Azure CLI (az) — install from learn.microsoft.com/cli/azure/install-azure-cli. The Folium SDK downloads with it, and the foliumctl admin dev-access commands use it.
Important: This is the cross-platform az command (the Azure CLI). It is not the same as the PowerShell Az module (Install-Module -Name Az). foliumctl shells out to az directly — the PowerShell module will not work. Verify with az --version, not Get-Module Az.
On Windows, install via MSI or:
winget install -e --id Microsoft.AzureCLI
On macOS:
brew install azure-cli
After installing, add Flutter to your system PATH permanently:
- Open Settings > System > About > Advanced system settings
- Click Environment Variables
- Under User variables, edit Path
- Add
C:\flutter\bin
- Click OK and restart your terminal
The FDL extension auto-resolves the Dart SDK from this PATH; no additional configuration is required for the language server.
Enable Developer Mode (Settings > Developer Settings) — required for symlinks.
macOS
Add to ~/.zshrc:
export PATH="$HOME/flutter/bin:$PATH"
Then run source ~/.zshrc.
2. Verify installation
Open a new terminal and run:
flutter --version
dart --version
gcloud --version
az --version
If any command is not recognized, the tool is not on your PATH. Claude can diagnose and fix PATH issues — paste the error output and ask Claude to update your PATH.
3. Authenticate with Google Cloud
gcloud auth login
Your Google account must have the Secret Accessor role on the inecta-folium GCP project. If you get a permissions error, ask your admin to grant access.
4. Authenticate with Azure
az login
At the tenant and subscription prompt, select Pay-As-You-Go under the inecta tenant.
Part 2 downloads the Folium SDK under this sign-in. Your Azure account must be in the Folium Developers Entra group — ask a Folium team admin if you get a permissions error.
Folium team only: foliumctl firebase-users and foliumctl admin setup-project-infrastructure reach Azure Key Vault through a foliumctl sign-in — run foliumctl auth login user after Part 2. They need Get on secrets in inectascripkeytvault's access policy (Set too for firebase-users init and setup-project-infrastructure), granted by a Folium team admin.
Part 2: Install the Folium SDK
The Folium SDK must be installed via the VS Code extension command to ensure it is placed in the correct location.
Open the Command Palette (Ctrl+Shift+P) and run:
Folium: Install Folium SDK
The status bar should show the foliumctl version once installation finishes, and foliumctl becomes available in any terminal you open from VS Code. You're now ready to work with Folium projects.
Part 3: Start a New Folium Project
Follow these steps if you are creating a brand-new project.
1. Create the project
Open the repository in VS Code first. The command creates the Folium project at <repoRoot>/folium_app/ (regardless of where inside the repo you invoke it from), requires the workspace to be inside a git repository, and refuses to overwrite an existing Folium project. In a multi-root workspace you will be prompted to pick which folder to initialize.
Open the Command Palette (Ctrl+Shift+P) and run:
Folium: Init Project
The command asks two questions, both prefilled: the project name, offered as the repository's origin remote name uppercased; and the Google Cloud project ID, offered as inecta-folium-dev, inecta's shared dev project.
On success, if the workspace folder you selected isn't already the repo root, you'll be offered Open Folder to open it.
The new project holds no credentials. Create an environment, which prompts for the credentials the project's connection mode needs:
foliumctl env create <name> --bc-env <bc-environment>
| Mode |
When to Use |
Credentials You'll Need |
rte |
On-premise BC |
RTE base URL, tenant, proxy username, proxy password |
proxy |
Legacy — valid for already-deployed apps, not produced for new projects |
BC tenant ID, environment, OAuth client ID, OAuth client secret |
direct |
BC Cloud directly |
Cloud direct base URL, BC tenant ID, environment, OAuth client ID, OAuth client secret |
The mode itself is connectionMode in folium_app/folium.json, which defaults to proxy.
3. Run the app
Open the Command Palette and run:
Folium: Build and Run (Web)
This builds the project and launches it in Chrome. Hot reload: press r in the terminal. Quit: press q.
Part 4: Set Up an Existing Folium Project
Follow these steps if you are joining a project that has already been created.
1. Clone and open the project
Clone the project repository and open it in VS Code. The extension looks for a Folium project in two places: the workspace folder root (for standalone Folium projects) or a folium_app/ subdirectory (the convention for client repos that keep their Folium project alongside other source code like BC AL extensions). Open whichever folder contains one of those, and the extension activates automatically.
2. Generate domain packages
Open the Command Palette (Ctrl+Shift+P) and run:
Folium: Generate Domain Packages
This fetches BC metadata and populates the domain-package cache. The build reads that cache, so it must run first on a fresh clone.
3. Run the app
Open the Command Palette and run:
Folium: Build and Run (Web)
Hot reload: press r in the terminal. Quit: press q.
Day-to-Day Workflow
- Edit
.fdl files
- Folium: Build and Run (Web) from the Command Palette (builds automatically), or Folium: Build + hot reload with
r in the existing terminal
If BC API pages change, run Folium: Generate Domain Packages before building.
Running on a device
Folium: Build and Run (Android) and Folium: Build and Run (iOS) each build the project, then launch it on a connected device, emulator, or simulator of that platform — installing directly when exactly one is found, or prompting with a picker when several are. Hot reload, hot restart, and console logs behave as they do in Chrome.
The Android command needs the Android SDK installed, and either a running emulator or a device with Developer options and USB debugging enabled — see Set up an Android device. The iOS command needs macOS with Xcode; run it on Windows or Linux and it reports that iOS runs aren't available on this operating system.
Microsoft sign-in works natively on a device. Android builds are signed with the development key bundled in the SDK, whose redirect URI is registered on the app registration.
A physical device reaches the network on its own, so it cannot resolve a gateway published on the workstation's localhost. Point the device at a deployed gateway, or at a workstation address that is routable from the device's network.
Framework package versions move with the SDK — foliumctl pins folium_core and folium_ui_kit itself. To update them, install a newer Folium SDK (Folium: Install Folium SDK), then run Folium: Build.
To refresh the bundled project docs and skills, run Folium: Update Project Docs. It fully regenerates the docs/ directory (deleting it first so files removed from the SDK don't linger as stale content); CLAUDE.md and .claude/ are overwritten in place, preserving any of your own skills alongside the bundled ones.
Features
- Syntax highlighting
- Intelligent autocomplete with context awareness
- Real-time validation and diagnostics
- Hover documentation
- Go-to-definition
- Compile to code from the command palette
UI Components
FDL provides a rich set of declarative components for building app interfaces.
Screens & Views
| Component |
Description |
card |
Detail/form view for viewing and editing a single record |
list |
Scrollable list of records with search and filtering |
dataGrid |
Tabular data grid with columns — editable, or read-only per grid or per column |
document |
Master-detail view combining a header card with a lines grid |
groups |
Records organized into collapsible groups |
Data Visualization
| Component |
Description |
chart |
Pie, bar, and line charts with aggregation and tap navigation |
gantt |
Timeline view with date ranges, progress tracking, and time scale options |
board |
Kanban-style board with rows, columns, and drag-and-drop support |
kpi |
Key performance indicator displaying an aggregated value |
Navigation & Structure
| Component |
Description |
menu |
Drawer-style navigation menu |
menuRail |
Side rail navigation menu |
tile |
List item template defining how a record appears in a list |
groupTile |
Group header template for grouped views |
App-Level
| Component |
Description |
app |
Application configuration (domain, title, theme, supportedDevices) |
profile |
User profile screen with company and language settings |
login |
Authentication screen |
cache |
Response cache policy — top-level (cache EntityType { ... }) or inline block on list / card |
Component Details
card
A detail view for a single record. Supports editable fields, actions, lookup fields, and navigation to child records.
card CustomerCard <Customer> {
title = 'Customer';
field fName { editable = true; };
field fCity { editable = true; };
field fBalance { formatter = currency('$', 2); };
action aRecalculate;
newButton;
deleteButton;
}
Members: field, action, newButton, deleteButton, childNavigation, lookupDisplay, showUserEmail, showCompanyName
Field options: editable, lookup, formatter, tabOrder
tile
Defines how a record appears as a row in a list. Each tile has exactly one navigation behavior.
tile CustomerTile <Customer> {
titleField = fName;
subtitleField = fCity;
navigate = CustomerCard;
}
Navigation options (choose one):
navigate — opens a card for the same entity
generalNavigate<Entity> — navigates to a different entity's list
lookupField<Entity> — returns a value to a lookup field (no navigation)
list
A scrollable, searchable list of records.
list CustomerList <Customer> {
title = 'Customers';
tile = CustomerTile;
searchField = fName;
newButton = CustomerCard;
}
dataGrid
An editable table with typed columns and optional lookup columns, rendered in the order written. Columns with a numeric formatter right-align automatically (align = left|center|right; overrides), and editable = false; at the grid level renders the whole grid read-only. primaryAction<OpenerEntity> 'Label' { action = aX; tooltip = '...'; } adds a sticky button that runs aX on the record that opened the grid, and column fX { hideWhen fX == ''; } hides a column while every row shown matches (hideWhen<OpenerEntity> fY == 'V'; reads the record that opened the grid instead; also on readOnlyGrid columns). A lookupColumn can scope its picker to the row being edited with lookupList = Grid { filter = and(eq(E.fA, parent.fA), eq(E.fB, parent.fB)); };. A card-style rules { disable fX when fStatus != 'Open'; } block locks or unlocks a column per row from that row's data (also on treeGrid / ganttTree as rules<Entity> { … }).
dataGrid SalesLineGrid <SalesLine> {
title = 'Lines';
column fDescription { editable = true; flexWidth = 3.0; };
column fQuantity { editable = true; width = 80; formatter = decimal(2); };
column fAmount { formatter = currency('$', 2); align = right; };
lookupColumn fItemNo <Item> { lookupList = ItemList; editable = true; };
enableNewRow;
enableDeleteRow;
}
document
Combines a header card with a lines grid for master-detail scenarios like sales orders or invoices.
document SalesOrderDoc <SalesHeader, SalesLine> {
title = 'Sales Order';
header = SalesOrderCard;
lines = SalesLineGrid;
}
groups
Records grouped by a field value with expandable sections.
groups TasksByStatus <UserTask> {
title = 'Tasks by Status';
groupByField = fStatus;
groupTile = TaskGroupTile;
showAllEnumValues;
}
chart
Data visualization with aggregation and interactive navigation.
chart SalesByRegion <SalesHeader> {
title = 'Sales by Region';
categoryField = fRegion;
valueField = fAmount;
aggregation = sum;
chartType = bar;
showLegend = true;
onSliceTap = SalesOrderList;
}
Chart types: pie, bar, line
Aggregations: count, sum, avg, min, max
gantt
Timeline visualization for date-range data.
gantt ProjectTimeline <ProjectTask> {
title = 'Project Timeline';
startDateField = fStartDate;
endDateField = fEndDate;
labelField = fDescription;
progressField = fPercentComplete;
timeScale = week;
onBarTap = TaskCard;
}
Time scales: day, week, month, quarter, year
board
Kanban-style board with optional drag-and-drop. rules { disable fStatus when fPriority == 'Locked'; } locks the drag of matching tiles — a rule names a field the drag writes (here the columnField).
board TaskBoard <UserTask> {
title = 'Task Board';
columnField = fStatus { showAllEnumValues; };
rowField = fPriority { showAllEnumValues; };
cellLabelField = fTitle;
enableDragDrop;
onCellTap = TaskCard;
}
kpi
A single aggregated metric with optional navigation.
kpi TotalSales <SalesHeader> {
title = 'Total Sales';
valueField = fAmount;
aggregation = sum;
formatter = currency('$', 0);
onTap = SalesOrderList;
}
Navigation structure for the app. menu renders as a drawer, menuRail as a side rail.
menuRail MainMenu <Company> {
title = 'Sales App';
item<Customer> customers {
title = 'Customers';
navigateTo = CustomerList;
}
item<SalesHeader> orders {
title = 'Sales Orders';
navigateTo = SalesOrderList;
}
staticItem settings {
title = 'Profile';
navigateTo = UserProfile;
}
showLogout;
showCompanyName;
}
profile
User profile and settings screen.
profile UserProfile {
title = 'Settings';
showCompanyName;
changeDefaultCompany;
changeLanguage;
}
login
Authentication screen.
login AppLogin {
title = 'Welcome';
emailLabel = 'Email';
passwordLabel = 'Password';
loginButtonText = 'Sign In';
enablePasswordReset;
}
cache
Marks an entity's API responses as cacheable. At runtime, GETs for that entity are served from an in-memory LRU cache until the TTL expires; any create, update, or delete of that entity invalidates the cached entries.
// Top-level — applies to every GET for the entity type
cache Customer { ttl = 300; maxEntries = 100; }
// Inline on a list
list CustomerList <Customer> {
title = 'Customers';
tile = CustomerTile;
cache { ttl = 300; }
}
Properties: ttl (seconds, default 300), maxEntries (optional, default 50, LRU eviction when exceeded). The inline form also works on card declarations for single-record fetches. The cache is automatically cleared on login, logout, and company switch.
Format how field values are displayed:
formatter = currency('$', 2); // $1,234.56
formatter = percentage(0); // 75%
formatter = decimal(2); // 1,234.56
formatter = integer(); // 1,235
formatter = date('MMM d, yyyy'); // Mar 12, 2026
Filters
Filter records declaratively:
filter = eq(fStatus, 'active');
filter = gt(fAmount, 100);
filter = and(
eq(fStatus, 'active'),
gt(fAmount, 100)
);
Operators: eq, ne, gt, ge, lt, le, and, or
Commands
Access from the Command Palette (Ctrl+Shift+P):
| Command |
Description |
| Folium: Install Folium SDK |
Install the newest Folium SDK |
| Folium: Install Folium SDK (Select Version) |
Install a specific released SDK version, picked from a list of everything published |
| Folium: Install Folium SDK (from Test Channel) |
Install a branch build of the SDK, picked from the branches published to the test channel |
| Folium: Install Folium SDK (with Platform Override) |
Install a development build that runs the SDK from the checkout in fdl.localPlatformOverride, so later commands use its current code. Shown only while that setting is set. Platform-developer only |
| Folium: Install Folium SDK (with Platform Override, Full Bundle) |
Build the full SDK bundle from that checkout and install it, to confirm a change survives packaging. Shown only while that setting is set. Platform-developer only |
| Folium: Reload SDK |
Re-resolve the installed SDK from disk (also runs when you click the SDK status bar item) |
| Folium: Sign In |
Sign in to inecta and cache the session for later commands (Folium team only) |
| Folium: Sign Out |
Clear the cached inecta sign-in (Folium team only) |
| Folium: Init Project |
Create a new Folium project |
| Folium: Build |
Compile FDL sources into the app |
| Folium: Build (with Platform Override) |
Build against the live platform packages in fdl.localPlatformOverride, so hot reload sees edits to them. Shown only while that setting is set. Platform-developer only |
| Folium: Generate Domain Packages |
Generate domain packages from your BC environment |
| Folium: Update Package Versions |
Disabled — platform package versions move with foliumctl releases; prints upgrade instructions |
| Folium: Update Project Docs |
Re-copy bundled CLAUDE.md and .claude/skills/ from the installed SDK into the project (overwrites local edits), and fully regenerate docs/ (deleted first so removed SDK docs don't linger) |
| Folium: Project Info |
Show project configuration |
| Folium: Validate Current FDL File |
Check the active .fdl file for errors |
| Folium: New FDL File |
Create a new .fdl file |
| Folium: Build and Run (Web) |
Build the project (via foliumctl build) and run the app in Chrome. Aborts if the build fails. |
| Folium: Build and Run (Web, with Platform Override) |
As above, built against the live platform packages in fdl.localPlatformOverride. Shown only while that setting is set. Platform-developer only |
| Folium: Build and Run (Android) |
Build the project, then run it on the connected Android device — or pick one if more than one is connected. Aborts if the build fails |
| Folium: Build and Run (Android, with Platform Override) |
As above, built against the live platform packages in fdl.localPlatformOverride. Shown only while that setting is set. Platform-developer only |
| Folium: Build and Run (iOS) |
Build the project, then run it on the connected iOS device or simulator — or pick one if more than one is connected. macOS with Xcode only. Aborts if the build fails |
| Folium: Build and Run (iOS, with Platform Override) |
As above, built against the live platform packages in fdl.localPlatformOverride. Shown only while that setting is set. Platform-developer only |
| Folium: Clean |
Remove the .folium build directory |
| Folium: Restart Language Server |
Restart the FDL language server |
| Folium: Reload Schema |
Reload the FDL language server schema |
Every command runs under a progress notification naming it, which clears when the command finishes. Cancelling the notification aborts the command and notes the abort in the output panel.
If any command fails, output is printed to the Folium output panel. Copy the output and give it to Claude to diagnose.
Settings
| Setting |
Description |
fdl.dartSdkPath |
Explicit Dart SDK root override. Leave empty to let the extension auto-resolve (via Dart-Code's dart.sdkPath / dart.flutterSdkPath if set, then PATH search, then following a dart.bat shim on Windows to the bundled Dart SDK). |
fdl.localPlatformOverride |
Absolute path to a local iNECTA/folium checkout. Supplies the checkout to every (with Platform Override) command — the two that install the SDK from it, and the two that build an app against its live platform packages. Platform-developer only |
fdl.gcpProject |
GCP project ID for credentials (defaults to inecta-folium) |