Blueprint: architecture and data models
Use Blueprint to see what your app is made of, what it connects to and which identity each connection uses, its Rayfin data model, the Fabric data it reads, and its local data.
Use Blueprint to see how your app is put together. The Architecture view shows what the app is made of, what it connects to, and which identity each connection uses. The Data model view shows the Rayfin data model, and the Fabric connections view shows the Fabric data the app connects to: its semantic models, and the tables of its SQL databases, warehouses and lakehouses. The Data explorer shows the data your app stores on this computer.


Open Blueprint
- Open a project.
- Select Blueprint in the project tabs.
- Choose Architecture, Data model, Fabric connections or Data explorer. Fabric connections appears when the app connects to a semantic model, SQL database, warehouse or lakehouse. Supporting items appears once the app's chat has supporting items on, or when the app has supporting items: the semantic models and lakehouses Fabricator created for it. See Supporting items.
Fabricator remembers the view you chose for the project.
Read the architecture
The Architecture view reads the app's rayfin/rayfin.yml, fabric.yaml, data model and function code. From left to right it shows:
- People, the people who use the app, and how they sign in.
- The app, named with the workspace it's in. When any connection uses the app identity, App identity names whose credentials it uses. Below are the app's pieces: Website, Sign-in, Database, File storage, Connectors, Functions and Secrets, as the app has them.
- What the app connects to, grouped by where it lives: each Fabric workspace by name, with its capacity and region when Fabric returns them, then Microsoft Fabric, Azure and Web APIs.
A piece that connects to something outside the app lists how those connections sign in, with a count. Lines run from there to each source. Hover or select a piece, a source or one of those rows to highlight the connections it's part of.
A source that's one of the app's supporting items is marked Supporting: Fabricator created it for the app, and it isn't part of the Rayfin app. Its details say which folder in supporting-items defines it, with Open definition.
Use Search the app and its connections to highlight matching pieces and sources. The toolbar also has Open the app and Open in Fabric once the app is published, plus zoom and fit-to-view.
If the app connects to nothing outside, the view says No outside data yet and offers Add Fabric data…. It opens Add Fabric data in the chat: what you pick waits in the composer, and Copilot connects it when you send your message. If rayfin/rayfin.yml can't be read, it says "Couldn’t draw the app" and offers Open rayfin.yml.
Which identity a connection uses
| Label | What it means | Used by |
|---|---|---|
| Uses user’s identity | Delegated access. The connection runs as the signed-in person, so Fabric checks their own permissions and each person sees only what they can access. | Connectors with auth.type: delegated, and semantic models in fabric.yaml |
| Uses app identity | Application access. The connection runs as the app identity, so everyone sees the same data. | Connectors with auth.type: application, and function connections through ctx.Tokens |
| Uses a key | The function sends its own key or token. Anyone who has the key has the same access. | Web APIs that functions call directly |
The app's own database always uses the user's identity, and each table's access rules decide which rows a person can see. Learn more in the Rayfin delegated access docs.
Whose credentials the app identity uses
The app identity is the owner of the app's Fabric item:
- For your own apps, it's the Fabric account that first published the app. Fabricator shows the account it publishes with. Before the first publish, it shows "Whoever publishes it first".
- For a team app, it's the team workspace's deploy identity. Previews are owned by the preview identity when the team has a separate one.
Select App identity to see which sources the app identity needs access to, and select Ask Copilot what to grant to ask which role to give it on each one.
While your app runs on this computer, these connections run as you instead, so a call that works there can still fail once the app is published. See Who the app runs as.
When the website's pages load
The Website piece shows when people can load the app's pages, set by assetAccess in rayfin/rayfin.yml:
- Pages load after sign-in (
protected): the page files load only for people signed in to Fabric. - Pages load before sign-in (
public): anyone with the link can download the page files, the app's HTML, JavaScript and CSS. The app's data still needs sign-in, and its access rules still apply. - Page access not set: choose
protectedorpublicbefore publishing.
How people sign in
The Sign-in piece shows how people sign in to the app. Microsoft Entra ID, through Fabric means the app uses Fabric brokered auth, which Rayfin's docs also call Fabric SSO:
- People sign in with the Microsoft Entra account they already use for Fabric.
- Sign-in is part of the app, so there's no identity provider to run.
- The app needs no app registration of its own in Microsoft Entra ID, so there's nothing for a tenant admin to approve.
Select Sign-in to see its Provider, whether it accepts Entra tokens from other apps, and its Sign-in addresses. If the piece says Off, the app can't tell people apart. Learn more in the Rayfin auth docs.
Secrets
The Secrets piece lists the secrets the app's functions use: the ones declared in rayfin/rayfin.yml and the ones its code reads. Select it to see what each secret is for, which functions read it, and whether the published app has a value for it: Set, No value or Not in rayfin.yml. Values are never shown. When the app runs on this computer, its functions read the values set for this computer instead.
Fabricator flags a secret that functions read with ctx.Secrets but that rayfin/rayfin.yml doesn't declare, which is a TypeScript error, and reads that use the deprecated ctx.getSecret().
Select Manage secrets to add or change values in Code → Secrets. If keys are written into the functions' code, select Move keys into secrets to ask Copilot to move them. See Secrets.
Details and actions
Select any card to open its details: what it is, the settings it comes from, its IDs, and what it connects to. Press Esc or select the empty canvas to close them.
Depending on what you select, the details can include:
- Use user’s identity or Use app identity, to ask Copilot to change a connector's
auth.type. - Fix with Copilot, when a connector's
auth.typeor the functions'services.functions.auth.typewould stop the app from publishing. - Use app identity on a web API that Rayfin can also reach with the app identity, so the functions don't need a key for it.
- View the model, which opens a semantic model in the Fabric connections view.
- View the tables, which opens a SQL database, warehouse or lakehouse in the Fabric connections view.
- Open in Fabric, which opens a source or its workspace in the Fabric portal.
- Harden access and Open the data model on Database.
These actions send a prompt to the Build chat. Fabricator doesn't publish from them directly: they're a chat turn like any other.
Read the data model diagram
The Data model view parses the Rayfin schema and draws an entity-relationship diagram. Each entity card shows:
- The entity name.
- Each field and its type:
uuid,text,email,int,decimal,bool,date, orenumfor a@set()field. A relationship field shows the entity it points to, such asCategory, with[]after it when it holds many, such asTask[]. - A key on the primary key, and a link on a field that references another entity.
- A diamond before each field name: filled for a required field, hollow for an optional field and for the primary key, and in the accent color for a unique field. Hover over it to see Required or Optional.
- Access grants, including role names and whether a grant has a row-level policy.
- An access dot. The legend labels access as Row-scoped, Any signed-in or Public.
Relationships appear as lines between entity cards, and the header counts the entities and relationships, such as 4 entities · 3 relationships. Hover an entity to highlight its related entities.




Learn the Rayfin modeling concepts in the Rayfin data modeling docs.
Navigate and search the diagram
Use the toolbar to:
- Search with Search entities & fields.
- Collapse or Expand all entities.
- Zoom in or out.
- Fit the diagram to view.
- Reset the layout.
You can drag entity cards to rearrange the diagram. Fabricator stores the layout in the app for that project.
Each entity card also has:
- Open, which opens the entity source file in Code.
- Focus, which shows that entity and its neighbors. Use Unfocus to return to the full diagram.
Harden loose access
Fabricator flags loose access on entities that are public, authenticated-only, default or mixed. Those cards show Harden.


Select Harden to send a ready prompt to Copilot asking it to tighten the entity's access control with Rayfin decorators and row-level policy. Fabricator doesn't publish from that prompt directly: it's a chat turn like any other.
Restrict the Customer and Order entities so each signed-in user only sees rows they own. Use Rayfin role or authenticated decorators with row-level policies, and keep the app building.Learn more in the Rayfin permissions docs.
Add a data model
The data model is where the app keeps its entities. New projects keep it in packages/data/src/, registered in packages/data/src/index.ts. Apps that keep everything in one package use rayfin/data/, registered in rayfin/data/schema.ts. Fabricator reads rayfin/rayfin.yml to find it.
If the app has no schema file yet, the Data model view says No data model yet and offers Add a data model with Copilot. If the schema file exists but lists no entities, as in a new project, it says Your schema has no entities and offers Add an entity with Copilot.
Those actions stage a prompt in the Build chat composer. New projects start without a database, so the prompt also asks Copilot to turn on the data service.
Add Project and Task entities. A project has many tasks. Tasks have a title, due date, status and owner. Restrict access so users only see their own projects and tasks.See your app's local data
Your app runs on this computer with its own data. The Data explorer shows that data as the app's local backend stores it. You can't edit rows or files there, but you can delete them: see Clear or reset local data. It also loads the project's seed data and saves the local data as seed data: see Load or save seed data. For how the app runs on this computer, see Develop on this computer.


- Open a project.
- Select Blueprint in the project tabs.
- Select Data explorer.
The header counts the entities and rows, such as 4 entities · 37 rows, and shows the local backend's state. A note under it says where the data is: "Local data on this computer. Publishing doesn’t copy it to Fabric." Once the app is published, it says "Local data on this computer, separate from the published app’s data."
Entities lists each entity with its number of rows. Select one to see its rows:
- Each column shows its name and type, with a key on the key column. Select a column to sort by it, and select it again to reverse the order.
- Rows come 50 at a time. Use Previous and Next to page through them.
- A value that isn't set shows as
null, and dates with times show in your time zone. Long values are cut short: point at one to see all of it.
Local users lists the people who signed in to the app on this computer, and your test users from Preview as: their Username, Email, how they sign in under Signs in with, and when they were added under Created. Your own account is marked Developer. It appears when the app uses sign-in.
Storage lists the app's storage folders, each with its number of files, when the app stores files. Select a folder to see all of its files, whatever its rules say about who can read them:
- Each file shows its Name, which is its path in the folder, its Type and Size, its Owner, the local user who uploaded it or Anonymous, and when it was last Updated. Files come 50 at a time.
- Select a file's name to preview it beside the list: images, video, audio, text and JSON, and the first five pages of a PDF. Under the preview are the file's details, including the fields the app stores with it.
- Save a copy, above the preview, saves the file where you choose on this computer.
A folder the app no longer has is marked Not in the app. Its files stay until you clear them.
Select Refresh to read the data again. The view also reads it again after each chat turn, and whenever the local backend rebuilds the app. If the local backend isn't running, the view says so and offers Start.
When this computer can't run a published app, its preview uses the published app's backend, and the Data explorer says it shows only the local data. A team app's Data explorer shows your own local data, which isn't shared with your teammates, and when this computer can't run the app, it says so the same way.
Clear or reset local data
The Data explorer can delete local data. Each action asks you to confirm, and can't be undone. None of them touches your published app's data.
- Clear rows, above an entity's rows, deletes all of that entity's rows. Other entities, the local users and stored files stay. If rows of another entity still refer to them, Fabricator says which entity to clear first, for example "Rows of ExpenseTag still refer to these rows, so they can’t be cleared on their own. Clear ExpenseTag first, or reset all local data."
- Delete, beside a local user, deletes the user and signs them out of the app on this computer.
- Clear files, above a storage folder's files, deletes all of that folder's files. The entities' rows, the local users and other folders' files stay.
- Delete, beside a stored file or above its preview, deletes that file.
- Reset local data, in the toolbar, deletes every entity's rows, the local users and their sessions, and the files the app stored. If a data model change is waiting because it would delete data, it applies afterward.
When the data model changes in a way that would delete local data, Fabricator asks you before it deletes anything. See When a data model change would delete local data.
Load or save seed data
Seed data is data a project brings for its local data, in its rayfin/seed folder, so that everyone who opens the project can start from the same data. See Start with seed data.
- Load seed data, in the toolbar, replaces the app's local data with the seed data. It asks first, with how many rows and stored files the seed data has, then deletes the app's current rows and stored files and loads the seed data. Your local users stay, and the test users the seed data names are added. A note then says what it loaded, such as "Loaded the seed data: 24 rows in 4 entities and 5 files.", and the preview loads the app again. Until the project has seed data, Load seed data is unavailable.
- Save as seed data, in the toolbar, saves the app's local data to
rayfin/seed, in place of the seed data there. Rows and files that are yours are saved as belonging to whoever loads the seed data, and a local user's stay that user's. Fabricator saves the change as a version in Code → History. A stored file whose name can't be a file's name on every computer, such asCON.pngon Windows, isn't saved, and the note says so.
If the seed data can't load, nothing changes. A dialog such as "The seed data has 2 problems" lists each problem with its file, row and field, for example a value of the wrong type, or a row that refers to one that isn't there. Select Fix with Copilot to ask Copilot to fix them in the chat.
None of this touches your published app's data.
View the Fabric data the app connects to
The Fabric connections view draws each source the app reads from Microsoft Fabric: its semantic models, and the tables of its SQL databases, warehouses and lakehouses. When the app connects to more than one, choose a source above the diagram. Each one shows its name and its kind, such as Warehouse.
View a semantic model
When the app uses semantic models, from fabric.yaml or a semantic model connector, the Fabric connections view reads them live from Fabric and draws a diagram of:
- Tables.
- Columns and data types.
- Measures. Select a measure to show its DAX.
- Relationships, including one-to-many markers, inactive relationships and cross-filter direction.
- Hidden tables or columns.
- Storage mode and descriptions when Fabric returns them.
Use Search tables, columns & measures, Collapse or Expand, focus controls, zoom, fit-to-view and Refresh from Fabric to work with the diagram.
Learn about Rayfin semantic model connectors in the Rayfin semantic models docs.
View the tables of a SQL database, warehouse or lakehouse
For a SQL database, warehouse or lakehouse connector, the Fabric connections view draws the source's tables from the app's files, so it doesn't need to sign in to Fabric. Each table card shows:
- Each column and its SQL type, such as
nvarchar(30)ordecimal(8,2). - A key on each primary key column, and a link on each foreign key column.
- A diamond before each column name: filled for a required column, hollow for a column that can be empty. Hover over a column to see its type, the column it references, and whether the database fills it in.
- The app's entity for the table. Select it to open the entity file in Code. A table the app doesn't use says Not used by the app.
Foreign keys appear as lines between the tables, with one and many markers. The header counts the tables and relationships, and says when Rayfin discovered the tables.
When the app uses some of the source's tables, the view starts on Used by the app, the tables the app has an entity for. Select All tables to see every table Rayfin discovered. Use Search tables & columns, Collapse or Expand, focus controls, zoom and fit-to-view to work with the diagram, and Open metadata.json to open the discovered tables as a file.
Rayfin discovers a source's tables when the connector is added, and keeps them in rayfin/connectors/<name>/metadata.json. Copilot then writes an entity file for each table the app needs. Lakehouses usually don't report keys or relationships, so their tables show neither.
- If the app doesn't use any of the source's tables yet, the view says "The app doesn’t use these tables yet." and offers Use them with Copilot.
- If
metadata.jsonis missing, the view draws only the tables the app's entity files describe, and offers Discover the tables with Copilot. - If there's nothing to draw, the view says "No tables to draw yet" and offers Discover the tables with Copilot.
These actions stage a prompt in the Build chat composer. Learn how Copilot turns the discovered tables into entities in the Rayfin entity generation docs.
Connect Fabric data
Your app can read data that's already in Microsoft Fabric through Rayfin connectors: semantic models, warehouses, SQL databases, and lakehouses, which apps read through their SQL analytics endpoint and can't change. You pick the data; Copilot connects it.
- In the Build chat composer, select + (Add images, files or data), then Fabric data.
- Choose a kind of data, such as Warehouse, or Browse all Fabric data….
- In Add Fabric data, choose a workspace. Recent lists the workspaces your apps are published to and the ones you connected data from, newest first. Below it are all the other workspaces you can open.
- Tick the data you want. You can pick from several workspaces before you add it.
- Select Add to chat. The data waits in the message box as chips, one for each item, showing its name and workspace.
- Say what to build with it, such as "Chart spending by category", or just press Enter to connect it. Fabricator tells Copilot how to connect the data when you send, so you don't have to.




To change the data before you send, select a chip to reopen Add Fabric data, or select its × to remove it. The chips stay on your message in the chat, so you can see what each request connected.
Copilot adds each one with rayfin connector add and wires it into the app. Data the app
already connects to is marked Connected. The dialog starts in the workspace this app
is published to, when it has one, but the app doesn't need to be published to connect data.
While your app runs on this computer, it reads the data you connect with your
Azure sign-in. See
Who the app runs as.
Fabricator doesn't offer KQL databases: Rayfin 1.36 can't add new KQL database connectors. Learn more in the Rayfin connectors docs.
Sign in and retry
Listing your workspaces and their data uses Fabric authentication. If Fabricator can't list them silently, the dialog says: "Sign in to Fabric to see your workspaces and their data." Select Sign in & retry.
When the Azure CLI isn't signed in, the dialog says "Your app reads Fabric data with your Azure sign-in while you build it." and offers Sign in to Azure.
Reading a semantic model schema can also require sign-in:
- Sign in to Fabric appears when the Fabric session is missing.
- Sign in to Azure appears when the schema query needs an Azure CLI session.
If the schema cannot be read, the Fabric connections view shows "Couldn’t read the semantic model" and offers Try again. You can still choose the app's other sources above the message. SQL databases, warehouses and lakehouses don't need sign-in, because Fabricator reads their tables from the app's files. For publishing and Fabric authentication recovery, see Publishing troubleshooting.
Run commands in the terminal
Open a terminal in your project's folder to run commands such as rayfin, npm and git, in tabs with the shell of your choice, beside your app's output.
Migrate a Power BI report
Turn a Power BI report into a Rayfin app that reads its semantic model live, while Copilot rebuilds its pages, visuals and filters one page at a time. Experimental.