Skip to content
Draft

Staging #1136

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
547 commits
Select commit Hold shift + click to select a range
1681e22
chore: remove leftover tailwind.config.js file and references
printerscanner Jan 19, 2026
ecceaff
remove turbo/gen and update turbo
peterkogo Jan 19, 2026
b7a32df
docs: rename plugins to components
printerscanner Jan 19, 2026
96752c2
remove use-error-boundary
peterkogo Jan 19, 2026
77b7b36
chore: add base layer for proper css stacking
printerscanner Jan 19, 2026
538be03
e
peterkogo Jan 20, 2026
8550060
remove dotenv-cli
peterkogo Jan 20, 2026
902d6b0
style(flow-b): improve added node css
printerscanner Jan 20, 2026
fc2a0cd
update next.js
peterkogo Jan 20, 2026
b68396b
add use-framework hook
peterkogo Jan 20, 2026
04aa8c9
use client
peterkogo Jan 20, 2026
db9af89
removed barrel imports from xy-shared
peterkogo Jan 20, 2026
2fa71dc
chore: add case-studies link under more
printerscanner Jan 20, 2026
fac3812
added useFramework hook and started replacing some stuff
peterkogo Jan 21, 2026
d5f5e0c
fix build errors
peterkogo Jan 21, 2026
70a69b8
move utils into lib
peterkogo Jan 22, 2026
033b5b8
moved pro routes to xy-shared
peterkogo Jan 22, 2026
400e529
fixed svelteflow pro section
peterkogo Jan 22, 2026
a0afd4f
use getFramework instead of prop
peterkogo Jan 26, 2026
00c5309
chore(nhost): adjust auth version
moklick Jan 26, 2026
81c9ea8
Merge pull request #1108 from xyflow/shared-routes
peterkogo Jan 26, 2026
3e07911
fix outdated access token issues
peterkogo Jan 27, 2026
f9e7df9
fix wron preview deploy slug
peterkogo Jan 27, 2026
a117461
fix localhost images
peterkogo Jan 28, 2026
2479240
fix grid item links
peterkogo Jan 28, 2026
00b5731
remove next-env.d.ts from git
peterkogo Jan 28, 2026
e281442
migrate to proxy
peterkogo Jan 28, 2026
b00232a
removed layout RSC and moved checking to proxy
peterkogo Jan 28, 2026
33f4d06
protect pro routes by default
peterkogo Jan 28, 2026
557bcbc
remove unused export
peterkogo Jan 28, 2026
4d40537
add additional comment
peterkogo Jan 28, 2026
0a218f2
fix useless rename
peterkogo Jan 28, 2026
452052a
chore: disable copy page button
printerscanner Jan 28, 2026
8f4cab6
chore: move hero flow into components
printerscanner Feb 2, 2026
bfdd1b4
remove unused dependencies
peterkogo Feb 3, 2026
46d2422
update pnpm-lock
peterkogo Feb 3, 2026
9d39004
Merge branch 'main' of https://github.com/xyflow/web into staging-next
printerscanner Feb 12, 2026
c1f2cac
Update pnpm-lock.yaml
printerscanner Feb 12, 2026
aaa9133
chore: fix pro-example-viewer
printerscanner Feb 12, 2026
f14ad9a
fix: prevent build error
printerscanner Feb 12, 2026
ae754a5
chore: restore pro-examples link
printerscanner Feb 12, 2026
ea3a204
feat: Dark Mode (#1107)
printerscanner Feb 18, 2026
f092fb7
Merge branch 'main' of https://github.com/xyflow/web into staging-next
printerscanner Feb 18, 2026
2144582
chore: move collaborative flow viewer to xy-shared
printerscanner Feb 18, 2026
6a118df
fix linter error
0x0f0f0f Feb 19, 2026
871bbeb
use sessionStorage
0x0f0f0f Feb 19, 2026
5e596d9
try fixing the session storage issue
0x0f0f0f Feb 19, 2026
9fcb3af
try using the session storage in the state
0x0f0f0f Feb 19, 2026
85406a9
try fixing prerendering issue again
0x0f0f0f Feb 19, 2026
aa5618a
remove unused import
0x0f0f0f Feb 19, 2026
6451e9d
style(dark mode): fix sign up form text color
printerscanner Feb 23, 2026
d6a1adf
Add svelte flow pro examples and adjust some bugs
0x0f0f0f Feb 23, 2026
a8c8dfb
resolve dep
0x0f0f0f Feb 23, 2026
a93740c
fix pro-page
0x0f0f0f Feb 23, 2026
643790c
Apply suggestions from code review
0x0f0f0f Feb 23, 2026
6bd3c00
style(dark mode): fix secondary button color
printerscanner Feb 24, 2026
69b782a
style(dark mode): fix icon colors
printerscanner Feb 24, 2026
bdc48b4
style(dark mode): fix colors
printerscanner Feb 24, 2026
97eab7d
style(dark mode): fix light colors
printerscanner Feb 24, 2026
75ecafc
style(dark mode): fix more button colors
printerscanner Feb 24, 2026
08e03ba
style(dark mode): fix sign up form text color
printerscanner Feb 23, 2026
ac334b9
style(dark mode): fix secondary button color
printerscanner Feb 24, 2026
ef199e7
style(dark mode): fix colors
printerscanner Feb 24, 2026
3c3a381
style(dark mode): fix light colors
printerscanner Feb 24, 2026
c639346
move pro examples page to xy-shared
0x0f0f0f Feb 24, 2026
6f5ae59
Merge remote-tracking branch 'origin/staging' into add-svelte-pro-exa…
0x0f0f0f Feb 24, 2026
ca310da
clean up env variables
peterkogo Feb 25, 2026
c485470
trigger deployment
peterkogo Feb 25, 2026
c4e2752
add new env variables to sveltelfow
peterkogo Feb 25, 2026
1251282
fix example apps preview url
peterkogo Feb 25, 2026
727b050
fix errors in svelteflow dev
peterkogo Feb 25, 2026
3794164
merge main
peterkogo Feb 26, 2026
e0f7fa8
merge staging
peterkogo Feb 26, 2026
2b54bdd
fix image urls
peterkogo Feb 26, 2026
339c32c
fix pro example viewrt
peterkogo Feb 26, 2026
159f0dc
Merge pull request #1137 from xyflow/add-svelte-pro-examples
peterkogo Feb 26, 2026
1890173
chore: fix button hover color
printerscanner Feb 26, 2026
06f7322
add dark mode for example apps (#1139)
peterkogo Feb 26, 2026
16b90e3
style: fix icon colors light/dark mode
printerscanner Mar 3, 2026
3637b4e
Examples Overview Refactor (#1140)
printerscanner Mar 5, 2026
f106f6d
chore: fix routes for pro examples
printerscanner Mar 5, 2026
f5183a3
refactor(examples): use static structure
moklick Mar 9, 2026
0d4d995
chore(example-apps): cleanup
moklick Mar 9, 2026
a42e0ea
chore(example-overviews): use correct titles
moklick Mar 9, 2026
88bb7ca
removed utils function and simplified some things
peterkogo Mar 10, 2026
1ccee20
chore(example-utils): cleanup
moklick Mar 10, 2026
79d3466
chore(env): cleanup
moklick Mar 10, 2026
88f9eba
Merge pull request #1143 from xyflow/refactor/examples-simplify
moklick Mar 10, 2026
9bbe999
added diffing to the screenshot tool and optimized the way animations…
peterkogo Mar 10, 2026
5635ec4
add screenshots command to top level
peterkogo Mar 10, 2026
a57a534
fix feature overview title
peterkogo Mar 11, 2026
08d8326
fix feature overview screen stuck in dark mode
peterkogo Mar 11, 2026
bb192e0
feat: create dropdown menu (#1141)
printerscanner Mar 11, 2026
e519010
fix examples overview double border and border colors
peterkogo Mar 11, 2026
dbdf4ee
update algolia and fix styles
peterkogo Mar 11, 2026
c08e8da
fix jumping site when search is opened
peterkogo Mar 11, 2026
22f59f8
fix jumping of content when search opens
peterkogo Mar 11, 2026
2899cae
fix weird borders of containers
peterkogo Mar 11, 2026
ec5a3d1
fix showcases and muted color
peterkogo Mar 11, 2026
fc981ce
fix dark mode gradient for login
peterkogo Mar 12, 2026
fce6b46
fix color hues to be based on primary
peterkogo Mar 12, 2026
76f5a8f
Update auth version to 0.47.0
moklick Mar 16, 2026
10760fb
Align quick start and installation
0x0f0f0f Mar 16, 2026
ae4f13b
add local config to .env
peterkogo Mar 16, 2026
211eb18
temporary: shorten access token expiresIn
peterkogo Mar 16, 2026
795e822
Add vercel.json to enable fluid computing
moklick Mar 16, 2026
0a9f48a
use proxy on every route
peterkogo Mar 17, 2026
30cb12d
disable fluid
peterkogo Mar 17, 2026
0a8505d
better matcher for proxy
peterkogo Mar 17, 2026
a59676b
add edge labels and handles pages, move pro example
0x0f0f0f Mar 17, 2026
2a5e747
make it build
0x0f0f0f Mar 17, 2026
d539f77
activate fluid compute
peterkogo Mar 17, 2026
e0d4786
fix nhost-js version
peterkogo Mar 17, 2026
6546ed4
fix nhost version
peterkogo Mar 17, 2026
ac10631
fix proxy redirects
peterkogo Mar 17, 2026
1432fdd
add hook to track refresh token changes
peterkogo Mar 18, 2026
7b77528
fix refresh hook output
peterkogo Mar 18, 2026
f647c72
fix refresh hook output
peterkogo Mar 18, 2026
d86a2bb
fix refresh hook output
peterkogo Mar 18, 2026
3144dca
pull refresh token expires down to 60
peterkogo Mar 18, 2026
a13e7ee
force token refresh
peterkogo Mar 18, 2026
44fd3b2
share the tables between packages
0x0f0f0f Mar 18, 2026
d770e0a
throw user out if refresh fails
peterkogo Mar 18, 2026
f6f77e5
throw user out if refresh fails
peterkogo Mar 18, 2026
fa644d7
try to prevent more middleware runs
peterkogo Mar 18, 2026
9dba569
revert proxy behavior
peterkogo Mar 18, 2026
a8f3e25
debug middleware
peterkogo Mar 19, 2026
9b8409e
debug middleware
peterkogo Mar 19, 2026
ad857a9
debug middleware
peterkogo Mar 19, 2026
ca8ffc7
fix middleware
peterkogo Mar 19, 2026
c0865d4
check session client side eagerly
peterkogo Mar 19, 2026
4434b02
update pro example images and extract example overview
peterkogo Mar 19, 2026
13c0f4a
fix session issues for svelteflow.dev
peterkogo Mar 19, 2026
ba46fea
fix layout
peterkogo Mar 19, 2026
61a3608
clean up the pro example overview pages a little and fix deviation be…
peterkogo Mar 19, 2026
dde2ab9
add conic border for pro examples
peterkogo Mar 19, 2026
c494fb9
up image cache version
peterkogo Mar 19, 2026
9443e7b
dont use hook in toplevel
0x0f0f0f Mar 23, 2026
af84fa1
refactor(pro-examples-viewer): dark mode
moklick Mar 23, 2026
7feff09
refactor(pro-examples-viewer): cleanup
moklick Mar 23, 2026
c54f52d
refactor(pro-examples-viewer): cleanup
moklick Mar 23, 2026
ab152d2
solve dark/light & hydration issues on main page
peterkogo Mar 23, 2026
4c0404f
solve dark/light & hydration issues on main page
peterkogo Mar 23, 2026
e4393a5
reorganize navbar & pro-examples location
peterkogo Mar 23, 2026
df23139
rename pro/examples to pro/content and add permanent redirects
peterkogo Mar 23, 2026
79f5567
stop delayed user icon switching and style account menu
peterkogo Mar 23, 2026
9a9f798
stop search bar from switching size
peterkogo Mar 23, 2026
8fab3b2
fix menu hover style
peterkogo Mar 23, 2026
0e7f09f
Merge pull request #1147 from xyflow/style/pro-example-viewer-dark
moklick Mar 23, 2026
417d4ef
try to fix slow sites
peterkogo Mar 24, 2026
9891c78
pull out the nav menu from the layout
peterkogo Mar 24, 2026
283ff48
revert to client side session validation
peterkogo Mar 24, 2026
ed19e87
fix navmenu
peterkogo Mar 24, 2026
8a04977
style(404-svelte): use primary colors
moklick Mar 24, 2026
eed75ec
Add concepts to Svelte flow. Fix some RF docs and add links
0x0f0f0f Mar 24, 2026
ee6512f
add the flows (not implemented) to the viewport page
0x0f0f0f Mar 24, 2026
7a8f29b
add zoom pan flows to svelte flow
0x0f0f0f Mar 24, 2026
6de7d20
apply some suggestions
0x0f0f0f Mar 24, 2026
6b025a9
refactor(pro-ex-viewer): make sign-in link work for svelte too
moklick Mar 24, 2026
f6ab8a2
grammar
0x0f0f0f Mar 24, 2026
85ab44e
fix redirect
0x0f0f0f Mar 24, 2026
ede1da9
refactor(pro-ex-viewer): dark mode
moklick Mar 24, 2026
f9da917
chore(sign-up): cleanup logs
moklick Mar 24, 2026
b1a04bf
chore(pro-viewer): handle templates
moklick Mar 24, 2026
07ede43
style(pro-ex): gradient
moklick Mar 24, 2026
0392f84
refactor(case-studies): do not show empty prev/next cards
moklick Mar 24, 2026
657848e
refactor(pro-viewer): call to action for logged in users
moklick Mar 24, 2026
6511df2
chore(components): cleanup
moklick Mar 24, 2026
3d7660c
smooth transition for pro buttons
peterkogo Mar 24, 2026
a6de222
fix navmenu animation
peterkogo Mar 24, 2026
7a2235c
correctly configure prettier-plugin-tailwindcss
peterkogo Mar 24, 2026
29ccfd2
implement client side sign in
peterkogo Mar 24, 2026
aed864e
remove signOut server function
peterkogo Mar 25, 2026
82decc3
remove sign-email-passwordless server action
peterkogo Mar 25, 2026
7f277d1
Merge pull request #1148 from xyflow/client-nhost
peterkogo Mar 25, 2026
f961028
style(sidebar): theme switch
moklick Mar 25, 2026
6f02ab1
refactor(no-auth): do not show loading spinner
moklick Mar 25, 2026
3f822a4
fix(no-auth): bring back loading spinner
moklick Mar 25, 2026
d69de3a
distinguish between menubar trigger and buttons in navbar
peterkogo Mar 25, 2026
308775a
rename navmenu
peterkogo Mar 25, 2026
b24ba76
pull out account menu
peterkogo Mar 25, 2026
107d793
replace custom implementation with shadcn navmenu & align account nav…
peterkogo Mar 25, 2026
2b3eedd
fix pro button animation
peterkogo Mar 25, 2026
216829f
make pro clickable in the navbar
peterkogo Mar 25, 2026
445b5a1
prevent session refresher to run too often
peterkogo Mar 25, 2026
940a9fe
fix wrong selector in useConnectionDrawer
peterkogo Mar 25, 2026
80f125d
improve custom nodes example
peterkogo Mar 25, 2026
e906978
add central image cache versions
peterkogo Mar 25, 2026
90500bc
fix logout color in dark mode
peterkogo Mar 25, 2026
3526f62
add utility classes page and fix various issues
0x0f0f0f Mar 25, 2026
a874aee
make error page rsc
peterkogo Mar 26, 2026
681b1cd
make all error pages rscs
peterkogo Mar 26, 2026
985bfcf
Merge branch 'staging' into align-svelte-react-learn-sections
peterkogo Mar 26, 2026
cacbd1e
merge staging
peterkogo Mar 26, 2026
e700222
refactor(pro): signed in labels
moklick Mar 26, 2026
9ce0cfc
fix cached image version
peterkogo Mar 27, 2026
8500b44
adjust account menu styling
peterkogo Mar 27, 2026
c840fdb
reload instead of redirect when logging out
peterkogo Mar 27, 2026
08f0a5c
fix gradient of the sign up button description
peterkogo Mar 27, 2026
471aa0f
move colorMode prop in all examples to last position from first
peterkogo Mar 27, 2026
a432e67
add colorMode=system to all examples
peterkogo Mar 27, 2026
7102e7a
remove prop destructuring
0x0f0f0f Mar 30, 2026
1317153
chore(urls): use new react flow pro url
moklick Mar 30, 2026
30d2786
chore(urls): use new react flow pro url
moklick Mar 30, 2026
610cfb2
chore(urls): use new react flow pro url
moklick Mar 31, 2026
95c070e
Merge remote-tracking branch 'origin/main' into staging
0x0f0f0f Mar 31, 2026
116ed51
Merge remote-tracking branch 'origin/staging' into staging
0x0f0f0f Mar 31, 2026
1dfe72a
align the building-a-flow tutorial
0x0f0f0f Mar 31, 2026
a6c830a
fix typo
0x0f0f0f Mar 31, 2026
9bd45d3
apply suggestions
0x0f0f0f Apr 1, 2026
2e591d0
Merge pull request #1162 from xyflow/staging-merge-main
moklick Apr 1, 2026
b3fb61d
refactor(pro-content): update
moklick Apr 1, 2026
b7a05dc
feat(prices): handle frameworks
moklick Apr 1, 2026
b4a556e
further improvements and fixes to guides
0x0f0f0f Apr 1, 2026
8610786
move more example apps to correct structure and fix css
0x0f0f0f Apr 1, 2026
491f3c0
adjust slug
0x0f0f0f Apr 1, 2026
59ad845
Merge remote-tracking branch 'origin/staging' into align-svelte-react…
0x0f0f0f Apr 1, 2026
5d92c7f
Merge pull request #1163 from xyflow/refactor/framework-pricing
moklick Apr 2, 2026
0983af5
align layout page
0x0f0f0f Apr 2, 2026
5205dc5
adjust component
0x0f0f0f Apr 2, 2026
54115e5
move last example in guides directory to learn (example is unused)
0x0f0f0f Apr 2, 2026
f1a734c
add dark mode information to theming
0x0f0f0f Apr 2, 2026
fe2d0d4
move section
0x0f0f0f Apr 2, 2026
86884a6
move section again
0x0f0f0f Apr 2, 2026
6d7dd8e
fix the theming class names table
0x0f0f0f Apr 2, 2026
f98a18b
apply suggestions
0x0f0f0f Apr 2, 2026
6bc2b66
correct usage of ThemingClassNames
0x0f0f0f Apr 2, 2026
6f91604
chore(prices): handle fraemwork
moklick Apr 2, 2026
76cbc57
chore(pro-content): add template images
moklick Apr 2, 2026
ff5280c
Merge pull request #1164 from xyflow/refactor/pro-content-page
moklick Apr 2, 2026
bc78b13
adjust playonline
0x0f0f0f Apr 7, 2026
49a3605
adjust theming class names
0x0f0f0f Apr 7, 2026
9bf0899
adjust html snippet
0x0f0f0f Apr 7, 2026
58af87e
reintroduce the vite section in quickstart
0x0f0f0f Apr 7, 2026
8564deb
adjustments
0x0f0f0f Apr 7, 2026
7904690
fix color issues in xyflow.dev
peterkogo Apr 7, 2026
77ea812
chore(getting-started): cleanup
moklick Apr 7, 2026
676e213
fix pro examples content hero image
peterkogo Apr 7, 2026
3875c25
adjust css of examples in learn section
0x0f0f0f Apr 7, 2026
69f4f67
remove theme
0x0f0f0f Apr 7, 2026
864f4cd
adjust example in dark mode
0x0f0f0f Apr 7, 2026
c807cf2
fix pro examples content hero image again
peterkogo Apr 7, 2026
c14034d
remove posting refresh tokens to discord
peterkogo Apr 8, 2026
e23735a
buttons should have pointer on default
peterkogo Apr 8, 2026
e130e02
format files
peterkogo Apr 8, 2026
4e200fc
fix overview flow dark mode
peterkogo Apr 8, 2026
5e32efe
Merge pull request #1146 from xyflow/align-svelte-react-learn-sections
moklick Apr 8, 2026
ef9ac51
chore(pricing-plans): generic quote request link
moklick Apr 8, 2026
bd266bb
refresh plan correctly after stripe checkout
peterkogo Apr 8, 2026
1651243
comment
peterkogo Apr 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ coverage
out/
build
sitemap.xml
next-env.d.ts

# misc
.DS_Store
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"useTabs": false,
"singleQuote": true,
"printWidth": 90,
"proseWrap": "always"
"proseWrap": "always",
"plugins": ["prettier-plugin-tailwindcss"]
}
60 changes: 30 additions & 30 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and
expression, level of experience, education, socio-economic status, nationality,
personal appearance, race, religion, or sexual orientation.
In the interest of fostering an open and welcoming environment, we as contributors and
maintainers pledge to making participation in our project and our community a
harassment-free experience for everyone, regardless of age, body size, disability,
ethnicity, sex characteristics, gender identity and expression, level of experience,
education, socio-economic status, nationality, personal appearance, race, religion, or
sexual orientation.

## Our Standards

Expand All @@ -19,41 +19,41 @@ Examples of behavior that contributes to creating a positive environment include

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Publishing others' private information, such as a physical or electronic address,
without explicit permission

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective and/or
restorative action in response to any instances of unacceptable behavior.
Project maintainers are responsible for clarifying the standards of acceptable behavior
and are expected to take appropriate and fair corrective and/or restorative action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, or to ban temporarily or permanently any
contributor for other behaviors that they deem inappropriate, threatening,
offensive, or harmful.
Project maintainers have the right and responsibility to remove, edit, or reject comments,
commits, code, wiki edits, issues, and other contributions that are not aligned to this
Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors
that they deem inappropriate, threatening, offensive, or harmful.

Where it is appropriate and parties consent, project maintainers will endeavour
to facilitate restorative justice over punitive action.
Where it is appropriate and parties consent, project maintainers will endeavour to
facilitate restorative justice over punitive action.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
This Code of Conduct applies both within project spaces and in public spaces when an
individual is representing the project or its community. Examples of representing a
project or community include using an official project e-mail address, posting via an
official social media account, or acting as an appointed representative at an online or
offline event. Representation of a project may be further defined and clarified by project
maintainers.

Additionally, we ask that all community members uphold the standards laid out in
this Code of Conduct to create a safe and welcome space for all.
Additionally, we ask that all community members uphold the standards laid out in this Code
of Conduct to create a safe and welcome space for all.

## Attribution

This Code of Conduct is a direct descendant of the [Gleam Code of Conduct](https://github.com/gleam-lang/gleam/blob/f793b5d28a3102276a8b861c7e16a19c5231426e/CODE_OF_CONDUCT.md),
which is itself a descendant of the [Contributor Covenant (v1.4)](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html).
This Code of Conduct is a direct descendant of the
[Gleam Code of Conduct](https://github.com/gleam-lang/gleam/blob/f793b5d28a3102276a8b861c7e16a19c5231426e/CODE_OF_CONDUCT.md),
which is itself a descendant of the
[Contributor Covenant (v1.4)](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html).
59 changes: 29 additions & 30 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,57 @@
# Contributing to React Flow

Hello there! So glad you want to help out with our documentation 🤗 You’re the
best. Here’s a guide for how you can contribute to the project.
Hello there! So glad you want to help out with our documentation 🤗 You’re the best.
Here’s a guide for how you can contribute to the project.

# Our Contributing Philosophy

The direction of each of our libraries, which new features are added, and which
are left out, is decided by the core team (sometimes referred to as a “cathedral”
style of development). The core team is paid to do this work
([see how here](https://reactflow.dev/blog/asking-for-money-for-open-source/)).
With this model we ensure that the people doing the most work on the library are
paid for their time and effort, and that we prevent the library from bloating.
The direction of each of our libraries, which new features are added, and which are left
out, is decided by the core team (sometimes referred to as a “cathedral” style of
development). The core team is paid to do this work
([see how here](https://reactflow.dev/blog/asking-for-money-for-open-source/)). With this
model we ensure that the people doing the most work on the library are paid for their time
and effort, and that we prevent the library from bloating.

That being said, our libraries are only interesting **because of the people who make
things with them** Some of the most important and undervalued work in open source
is from non-code contributions, and that is where we can use the most help from you.
things with them** Some of the most important and undervalued work in open source is from
non-code contributions, and that is where we can use the most help from you.

# How can I help?

The things we need the most help for the library and its community are:

**🐛 Bug reports:** We simply can’t catch them all. Check
[existing issues](https://github.com/xyflow/xyflow/issues/) and
discussions first, then [create a new issue](https://github.com/xyflow/xyflow/issues/new/choose)
to tell us what’s up.
[existing issues](https://github.com/xyflow/xyflow/issues/) and discussions first, then
[create a new issue](https://github.com/xyflow/xyflow/issues/new/choose) to tell us what’s
up.

**💬 Answering questions** in our [Discord Server](https://discord.gg/Bqt6xrs) and
[Github discussions](https://github.com/xyflow/xyflow/discussions). This is
surprisingly high-impact for us! Folks always have questions and we can't always
get round to them all.
[Github discussions](https://github.com/xyflow/xyflow/discussions). This is surprisingly
high-impact for us! Folks always have questions and we can't always get round to them all.

🎬 **Create tutorials** for React Flow. Send them to us and we’ll happily share them!

**✏️ Edit our docs**: This repo contains the docs sites for both React Flow and
Svelte Flow. If you notice a typo or think something can be clearer, you can let
us know by opening an issue or PR here.
**✏️ Edit our docs**: This repo contains the docs sites for both React Flow and Svelte
Flow. If you notice a typo or think something can be clearer, you can let us know by
opening an issue or PR here.

All interactions should be done with care following our
[Code of Conduct](https://github.com/xyflow/xyflow/blob/main/CODE_OF_CONDUCT.md).

## Enhancements

If you have an idea or suggestion for an enhancement to the React Flow library,
please use the [New Features](https://github.com/xyflow/xyflow/discussions/categories/new-features)
discussion section. If you want to build it yourself, **please reach out to us
before you dive into a new pull request.** The direction of React Flow and which
new features are added are discussed in our Discord Server and in
If you have an idea or suggestion for an enhancement to the React Flow library, please use
the [New Features](https://github.com/xyflow/xyflow/discussions/categories/new-features)
discussion section. If you want to build it yourself, **please reach out to us before you
dive into a new pull request.** The direction of React Flow and which new features are
added are discussed in our Discord Server and in
[this Github discussions section](https://github.com/xyflow/xyflow/discussions/categories/new-features),
and in the end they are decided by the core team.

Talking to us first about the enhancement you want to build will be the most likely
way to get your pull request into the library (see Our Contributing Philosophy
above). We would hate to see you write code you’re proud of, just to learn that
we’ve already been working on the same thing, or that we feel doesn’t fit into
the core library.
Talking to us first about the enhancement you want to build will be the most likely way to
get your pull request into the library (see Our Contributing Philosophy above). We would
hate to see you write code you’re proud of, just to learn that we’ve already been working
on the same thing, or that we feel doesn’t fit into the core library.

### Contact us

Expand All @@ -70,5 +68,6 @@ Please use a meaningful commit message and add a little description of your chan

1. Install dependencies `pnpm install`
2. Start dev server `pnpm dev`
3. Test your changes with the existing examples or add a new one if it's needed for your changes
3. Test your changes with the existing examples or add a new one if it's needed for your
changes
4. Run tests `pnpm test` and add new new tests if you are introducing a new feature
88 changes: 43 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,60 +5,56 @@
This monorepo contains our team website and the docs for our libraries.

- [xyflow.com](https://xyflow.com) - our team website and blog
- [reactflow.dev](https://reactflow.dev) - the website and documentation for the React Flow library
- [svelteflow.dev](https://svelteflow.dev) - the website and documentation for the Svelte Flow library
- [reactflow.dev](https://reactflow.dev) - the website and documentation for the React
Flow library
- [svelteflow.dev](https://svelteflow.dev) - the website and documentation for the Svelte
Flow library

## What's inside?

We're using [Turborepo](https://turbo.build/repo) to manage this monorepo because
there's a lot going on.
We're using [Turborepo](https://turbo.build/repo) to manage this monorepo because there's
a lot going on.

### apps/

The apps directory contains projects that run on the backend or applications we
might want to run during development:
The apps directory contains projects that run on the backend or applications we might want
to run during development:

- `apps/example-apps` contains all of our examples and tutorials for ReactFlow and SvelteFlow.
- `apps/ui-components` houses all of the components for [React Flow Components](https://reactflow.dev/components).
- `apps/example-apps` contains all of our examples and tutorials for ReactFlow and
SvelteFlow.
- `apps/ui-components` houses all of the components for
[React Flow Components](https://reactflow.dev/components).

### packages/

The packages in this monorepo are reusable self-contained bits that we want to
share across our apps and websites. Much of it is configuration for the different
tools we use:
The packages in this monorepo are reusable self-contained bits that we want to share
across our apps and websites. Much of it is configuration for the different tools we use:

- `packages/eslint-config-xyflow`
- `packages/xy-tailwind-config`
- `packages/xy-tsconfig`
- `packages/xy-ui` is a React component library that contains any components that
we want to share across our websites. The package encompasses everything from
page layouts, UI building blocks, and complex widgets. We often use
[Shadcn](https://ui.shadcn.com) when looking to add new components, and we style
everything with [Tailwind](https://tailwindcss.com).

### sites/

Each directory in the sites folder is a separate website that we deploy. The name
of the directory always corresponds to the domain name of the website:
Each directory in the sites folder is a separate website that we deploy. The name of the
directory always corresponds to the domain name of the website:

- `sites/reactflow.dev` is the documentation site for React Flow. It, and the
rest of sites, are built with [Nextra](https://nextra.site/) and
[Next.js](https://nextjs.org/).
- `sites/reactflow.dev` is the documentation site for React Flow. It, and the rest of
sites, are built with [Nextra](https://nextra.site/) and [Next.js](https://nextjs.org/).
- `sites/svelteflow.dev` is the documentation for our newest library, Svelte Flow.
- `sites/xyflow.com` is the new home page for our organization. It contains our
blog and some information on how we approach open source development.
- `sites/xyflow.com` is the new home page for our organization. It contains our blog and
some information on how we approach open source development.

## Getting started

To run any of the websites locally, you'll first need to install the dependencies
and packages. We recommend using [pnpm](https://pnpm.io/) to manage your dependencies.
To run any of the websites locally, you'll first need to install the dependencies and
packages. We recommend using [pnpm](https://pnpm.io/) to manage your dependencies.

```sh
pnpm install
```

If you take a peek in `package.json` you'll see we have a few different scripts
to run our apps. If you just want to run everything at once, you can just do:
If you take a peek in `package.json` you'll see we have a few different scripts to run our
apps. If you just want to run everything at once, you can just do:

```sh
pnpm run dev
Expand All @@ -79,39 +75,41 @@ For everything else, there is an individual script to run each app independently

### Displaying Showcase Projects

We have a database of projects that use our libraries stored in notion. Both the
React Flow and Svelte Flow sites are fetching this data at build time using `getStaticProps`. You need to have a `.env.local` file with a `NOTION_API_SECRET` to make this work locally. Otherwise, placeholder showcases are shown.
We have a database of projects that use our libraries stored in notion. Both the React
Flow and Svelte Flow sites are fetching this data at build time using `getStaticProps`.
You need to have a `.env.local` file with a `NOTION_API_SECRET` to make this work locally.
Otherwise, placeholder showcases are shown.

### Update React Flow and Svelte Flow dependencies

There is a Github action that checks the latest React Flow and Svelte Flow versions
daily and creates a PR if there is a new version.
There is a Github action that checks the latest React Flow and Svelte Flow versions daily
and creates a PR if there is a new version.

---

## Support our work with React Flow Pro

React Flow and Svelte Flow are open-source MIT-licensed libraries, and it will
be forever. Our libraries enable thousands of solo developers and organizations
like Stripe and Linkedin to build their node-based apps. With so many active
users, it takes time and effort to maintain the library, docs, and community.
We can’t do that without your support.
React Flow and Svelte Flow are open-source MIT-licensed libraries, and it will be forever.
Our libraries enable thousands of solo developers and organizations like Stripe and
Linkedin to build their node-based apps. With so many active users, it takes time and
effort to maintain the library, docs, and community. We can’t do that without your
support.

[<img src="./assets/readme-pro.png">](https://reactflow.dev/pro)

Why Subscribe? With your subscription, you are ensuring the sustainable
maintenance and development of both React Flow and Svelte Flow. This is how we
make sure these libraries stay MIT-licensed. In return, you get high-quality,
maintained, updated libraries, along with benefits like direct support,
prioritized feature requests, and access to our Pro Examples.
Why Subscribe? With your subscription, you are ensuring the sustainable maintenance and
development of both React Flow and Svelte Flow. This is how we make sure these libraries
stay MIT-licensed. In return, you get high-quality, maintained, updated libraries, along
with benefits like direct support, prioritized feature requests, and access to our Pro
Examples.

---

## Contact us

We're happy to try and answer any questions you have about our libraries. We're
also always excited when folks want to share their projects with us. There are
a few ways you can get in touch:
We're happy to try and answer any questions you have about our libraries. We're also
always excited when folks want to share their projects with us. There are a few ways you
can get in touch:

- Use the contact form on our [website](https://xyflow.com/contact).
- Drop us an email at [info@xyflow.com](mailto:info@xyflow.com)
Expand Down
1 change: 1 addition & 0 deletions apps/example-apps/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENABLE_EXPERIMENTAL_COREPACK=1
25 changes: 12 additions & 13 deletions apps/example-apps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,25 @@

### `pnpm dev`

Starts the vite dev server, with hot reloading. We have a custom plugin configured
to re-generate the `source.json` file whenever an example is updated, but this
will *not* hot-reload any external apps that are consuming it.
Starts the vite dev server, with hot reloading. We have a custom plugin configured to
re-generate the `source.json` file whenever an example is updated, but this will _not_
hot-reload any external apps that are consuming it.

Also note that changing an example without triggering a hot-reload (eg you have
navigated to example `A` and then changed some files in example `B`) this wil
*not* trigger a re-generate of the `source.json` file.
Also note that changing an example without triggering a hot-reload (eg you have navigated
to example `A` and then changed some files in example `B`) this wil _not_ trigger a
re-generate of the `source.json` file.

### `pnpm scaffold`

You can run this script to generate a new React or Svelte example under a given
path. It will scaffold out all the files necessary for a new example, including
the entry `index.html` and a minimal React or Svelte component.
You can run this script to generate a new React or Svelte example under a given path. It
will scaffold out all the files necessary for a new example, including the entry
`index.html` and a minimal React or Svelte component.

### `pnpm build`

Runs the `vite build` command. The same plugin that we use to generate the
`source.json` files during dev will be used here at the beginning of the build.
Runs the `vite build` command. The same plugin that we use to generate the `source.json`
files during dev will be used here at the beginning of the build.

### `pnpm screenshots`

This command updates all preview screenshots for everything under /react and
/svelte.
This command updates all preview screenshots for everything under /react and /svelte.
Loading
Loading