frontbacked-dsl
v1.0.1
Published
Frontbacked DSL engine
Downloads
144
Readme
Frontbacked Domain Specific Language (FDSL)
This directory contains the source code for the Frontbacked Domain Specific Language (FDSL) compiler and runtime.
Role in the Platform
FDSL is a backend control and definition language used to secure websites created on the Frontbacked platform. It serves a similar purpose to Firebase Security Rules.
- Security & Validation: Every theme includes a
.rulesfile written in FDSL. The backend uses this to infer the types of data accepted from the frontend and to define granular access controls—specifying who can read, write, or delete data and under what conditions. - Inference: The system uses FDSL to automatically determine data schemas and validation logic, ensuring that incoming data from the frontend adheres to the developer's specifications.
Syntax & Features
FDSL allows developers to define rules based on the user's authentication state, the data being accessed, and other contextual information.
Technical Details
- Components: Includes a lexer, parser, and compiler to transform
.rulesfiles into executable validation logic. - Language: Built with TypeScript.
- Integration: Used by both
frontbacked-worker(for production enforcement) andfrontbacked-server(for local development testing).
