The missing GraphQL IDE
Free, open-source and cross-platform
![The Pathfinder desktop application](https://private-user-images.githubusercontent.com/4585/269622218-0eff5bcf-be3a-4028-beb2-6332c0ba19aa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NDM2OTUsIm5iZiI6MTczODk0MzM5NSwicGF0aCI6Ii80NTg1LzI2OTYyMjIxOC0wZWZmNWJjZi1iZTNhLTQwMjgtYmViMi02MzMyYzBiYTE5YWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMTU0OTU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzVmYTBiNDNjZTIwMjE5ZTcxZjYzOTRlNWFmZWM5ZmRjOGVkMTdlMGI0MjMzNzJlODc4ODY0OGMxNzZjMjNlMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.0e9dJj6s4g0Our0_AEdkvfOQaLoKccocY_VxlfIJj5k)
pnpm add @pathfinder-ide/react # or yarn add @pathfinder-ide/react or npm install @pathfinder-ide/react
The sole export from @pathfinder-ide/react
is a React component called Pathfinder. For our initial release, a limited set of props is allowed. You can see examples of props usage in the pathfinder.stories.tsx
file.
git clone https://github.com/grafbase/pathfinder.git
cd pathfinder
pnpm i
The primary development environment for Pathfinder is ladle and the Pathfinder stories are set up to use environment variables. Make a copy of the example file:
cd apps/ladle
cp .env.development.local.example .env.development.local
Once copied, you can open .env.development.local
and add an endpoint, at a minimum, and auth header key/value if necessary.
Building the necessary workers ahead of time absolves consuming code from having to fuss with build tool plugins. This is good.
pnpm react:build:workers
pnpm ladle:serve
Ladle is at http://localhost:61000/
.