├── .gitignore ├── README.md ├── components ├── anatomy.tsx ├── color-mode.tsx ├── components-map.ts └── visualizer │ ├── background.tsx │ ├── canvas.tsx │ ├── controls │ ├── icons.tsx │ └── index.tsx │ ├── dom-sandbox.tsx │ ├── graph │ ├── action.tsx │ ├── bounds.tsx │ ├── edges │ │ ├── arrow-marker.tsx │ │ ├── edge.tsx │ │ ├── index.tsx │ │ └── initial-edge.tsx │ ├── index.tsx │ ├── nav.tsx │ ├── skeleton.tsx │ ├── state-node │ │ ├── actions.tsx │ │ ├── header.tsx │ │ ├── index.tsx │ │ └── layout.ts │ ├── transition.tsx │ └── wrapper.tsx │ ├── index.tsx │ ├── simulation │ ├── context.tsx │ └── machine.ts │ ├── types.ts │ └── utils │ ├── graph │ ├── create-graph.ts │ ├── create-root-node.ts │ ├── elk.machine.ts │ ├── elk.types.ts │ ├── elk.utils.ts │ └── types.ts │ ├── hooks │ └── use-effect-once.ts │ ├── machine │ ├── misc.ts │ ├── parse-guard.ts │ ├── serialize.ts │ └── state-node.ts │ └── path.ts ├── eslint.config.mjs ├── next.config.ts ├── package.json ├── pages ├── [component].tsx ├── _app.tsx ├── _document.tsx └── index.tsx ├── pnpm-lock.yaml ├── public └── favicon.ico ├── styles └── globals.css └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.* 7 | .yarn/* 8 | !.yarn/patches 9 | !.yarn/plugins 10 | !.yarn/releases 11 | !.yarn/versions 12 | 13 | # testing 14 | /coverage 15 | 16 | # next.js 17 | /.next/ 18 | /out/ 19 | 20 | # production 21 | /build 22 | 23 | # misc 24 | .DS_Store 25 | *.pem 26 | 27 | # debug 28 | npm-debug.log* 29 | yarn-debug.log* 30 | yarn-error.log* 31 | .pnpm-debug.log* 32 | 33 | # env files (can opt-in for committing if needed) 34 | .env* 35 | 36 | # vercel 37 | .vercel 38 | 39 | # typescript 40 | *.tsbuildinfo 41 | next-env.d.ts 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Zag Visualizer 2 | 3 | Explore Zag's state machines through interactive graphs 4 | 5 | ## Sponsors ✨ 6 | 7 | Thanks goes to these wonderful people 8 | 9 |
10 |
11 |
12 |
13 |
Explore Zag's state machines through interactive graphs
33 |