The frontend React App for Comfy Registry.
Registry React Frontend Github
Registry CLI Github
Install Prettier + Eslint extensions.
.vscode/settings.json
is set up in the workspace to lint + format code on save.
Run the development server
git checkout dev
brew install pnpm
pnpm install
pnpm run dev
Open http://localhost:3000 with your browser to see the result.
We use Storybook for component development and documentation. To run Storybook:
pnpm run storybook
Open http://localhost:6006 to view the component library. Storybook allows you to:
- View and interact with components in isolation
- Test different component states and variations
- See documentation for components
- Develop UI components in isolation without running the full app
We use Chromatic for visual testing and UI reviews:
# Make sure to set your project token
export CHROMATIC_PROJECT_TOKEN=your_token
pnpm run chromatic
See docs/chromatic-setup.md for more details on our Chromatic CI/CD integration.
Start the dev server.
Currently, the Orval spec is in orval.config.js
. It points to the OpenAPI spec in your localhost server. This can be changed to staging or prod.
npx orval
This generates react queries that you can use in your Components.
Make a PR to the main
branch. Once merged, Vercel will deploy to https://comfyregistry.org
To enable CORS on the google cloud storage bucket, reference the cors.json
file. More info here.
gcloud storage buckets update gs://comfy-registry --cors-file=cors.json