weflux

Crates.ioweflux
lib.rsweflux
version0.2.0
created_at2026-01-15 03:55:47.260635+00
updated_at2026-01-15 18:11:28.530431+00
descriptionMinimal DSL-driven flowchart renderer with SVG and PNG output.
homepagehttps://github.com/andrewrgarcia/weflux
repositoryhttps://github.com/andrewrgarcia/weflux
max_upload_size
id2044535
size41,783
Andrew (andrewrgarcia)

documentation

https://github.com/andrewrgarcia/weflux

README

weflux

Minimal DSL-driven flowchart renderer with SVG and PNG output.
Deterministic layout. Clean connectors. Small hackable core.


Install

cargo install weflux

Usage

weflux diagram.we        # outputs diagram.png
weflux diagram.we --svg  # outputs diagram.svg

Script format (.we)

Header

weflux <FlowName>

Nodes

<type> <ID> "<label>"

Types:

  • start
  • end
  • process
  • decision
  • io

Example:

start S "Start"
process A "Init counters"
decision C "Inside circle?"
end F "Compute π"

Edges

FROM -> TO
FROM <label> -> TO

Example:

S -> A
C yes -> D
C no -> E

Example

weflux CalculatePi

start S "Start"
process A "Init counters"
process B "Sample (x,y)"
decision C "Inside circle?"
process D "Increment inside"
process E "Increment total"
end F "Compute π"

S -> A
A -> B
B -> C
C yes -> D
C no -> E
D -> E
E -> F

Run:

weflux pi.we --svg

weflux example output


Notes

  • weflux renders structure, it does not execute logic
  • Layout is deterministic and vertical
  • Background is rendered white (no transparency)
  • Connectors are geometry-clipped (no hardcoded offsets)
  • Decision branches render with clearer bifurcation-style edges
  • Edge labels are parsed but not yet rendered

License

MIT © Andrew R. Garcia

Commit count: 0

cargo fmt