How max-woolf/xyflow works
Project type and purpose
• It’s an open-source monorepo housing three npm packages plus a legacy v11 branch:
• @xyflow/system (shared core logic & utilities)
• @xyflow/react (React-specific wrapper & hooks)
• @xyflow/svelte (Svelte-specific wrapper & actions)
• (v11 branch: older reactflow)
• Also includes example apps (React, Svelte, Astro), E2E tests (Playwright), CI/CD on GitHub Actions, and shared tooling (ESLint, Rollup, tsconfig).
File structure
• Top-level: packages/, examples/, tests/, tooling/, .github/workflows/, pnpm-workspace.yaml
• packages/system: core algorithms (edges, nodes, drag, pan/zoom), shared types, styles
• packages/react: React components, hooks, contexts, store, container logic
• packages/svelte: Svelte components, actions, store, plugins
• examples/*: Minimal demo apps showing how to consume the libraries
• tests/playwright: Cross-framework end-to-end tests
• tooling/*: Shared ESLint, Rollup, PostCSS, and TypeScript configurations
• CI workflows: build, lint, test, release
README insights
• Describes the four packages and their relationships
• Mentions changesets for versioning & release
• Emphasis on usage, installation, and community support