Coder Social home page Coder Social logo

kevinguebert / react-flow-showcase Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xyflow/web

0.0 0.0 0.0 36.44 MB

πŸ“– This monorepo contains the xyflow website and the documentation sites for React Flow and Svelte Flow.

Home Page: https://xyflow.com

License: MIT License

Shell 0.02% JavaScript 18.79% TypeScript 33.76% CSS 2.34% HTML 0.11% Handlebars 0.02% Svelte 6.59% MDX 38.37%

react-flow-showcase's Introduction

xyflow

xyflow/web

This monorepo contains our team website and the docs for our libraries.

  • xyflow.com - our team website and blog
  • reactflow.dev - the website and documentation for the React Flow library
  • svelteflow.dev - the website and documentation for the Svelte Flow library

What's inside?

We're using Turborepo 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:

  • apps/svelte-examples is a SvelteKit app that contains all the examples we use throughout our Svelte docs. We like to use sandpack for our React examples but it doesn't support Svelte yet, so we built our own example viewer!
  • apps/xy-styleguide is a a Storybook app that tries to document and demo all the components in our packages/xy-ui package.

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:

  • 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 use often use Shadcn when looking to add new components, and we style everything with Tailwind.

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:

  • sites/reactflow.dev is the documentation site for React Flow. It, and the rest of sites, are built with Nextra and Next.js.
  • 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.

Getting started

To run any of the websites locally, you'll first need to install the dependencies and packages. We recommend using pnpm to manage your dependencies.

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:

pnpm run dev

To run the two documentation sites you can use:

pnpm run dev:docs

For everything else, there is an individual script to run each app independently:

  • pnpm run dev:reactflow.dev
  • pnpm run dev:svelteflow.dev
  • pnpm run dev:xyflow.com
  • pnpm run dev:style

Generating showcases

We have a database of projects that use our libraries stored in notion. Both the React Flow and Svelte Flow sites have a script that will generate the JSON used to populate those showcases that you will need to run if you change or update the showcases in notion.

Navigate into either sites/reactflow.dev or sites/svelteflow.dev and run:

pnpm write-showcases

Important

You must have a .env file in the project with a key called NOTION_API_SECRET for this script to work.


Support our work with React Flow Pro

React Flow and Svelte Flow is open-sourced MIT-licensed software, and it will be forever. Our libraries enables 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.

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 a high-quality, maintained, updated library, 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:

react-flow-showcase's People

Contributors

moklick avatar chrtze avatar peterkogo avatar hayleigh-dot-dev avatar johnrobbjr avatar turbobot-temp avatar zaks276 avatar andrewraycode avatar mavcook avatar lovetox avatar 1bye avatar vladstudio avatar olegpolin avatar insolite avatar elbakerino avatar kaiyuanma avatar carpye avatar bcakmakoglu avatar bradgearon avatar andreyvolfman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.