Skip to main content
Diagramforce logo

Diagramforce

Diagramming for Trailblazers

Diagramforce is a free, open-source diagram editor for Salesforce architects, consultants and engineers. It runs in your browser, with no account to create and nothing to install.

Open DiagramforceView on GitHub

Free and open source.

A Salesforce Flow open in Diagramforce: Loop, Get Records, Decision, Assignment and Wait elements joined by their outcomes, with the Flow shapes on the right
A Salesforce Flow open in Diagramforce: Loop, Get Records, Decision, Assignment and Wait elements joined by their outcomes, with the Flow shapes on the right

Eight diagram types

Architecture, data models, Data 360 (formerly Data Cloud) mappings, Flows, processes, sequence diagrams, org charts and Gantt charts.

Import from your org

Load a Flow, your objects, or your Data 360 mappings and batch data transforms, and Diagramforce draws them as editable diagrams.

No server of mine

Your diagrams stay in your browser or in your own Google Drive.

Why Diagramforce​

A Salesforce diagram drawn by hand is out of date with the next release. General diagramming tools do not fix that - of the two closest ones, one imports nothing from a Salesforce org and the other only objects, on its Enterprise plan (compared below). So I built Diagramforce for my own projects (the diagrams in my articles are drawn with it).

A good fit if you

  • document Salesforce projects - the architecture, the data model, the Flows and the processes
  • work with Data 360 or Marketing Cloud, and want to import your mappings and batch data transforms, and start from ready Data Views

Look elsewhere if you

  • need several people editing one diagram at the same time
  • draw mostly on a phone or a tablet (Diagramforce is built for a mouse or a trackpad)

What's inside​

Diagram types​

Each diagram type has its own shapes and Auto Layout. They all follow the Salesforce Lightning Design System, with 1,700+ SLDS icons for clouds, products and integrations. Pick a tile to start a blank diagram of that type.

Architecture

Map system architecture, integrations, and infrastructure landscape.

Data Model

Define objects, fields, and relationships like Schema Builder.

Data Mapping

Map how fields flow from source to target, in Data 360 or any other pipeline.

Flow

Document Salesforce Flows, Data 360 batch transforms and marketing journeys.

Process

Design generic business processes and BPMN workflows.

Sequence

Document request/response interactions between systems.

Gantt Chart

Plan project timelines, tasks, milestones, and dependencies.

Org Chart

Document team hierarchy, roles, and responsibilities.

Import a Salesforce Flow as an editable diagram​

Load the Flow, by file or by paste, and Diagramforce draws it from the org's own metadata, laid out the way Flow Builder had it. Each card keeps the detail behind it, such as the fields a Create or Update writes.

  • Takes the Flow's .flow-meta.xml source file or its Tooling API response, and detects the format itself
  • Draws your objects as a data model from one pasted query result, and your Data 360 data model objects from one REST response
  • Draws a Data 360 batch data transform as on the transform canvas - inputs, filters, joins, aggregates and outputs, each card holding its settings
  • Does the same for Data 360 mappings, a data graph, a context definition and the role hierarchy
  • Converts the metadata in your browser, so everything stays on your machine
  • Takes anything else through an LLM (the Claude plugin or the LLM Spec maps it to one of the diagram types)

The Flow at the top of this page comes from my Data 360 Credit Consumption Alerts article, where you can open it in Diagramforce yourself.

A marketing journey imported from a Salesforce demo org into Diagramforce: three Send Email steps with waits between them, a Wait Until Event that ends in Forward to Bot or in a timeout, and a table of the Flow's facts beside itA marketing journey imported from a Salesforce demo org into Diagramforce: three Send Email steps with waits between them, a Wait Until Event that ends in Forward to Bot or in a timeout, and a table of the Flow's facts beside it

Data 360 mapping diagrams, from source to Data Model Object​

Where does this field come from, and what breaks if I change it? A Data Mapping diagram answers that, because it follows every field from its source through the Data Lake Object and the Data Model Object to the Activation.

  • Every link carries its mapping type, from Standard and Formula to Calculated Insight, and can hold its expression
  • Templates for the Salesforce CRM Contact mapping and the Marketing Cloud Next email, push and SMS mappings
  • Works for any other pipeline too, such as an ETL job or a set of SQL views
A Data 360 mapping of the Salesforce CRM Contact from its top: the source object, the Contact_Home Data Lake Object and the Individual, Contact Point Email and Contact Point Phone Data Model Objects, joined field by field
A Data 360 mapping of the Salesforce CRM Contact from its top: the source object, the Contact_Home Data Lake Object and the Individual, Contact Point Email and Contact Point Phone Data Model Objects, joined field by field

Field-level lineage on hover​

Hover over a field or select it, and Diagramforce highlights its path across the layers and dims the rest. In the picture, FirstName in the Contact_Home Data Lake Object leads to First Name on the Individual Data Model Object.

A close view of the mapping with the pointer on FirstName in the Contact_Home Data Lake Object: a highlighted line runs to First Name on the Individual Data Model Object, and every other field is dimmed
A close view of the mapping with the pointer on FirstName in the Contact_Home Data Lake Object: a highlighted line runs to First Name on the Individual Data Model Object, and every other field is dimmed

Table view with CSV and Markdown export​

The Diagram and Table switch turns a Data Mapping, Data Model, Flow or Gantt chart into a table of the same content. You can filter and sort it.

  • Exports to CSV, or copies as Markdown for your documentation
  • On a Data Mapping, warns you when a source field and its target have types that do not match
The Field Mapping table of the same diagram: one row per mapped field, with the data layer, object, field, data type and mapping type of its source and target
The Field Mapping table of the same diagram: one row per mapped field, with the data layer, object, field, data type and mapping type of its source and target

Data model diagrams with Marketing Cloud Data Views​

The Marketing Cloud Engagement Data Views and the Marketing Cloud Next Data Model Objects come as shape packs, fields included - you do not rebuild _Sent or _Job by hand. Relationships use crow's foot notation, with primary and foreign keys marked.

  • Draws your own objects from one pasted query result, with keys only, the top 25 fields or all of them on each card
  • Does the same for Data 360 data model objects - pick the ones you want, and Add related brings in those linked to your pick
  • Imports fields from a CSV file, and shows API names, field lengths or key fields only (View menu)
  • Turns the model into a Data Mapping with the Map button
A data model of five Marketing Cloud Engagement Data Views in three groups: _Job under Send, _Sent, _Open and _Click under Tracking, and _Subscribers. Each tracking view joins _Job on JobID and _Subscribers on SubscriberID, drawn in crow's foot notation with primary and foreign keys markedA data model of five Marketing Cloud Engagement Data Views in three groups: _Job under Send, _Sent, _Open and _Click under Tracking, and _Subscribers. Each tracking view joins _Job on JobID and _Subscribers on SubscriberID, drawn in crow's foot notation with primary and foreign keys marked

Draw and edit any diagram by hand​

You can do all of your work by hand, with no plugin and no import. That suits you when drawing is how you think, when a diagram needs a small edit, or when you work with people who use the web app only.

  • Guides snap a shape into line with its neighbours as you drag, and show the gaps in pixels
  • Containers, zones and pools grow and shrink with what you put in them
  • Auto Layout arranges a connected diagram in one click
  • Select a few shapes and save them as a template of your own, synced through your Google Drive once you connect it

The diagram in the picture comes from my Data 360 Licensing article.

An architecture diagram in the Diagramforce editor with one shape held in the middle of a drag: dashed guides line it up with the shape beside it, two marks show 32px gaps to the shapes above, and the zone around it is highlighted. The shape's properties are on the left and the shapes panel on the right
An architecture diagram in the Diagramforce editor with one shape held in the middle of a drag: dashed guides line it up with the shape beside it, two marks show 32px gaps to the shapes above, and the zone around it is highlighted. The shape's properties are on the left and the shapes panel on the right

Compare two versions of a diagram​

Compare, in the View menu, sets your diagram against another tab or an earlier version from Google Drive, and marks what was added, changed or removed. Present puts one diagram on the full screen, and it stays editable while you talk.

Save to your browser or Google Drive, share with a link or an embed​

Your diagrams save to your browser, or to your own Google Drive with a version history. A Diagramforce link holds the whole diagram and opens with no sign-in, and a Google Drive link shares the live file with the people you choose. Share also copies an embed code - a read-only view of the diagram for Notion, Confluence, SharePoint or your own site. You can export JSON, PNG, WEBP, SVG or an animated GIF, and import Mermaid (in beta).

A Claude plugin that draws diagrams from your org​

With the Diagramforce plugin, Claude draws the diagram for you. The plugin validates every diagram before it hands it over, so it opens intact.

  • Draws from a description, a screenshot, a whiteboard photo, or draw.io or Mermaid source
  • Reads your org through the Salesforce CLI on your machine: Flows, objects, Data 360 mappings and batch data transforms, data graphs and the role hierarchy
  • Renders a diagram to PNG, WEBP or SVG in a headless browser, ready for your documentation
  • Hands back an embed code for the page you are writing, when you ask for one

To install it, open Plugins in Claude, choose Add > Add marketplace, enter MateuszDabrowski/claude and install Diagramforce. The marketplace always holds the latest release. For control over what gets installed, download the plugin file from Help → Diagram with AI in Diagramforce and add it with Add > Upload plugin - nothing changes until you upload a newer one.

Do you work with another LLM? The LLM Spec describes the diagram format in one document. Any model can write a diagram from it, and Diagramforce loads it. The validator, the org import and the image rendering come only with the plugin.

See the plugin on GitHubRead the LLM Spec

Works with SQL Studio and Slot​

SQL Studio logoSQL Studio

My SQL editor for Marketing Cloud Engagement opens a query in Diagramforce as a data model, or as a lineage from each source field to the target.

Slot app iconSlot

My Mac app for your Google and Microsoft accounts offers Diagramforce as an add-on for each account, with its own diagrams and its own Google Drive connection.

The diagrams in my articles also come with an Open in Diagramforce button, so you can take any of them as the starting point for your own.

Nothing Reaches Me​

Diagramforce has no server of its own, no user accounts, no cookies, and no analytics or tracking. The app is a set of static files, and Google is contacted only when you connect your own Drive. Your data below has the details.

Free, Commercial Use Included​

Diagramforce is free under the European Union Public Licence 1.2 (EUPL 1.2). Any use is allowed as long as it keeps my credit, commercial use included. The diagrams you make are yours. Read the full text on GitHub, or the Terms of Use. The Diagramforce name and the MD logo are not part of the licence.

How it compares​

draw.io and Lucidchart are the two general diagramming tools closest to Diagramforce.

A Venn diagram of Diagramforce, Lucidchart and draw.io. Diagramforce and draw.io are free and need no account, Diagramforce and Lucidchart share Salesforce import, Lucidchart and draw.io share real-time co-editing, and no area holds all threeA Venn diagram of Diagramforce, Lucidchart and draw.io. Diagramforce and draw.io are free and need no account, Diagramforce and Lucidchart share Salesforce import, Lucidchart and draw.io share real-time co-editing, and no area holds all three
Diagramforcedraw.ioLucidchart
PriceFreeFreeFree with three editable documents, then paid per user
AccountNot neededNot neededNeeded
Where your diagrams liveYour browser or your own Google DriveYour device, your browser or your own cloud storageYour Lucid account
Salesforce shapes1,700+ SLDS icons, with Data Views and Data Model Object packsA Salesforce shape libraryA Salesforce shape library and templates
Import from your orgFlows, objects, Data 360 mappings, data model objects and batch data transforms, data graphs, context definitions and the role hierarchyNoObjects, on Enterprise plans
Real-time co-editingNoYes, with Google Drive or OneDriveYes
AIA Claude plugin, an LLM Spec for any other model, and headless rendering to an imageAn MCP server and plugins for AI assistantsLucid AI
Source codeOpen, under the EUPL 1.2Open, under Apache 2.0Not published
  • Pick Diagramforce if your diagrams are about Salesforce. It draws Flows, objects and Data 360 mappings from your org's metadata, and it is free with no account.
  • Pick draw.io if you need a free, general editor inside the tools your team already uses, such as Confluence, Jira, Google Drive or VS Code.
  • Pick Lucidchart if your company wants one managed diagramming suite, with real-time co-editing, single sign-on and its Salesforce integration on the Enterprise plan.

Frequently asked questions​

Is Diagramforce free, also at work?

Yes, commercial use included, as long as my credit stays. It is open source under the EUPL 1.2, and there is no subscription.

Do I need an account or an install?

No. Open diagramforce.com and start drawing. It is tested in Chrome, Vivaldi and Safari, keeps working offline once it has loaded, and you can install it from the browser as an app of its own.

Can Diagramforce draw my existing Salesforce Flow or Data 360 mapping?

Yes. Load the Flow's .flow-meta.xml file or its Tooling API response, or the metadata of your objects, your Data 360 mappings, data model objects and batch data transforms, a data graph, a context definition or the role hierarchy, and Diagramforce draws the diagram. The Claude plugin fetches that metadata for you through the Salesforce CLI.

Where are my diagrams stored?

In your browser's storage, until you connect your own Google Drive. A browser can clear a site's storage after a few weeks without a visit, so save a diagram you care about as a file, or connect Drive. Diagramforce marks a diagram that lives only on your device.

Can two people edit a diagram at the same time?

No, not at the same time. A Google Drive link shares the live file with the people you choose, and a Diagramforce link gives them a copy of their own.

Can I embed a diagram in Confluence, Notion or my own site?

Yes. Share copies an embed code - a read-only view that shows the diagram alone, fitted to its frame, with a way to open it in Diagramforce. Nothing is uploaded, as the diagram travels inside the code. A diagram you share publicly from Google Drive can get a live embed, which always shows the latest version.

Can I import a diagram from Mermaid or draw.io?

Mermaid source imports as an editable diagram, and the import is still in beta. It covers flowcharts, state, entity relationship and sequence diagrams and Gantt charts. There is no converter for draw.io files, but the Claude plugin reads a draw.io source or a screenshot and redraws it.

Does it work on a phone or a tablet?

It opens and has a layout for small screens, and touch works with limits. Diagramforce is built for drawing with a mouse or a trackpad, so use a computer for anything more than a look or a small fix.

Is Diagramforce a Salesforce product?

No. It is my own project. It is not created, sponsored or endorsed by Salesforce, or otherwise affiliated with it.

Does Diagramforce support [feature X]?

What Diagramforce does today is listed above. If the feature you need isn't there, write in, as feature requests inform what ships next.

Support​

Found a bug? Open an issue on GitHub. For a question or a feature idea, email support_diagramforce [at] mateuszdabrowski.pl. Help → Copy diagnostics in Diagramforce gives you a plain-text report of your version, browser and recent errors to paste in. It makes most issues quicker to diagnose.

Your data​

Diagramforce is a set of static files served from GitHub Pages through Cloudflare. Those two see what any web host sees when the files load - your IP address and your browser. Nothing else is sent, as there is no Diagramforce server to send it to.

Your diagrams live in your browser's storage. They leave it in three cases, each one started by you:

  • An export or a copy, which hands the file or the image to you.
  • A Diagramforce link, which holds the diagram after the # of the address. A browser never sends that part to a server, but anyone who has the link can open the diagram, and a link you have shared cannot be taken back.
  • Google Drive, once you connect it. Diagramforce asks only for the files it created itself or that you opened with it, and saves your diagrams into your own Drive.

The Privacy Policy on diagramforce.com has the full text.