Skip to content
Draft

Staging #1136

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
625 commits
Select commit Hold shift + click to select a range
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
ea1c57f
make the pro examples render server side
peterkogo Apr 9, 2026
b0b1562
dont use useSearchParams in SubscriberContext
peterkogo Apr 9, 2026
b4309f6
Merge branch 'staging' into pro-example-ssr
peterkogo Apr 9, 2026
e62978c
try some more
peterkogo Apr 9, 2026
743f5aa
lint
peterkogo Apr 9, 2026
1c08fed
#205 style: fix dependency button color
printerscanner Apr 13, 2026
71e29fb
style: fix too-wide embeds on tutorials
printerscanner Apr 13, 2026
d1186d1
fix: fix routing to pro content page
printerscanner Apr 13, 2026
b5da0d9
fix: fix 404ing pro links
printerscanner Apr 13, 2026
a2a5593
style: dark mode tweaks on examples
printerscanner Apr 14, 2026
e358e27
lets see if this huge fucking mess actually works...
peterkogo Apr 14, 2026
828c46e
see if increasing the cache life helps
peterkogo Apr 15, 2026
5beca37
another try
peterkogo Apr 15, 2026
36f1721
another crack
peterkogo Apr 15, 2026
b442e81
clean up pro example viewer
peterkogo Apr 16, 2026
cb6e5ef
fix account menu
peterkogo Apr 16, 2026
9d652c2
fix dashboard menu
peterkogo Apr 16, 2026
b11dc31
remove collaborative flow viewer
peterkogo Apr 16, 2026
d71494b
change pro platform to rsc and streamline auth
peterkogo Apr 20, 2026
f4adc34
update dependencies
peterkogo Apr 20, 2026
ad5f149
merge staging
peterkogo Apr 20, 2026
40dbc88
fix pricing plans
peterkogo Apr 20, 2026
7779b1a
fix typo
peterkogo Apr 20, 2026
7379951
remove unused components
peterkogo Apr 20, 2026
758ad77
fix collaborative viewer
peterkogo Apr 20, 2026
688f966
Merge pull request #1166 from xyflow/pro-example-ssr
peterkogo Apr 20, 2026
869fce1
chore: fix ui components for dark mode
printerscanner Apr 20, 2026
18bae4e
adjust wonky basic-terms flow
peterkogo Apr 20, 2026
2e5e5a1
chore: fix svelte enterpise redirects
printerscanner Apr 21, 2026
863ce9f
style: fix dark mode text color
printerscanner Apr 21, 2026
bf7ba22
style: fix enterprise quote color issue
printerscanner Apr 21, 2026
f20ab35
style: add border to nav menu to make it easier to see
printerscanner Apr 21, 2026
59867fc
chore: test changing the button variant
printerscanner Apr 21, 2026
09f1d32
style: fix stackblitz button dark mode
printerscanner Apr 21, 2026
5c5125a
Update index.tsx
printerscanner Apr 22, 2026
78fd309
Revert "Update index.tsx"
printerscanner Apr 22, 2026
70ba3f5
test: parse dev dependencies for stackblitz to avoid catalog error
printerscanner Apr 23, 2026
51e9d45
chore: add comment to parseCatalog function to explain it to us in th…
printerscanner Apr 23, 2026
ec54125
chore(examples): svelte / react wording
moklick Apr 28, 2026
c5a8199
chore(examples): svelte / react wording
moklick Apr 28, 2026
fe66fec
docs: blog post rough draft
printerscanner Apr 30, 2026
c4c362c
docs(blog-post): remove emojis
printerscanner Apr 30, 2026
c51a7cf
Merge branch 'main' of https://github.com/xyflow/web into staging
printerscanner May 4, 2026
f5346a8
chore: make showcases static
printerscanner May 4, 2026
e24286f
chore: fix broken author image
printerscanner May 4, 2026
eaa1d5e
Flagrantly trample over Abbey's hard work. Flesh out blog post.
hayleigh-dot-dev May 4, 2026
10f7e2f
add turnstile verification
peterkogo May 5, 2026
a426aa0
fix turnstile margin
peterkogo May 5, 2026
297ad58
Merge pull request #1170 from xyflow/turnstile
peterkogo May 5, 2026
464dd8a
trigger deploy
peterkogo May 5, 2026
a2985a6
add turnstile to team page
peterkogo May 5, 2026
9beb8b6
remove turnstile from add team members
peterkogo May 5, 2026
e4333b3
chore(testing): update
moklick May 5, 2026
de46809
chore(common-errors): add missing errors
moklick May 6, 2026
64c38ae
docs: add argus showcase, rename folder from showcases -> showcase
printerscanner May 6, 2026
1df2580
style: add dark mode colors to devtools
printerscanner May 6, 2026
8385e07
style: update lasso text for dark mode
printerscanner May 6, 2026
5b518e0
chore: remove background color on uncontrolled flow for dark mode
printerscanner May 6, 2026
4611aad
chore: rename sidebar items, add pro badge to pro examples
printerscanner May 6, 2026
fdd9101
chore: make dashboard button clickable
printerscanner May 6, 2026
496f1a5
style: update custom node for dark mode
printerscanner May 6, 2026
f7ab31e
remove banner on svelteflow
peterkogo May 6, 2026
c866540
feat: re-direct users to example when signed in
printerscanner May 6, 2026
4a2409c
fix: lint error
printerscanner May 6, 2026
04312d4
chore: fix lint errors
printerscanner May 6, 2026
6a3880c
Merge branch 'main' of https://github.com/xyflow/web into staging
printerscanner May 6, 2026
eaa069e
style: fix secondary color for xyflow on dark mode
printerscanner May 6, 2026
0f64b20
chore: add icon buttons to cursor pointer
printerscanner May 6, 2026
3059200
style(xyflow): improve dark mode styling of contact form
printerscanner May 6, 2026
d58dbbe
update example dependencies & fix stackblitz project that opens up
peterkogo May 6, 2026
b2cfe02
chore(images): use sizes prop
moklick May 11, 2026
297b3da
chore(images): use sizes prop
moklick May 11, 2026
618e5ce
chore(faq): update
moklick May 11, 2026
ec84d9a
chore(plans): update
moklick May 11, 2026
477b403
chore(plans): update
moklick May 11, 2026
a80f4a1
Merge pull request #1173 from xyflow/chore/pricing-table-faqs
moklick May 11, 2026
1960f7b
cleanup env vars
chrtze May 12, 2026
23e4c11
fix(hero): re-init reactflow provider on route change closes xyflow/i…
moklick May 13, 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
87 changes: 39 additions & 48 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 @@ -77,41 +73,36 @@ For everything else, there is an individual script to run each app independently
- `pnpm run dev:xyflow.com`
- `pnpm run dev:style`

### 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.

### 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