Blocks Overview
Blocks are the building pieces of every Fluxify route and workflow. Each block does one job, like reading a database row, checking a condition, or sending a response. You connect blocks on the canvas, and data flows from one to the next.
Using a block
- Drag a block from the sidebar onto the canvas.
- Click it to set its fields in the side panel. The Docs tab there shows the page for that block.
- Connect it to other blocks to decide what runs first, next, and on each path.
New to this? Read How Blocks Work first. It explains inputs, outputs and how data moves from block to block.
What you find on a block page
Every block page has the same parts, in the same order:
| Section | What it tells you |
|---|---|
| Intro | What the block does, in one or two plain sentences. |
| When to use it | Real situations for it, and when to pick another block. |
| Inputs | Every field, whether it is required, and its default. |
| Outputs | What the next block receives, and which handles the block has (like Success and Failure). |
| Example | A small realistic setup with the settings and the result. |
| How it behaves | Edge cases, errors and anything surprising. |
| Related blocks | Blocks that are often used together with it. |
Which block do I need?
| I want to... | Use |
|---|---|
| Choose between two paths | If Condition |
| Choose between many paths | Switch |
| Repeat something | For Loop (a number of times) or For Each Loop (once per item) |
| Do several things at the same time | Orchestrator |
| Send an answer to the caller | Response |
| Handle a failure | Error Handler |
| Read what the caller sent | Get HTTP Request Body, Get HTTP Param, Get HTTP Header, Get Request Cookie |
| Call another web service | HTTP Request |
| Read or change data in a database | DB Get All, DB Get Single, DB Insert, DB Update, DB Delete |
| Change several records together, or none | DB Transaction |
| Remember a value for this request | Set Variable and Get Variable |
| Cache something between requests | KV Operations |
| Reshape data | Transformer |
| Write my own code | JS Runner |
| Run background work | Trigger Workflow |
| Log what happened | Console Log or Cloud Logs |
Block groups
| Group | What it covers |
|---|---|
| Logic & Flow | Start the flow, choose paths, repeat, run in parallel, handle errors, and respond. |
| Data | Variables, lists, reshaping data, and your own JavaScript. |
| HTTP | Call other services, and read or set request details like headers and cookies. |
| Database | Read, write and group changes in SQL and MongoDB databases. |
| Key-Value | Cache and short-lived state in Redis or Memcached. |
| Logging | Print to the server logs or send to a log service. |
| Utility | Start workflows, and add notes to the canvas. |
| Custom Blocks | Turn a group of blocks into one reusable block. |
See the full List of Blocks for every block in each group.
