Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Frontbacked FQL and FRLNew to Visual Studio Code? Get it now.
Frontbacked FQL and FRL

Frontbacked FQL and FRL

Feyitech

|
2 installs
| (0) | Free
Build Frontbacked themes with FQL and FRL highlighting and instant feedback on common coding errors.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Frontbacked FQL and FRL for VS Code

Build Frontbacked themes with clearer code and helpful feedback as you type. Write interactive pages with FQL in your HTML and define data, permissions, endpoints, and jobs with FRL—all in VS Code.

Get started

  1. Install Frontbacked FQL and FRL.
  2. Open your theme folder in VS Code.
  3. Edit your .html pages and .frl files. Highlighting and diagnostics activate automatically.

Keep HTML files in HTML language mode and FRL files in FRL mode. There is no additional setup or separate FQL file to create.

Read your theme code at a glance

  • FQL in HTML: highlighting for f-* directives, expression values, and {STATE} blocks, including variables, property paths, functions, and event bindings.
  • FRL: distinct highlighting for native and theme-defined functions, $ namespaces, nested properties, block names, parameters, and named options.
  • Your editor theme: colors follow your chosen VS Code theme, with consistent roles across your code.

FRL function parameters keep the same color wherever their values are used inside that function, including nested blocks and function calls. Comments, strings, object keys, and property names keep their own highlighting.

Text values such as f-loading-text="Please wait…" stay readable as complete strings, while expressions such as f-show="$state.count > 0" highlight their individual parts.

Hover, completion, and argument help

Hover over FRL declarations, schema types and options, native functions, and runtime variables for concise explanations. In HTML, the same help covers FQL attributes, state selectors, data roots, and built-in functions. Public Frontbacked methods also have help in HTML scripts and JavaScript or TypeScript files.

Suggestions include schema keys, supported types, booleans, visibility choices, video options, image formats and crop modes, HTTP methods, crypto encodings, and other documented choices. Function calls show argument hints as you type. FRL helpers declared in your file appear under $fn, with their own parameter names and leading comments.

Invalid option keys and known invalid values are underlined where they occur, including nested schemas and supported function option objects. Misspelled keys suggest a likely correction. Application field names, JSON payloads, and query-filter field names remain yours to define.

Dynamic expressions and values supplied by the site cannot always be checked before running the page. The editor checks what is known without treating those values as errors.

Use str.length(value) for text length and arr.size(value) for array item counts. Typing str.le suggests str.length; hover and argument help explain its single string parameter. Diagnostics flag missing or extra arguments and known non-string inputs. Empty, missing, and null values return 0 when your rule runs; whitespace counts unless you trim it first.

Post schemas support fallback completion, hover help, and validation. For example, loginEnabled: { type: "boolean", required: true, default: true, fallback: true } gives older records a value when the field is missing. Explicit values, including null and false, stay unchanged; default still applies only when creating records. Fallbacks accept validated scalar literals on top-level post fields and are unavailable in user schemas or browser validation schemas.

Catch common mistakes while you code

See inline error markers and explanations in VS Code's Problems panel for supported checks, including:

  • Misspelled or undefined functions, such as musti(...) or $fn.apiHosts() when you declared apiHost.
  • Unknown native methods, such as posts.findOneDontExist(...).
  • Unsupported $ namespaces and invalid assignments, including writing to $context inside a function instead of using $local.
  • Missing or extra arguments and definite type mismatches for supported native functions, such as passing an object to str.lower(...).
  • Invalid FQL expressions and unbalanced {STATE} blocks.

Hover over an error marker to read the explanation. Where available, the message suggests a likely function name or correction.

Argument checks use types that can be determined from your code. Values supplied dynamically at runtime cannot always be checked in the editor; preview and test your theme as you build.

Write video rules with verified file facts

File schema options include completion and hover help for minVideoDuration, maxVideoDuration, maxVideoQuality, and videoDurationOverflow. Hover over an option or its value to see what it does, accepted values, defaults, and dynamic-expression support.

  • maxVideoQuality suggests 240, 360, 480, 720, and 1080 as numbers.
  • videoDurationOverflow suggests "reject", "trim", and "omit", with an explanation of each behavior.
  • Duration options explain seconds, minimums, and how the two limits work together.

Invalid literal values are underlined at the value, including several mistakes in the same schema. Dynamic expressions such as $fn.durationLimit() remain supported; their returned values are checked when used.

FRL recognizes $file in video-option expressions and helper functions. Type $file. or $file.video. for property suggestions, and hover over a property for its type and meaning. Suggestions include the upload's size, MIME type, and file name, plus verified source duration, dimensions, audio presence, and verification status.

fn durationLimit() {
  if ($file.video.height > $file.video.width) {
    return $page.videoSettings.portraitMaxDuration;
  }
  return $page.videoSettings.maxDuration;
}

$file is supplied while evaluating video schema options, including helpers called by those options. It is not a general hook or endpoint variable. Source duration is measured before trimming.

Theme helpers always name their source: use $fn.durationLimit() in video options, $fn.canEdit() in editableIf, and $fn.helperName() in hooks, endpoints, jobs, and other helpers. Other sources keep their own namespace, such as $admin.canEdit("shipments") or str.trim(value). Only native language helpers such as must() use bare calls. The editor marks bare calls to theme helpers and suggests the supported spelling.

Build with Frontbacked

Use FQL for data bindings, forms, and interactive pages, and FRL for protected data and server operations. Learn more at Frontbacked.

Page editor fields support f-type-text and f-type-attr-NAME. Use string, number, integer, boolean, url, email, or money, or literal JSON with type, min, max, and required. Declared fields are required by default. Hover explains the declaration; diagnostics identify invalid types and limits.

Validate unique array items

FRL and FQL schema help includes unique: true for whole-item uniqueness and uniqueBy for a selected field or combination of fields in arrays of objects. For example, uniqueBy: ["productId", "variant.size"] allows different sizes of one product while rejecting repeated combinations. Every selected field needs a value. Object property order does not affect equality; types and array order remain distinct.

Install the latest release

Find Frontbacked FQL and FRL by feyitech in VS Code's Extensions view, or run:

code --install-extension feyitech.frontbacked-language-tools

Follow the installation and usage guide and the local development guide to test your theme beside the editor.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft