How SankeyDiagram.net prepared their website for AI search

Easily create custom Sankey Diagrams from plaintext with SankeyDiagram.net. No signup, open source, and 100% private. Start visualizing your data today!

53
Lines
-95% vs avg
2
Sections
-87% vs avg
1000+
Companies
using llms.txt
1
Files
llms.txt

Key Insights

Focused approach

A streamlined 2-section structure keeps things simple and scannable.

Optimal length

At 53 lines, this file balances detail with AI context window efficiency.

llms.txt Preview

First 53 lines of 53 total

# SankeyDiagram.net

> WebApp to easily create Sankey Diagrams from plaintext input-data. No-Signup required, Open Source, Free, 100% local & private.

Important notes:

- The basic syntax for a flow is `SOURCE [AMOUNT] TARGET`, with one flow per line.
- There cannot be multiple flows with the exact same source and target.
- The color of a flow can optionally be specified with the syntax `SOURCE [AMOUNT] TARGET [#COLOR_HEX_CODE]`.
- Using the `[?]` operator as amount, all outgoing flows are summed-up for a value
- A concrete example flow would look like this: `salary [20] budget`
- Flows going back to previous nodes are allowed
- Amounts cannot be negative
- Lines starting with `// ` are treated as comments

## Docs

- [How To Create a Sankey Diagram](https://sankeydiagram.net/how-to/create-a-sankey-diagram): An example-based guide on creating Sankey Diagrams using SankeyDiagram.net

## Examples

### Basic Budget Sankey Diagram Example
```
salary [20] budget
// the "?" operator automatically sums-up all outgoing values
budget [?] groceries
groceries [3] vegetables
groceries [?] fruits
fruits [10] apples
fruits [5] bananas
```

### USA Federal Budget Sankey Visualisation Example
```
Individual Income Taxes [2200] Federal Budget 2023 [#65a30d]
Payroll Taxes [1600] Federal Budget 2023 [#65a30d]
Corporate Income Taxes [420] Federal Budget 2023 [#65a30d]
Other [229] Federal Budget 2023 [#65a30d]

Federal Budget 2023 [?] Mandatory Spending [#ef4444]
Mandatory Spending [1300] Social Security
Mandatory Spending [839] Medicare
Mandatory Spending [616] Medicaid
Mandatory Spending [448] Income Security Programs
Mandatory Spending [502] Other Mandatory

Federal Budget 2023 [?] Discretionary Spending [#ef4444]
Discretionary Spending [917] Nondefense
Discretionary Spending [805] Defense

Federal Budget 2023 [659] Net Interest [#ef4444]
```

SankeyDiagram.net is set up. Is yours?

Check your AI readiness in 30 seconds. See who AI recommends in your space. Free score, free account for the fixes.

1000+ sites already set up

SankeyDiagram.net is ready for AI. Are you?

Check your AI readiness score in 30 seconds. Free score, free account for the fixes. Then generate your own llms.txt and start tracking your visibility.