Getting Started

Core Concepts

The vocabulary and mental model behind every Rayven app, the four building blocks, how Tables and Workflow data are actually stored, and a deep dive into Labels.

This article assumes you already know the basics from What is Rayven?, a Workspace holds one or more Apps, and every App is made of Tables, Workflows, Interfaces, and App Users. Here we go one level deeper into how those pieces are actually built, and spend most of our time on the one concept that trips people up: Labels.

The building blocks, recap

  • Tables, structured data: rows (records, each with a UID) and typed columns.
  • Workflows, a trigger plus a chain of nodes (Sources, Transform, AI, Outputs) that move and reshape data.
  • Interfaces, the screens your App Users see, built in the Interface Builder.
  • App Users, User Groups with roles and Interface access, scoped to one App.

For how these four combine into very different kinds of apps, see Platform Flexibility & Adaptability.

Two databases: Tables vs. Workflow data

Rayven actually stores data in two different databases behind the scenes, and knowing which one you're in explains a lot of how Workflows and Interfaces behave:

  • MySQL powers Tables, the structured, relational rows and typed columns you design by hand. This is what counts against your plan's Table Rows limit.
  • Cassandra stores Workflow data, the high-volume, unstructured, and time-series data flowing through a Workflow (sensor readings, device payloads, logs). This data does not count against your Table Rows limit, since it's a separate store built for high-frequency writes.

Data can end up in either store, or both, depending on which node a Workflow writes with:

  • A Push to Interface Node saves the payload into Cassandra, so it can act as a live endpoint, this is what an Interface calls to pull workflow data straight into a custom component, using getDataFromAPINode() in the Interface Builder's Code tab (server-side Workflow code uses the equivalent GetDataFromAPINode()). See the Logic Nodes Reference and Interface Builder JS Functions for both sides of that call.
  • An Update Tables node instead writes into a Table (MySQL), structured, queryable with SQL, and joinable with your other Tables.

Nothing stops a Workflow doing both from the same payload: push the raw stream to Cassandra via the Push to Interface node for a live dashboard, and also write a Table row for anything you want to report on, search, or relate to other data later.

Cassandra is also where Rayven's aggregation nodes do their heaviest lifting. Calculate Value for UID, Calculate Value for Label-Matched UIDs, and Count Value by Time all summarize or group high-volume Cassandra data, by device, by Label, or by time window, directly inside the Workflow, so you can hand a Table or an Interface a distilled result instead of raw high-frequency data.

How Interfaces are actually built

An Interface isn't assembled by picking from a fixed catalog of prebuilt widgets, there's no gallery of chart or gauge types to choose from, and no drag-and-drop component palette. Every component on the canvas is code: you write it yourself as HTML, CSS, and JavaScript in the Code tab, or describe what you want to the AI Assistant panel on the left and let it generate or adjust that code for you. The canvas itself is just a live, rendered preview of what's in the Code tab. Either way, the data comes from a call you make in that code, getDataFromTable() for a Table, or getDataFromAPINode() for a Workflow's Push to Interface feed. The Data Sources tab is scoped to the whole project (every Table, every Push to Interface feed) and only lets you inspect which fields are available; it's a reference, not a display mechanism. Both build approaches, hand-written code and AI generation, edit the same underlying screen, so you can start with one and refine with the other.

Labels: how one tag connects everything

Labels are the most powerful, and most commonly misunderstood, concept in Rayven. Once you have the mental model, though, it's a simple idea: a Label is just a tag you attach to data so it can be grouped and filtered by something meaningful to your business, rather than by raw row IDs or UIDs.

The default label is "all." Every row, device, and User Group starts out under it, meaning your data is visible everywhere with no filtering applied. Most apps, anything running for a single site, team, or customer, never need to touch Labels at all. They only become relevant once one app needs to serve multiple sites, regions, customers, or teams whose data has to stay separate.

The same concept shows up in three places

Labels aren't a single setting, they're a thread that runs through the whole platform, and you configure them in three places that need to agree with each other:

  • 01Tables, mark a column as the Label column, then tag each row with a value (for example, "Sydney" for every row belonging to your Sydney building, instead of leaving it on "all").
  • 02Workflows, many nodes can group, calculate, or route by label instead of by a single UID. The Calculate Value for Label-Matched UIDs Node rolls up a value across every device sharing a label; input nodes like the Modbus or OPC connectors let you set a Device/Select Label so incoming data is tagged as it arrives; and interface functions like pushPayload() can route a payload to every UID under a given label.
  • 03User Groups, under App Users, apply a row-level, label-based filter to a group. The group can still open the same Interface as everyone else, but the filter limits it to only the rows that match its label.

Worked example: splitting data by building

Say one app manages several buildings, and a Sydney-based team should only ever see Sydney data on the same Operations Dashboard everyone else uses:

  1. In the Table storing building data, tag every row belonging to the Sydney building with the label Sydney instead of leaving it on the default all.
  2. In the Workflow that processes or aggregates that data, set the relevant node's label/grouping setting to Sydney so its calculations are scoped to that building.
  3. In App Users, create (or reuse) a Sydney User Group, grant it access to the Operations Dashboard Interface like any other group, and apply a row-level label filter for Sydney.

The result: every team shares the exact same Interface and the exact same Workflow. Nobody had to duplicate a screen or build a separate app per building, the label is what keeps each team's view scoped to their own data.

Labels only work if they match exactly across all three places. A row tagged Sydney, a Workflow node grouping by sydney, and a User Group filtering on Sydney-Office won't line up. If a group's screen looks empty even though you've set up a label filter, check that the label value on the Table row, the Workflow node, and the User Group filter are all the same value.

Frequently Asked Questions

Should I write Workflow data to a Table or use the Push to Interface node?

It depends on what you need from it. Use an Update Tables node to write into a Table (MySQL) when you need structured, queryable, joinable data. Use the Push to Interface node to save into Cassandra when you have high-volume or time-series data that just needs to feed a live Interface. You can do both from the same payload if you need each.

Do I need to use Labels in my app?

No. Every row and device starts under the default label "all," so it's automatically visible everywhere. You only need to start assigning specific label values once you have data that should be split by something like site, region, or customer within a single app.

What's the difference between a Label and a User Group?

A User Group controls who someone is and which Interfaces they can open. A Label controls which rows of data they see once they're on an Interface. You typically use both together: the group grants access to a screen, and a label-based filter on that group narrows which rows of the underlying Table it actually shows.

Where do I actually set a Label, on the Table, the Workflow, or the User Group?

All three, and they need to agree. Tag the data itself in the Table (or via a Workflow node writing to it), point any Workflow nodes that group or filter by label at that same label value, and apply a matching row-level label filter to the User Group that should only see it.

Can the same Interface show different data to different teams without duplicating it?

Yes, that's the main reason Labels exist. Grant every relevant User Group access to the same Interface, then give each group a different row-level label filter. Everyone opens the identical screen; each group just sees the rows that match their label.

What happens to data I never label?

It stays under the default label, "all." That's the label every row, device, and group starts with, so unlabelled data behaves exactly as it would if Labels didn't exist, nothing is hidden or excluded.

Does Cassandra-stored Workflow data count against my plan's usage limits?

Not against Table Rows, that limit only counts rows in a Table (MySQL). Check Service Usage and Subscription & Billing for the full picture of what counts against your plan.

Which Workflow nodes actually let me group or filter by Label?

The Calculate Value for Label-Matched UIDs node rolls up a value across every device sharing a label, see the Logic Nodes Reference. Several connector nodes, like Modbus and OPC, also let you tag incoming data with a Device/Select Label as it arrives, see the Connector Nodes Reference.

Can I run a SQL query against Cassandra-backed Workflow data?

No, Cassandra data is read through Workflow nodes and interface functions, not SQL. If you need to query it with SQL, also write it into a Table using an Update Tables node, and query that Table instead.

How do I actually restrict a User Group to its labeled data, step by step?

Open App Users, select the group, and add a label-based Filter (like PrimaryLabel=Sydney) in that group's Settings. See App Users & User Groups for the full walkthrough.

What function pulls Cassandra Workflow data into a custom Interface component?

Use getDataFromAPINode() in the Interface Builder's Code tab. See Interface Builder JS Functions for the full reference, including date-range and latest-value options.

To see Labels and data storage in context, or go deeper on any of the building blocks: