Skip to content

Conversation

@DrJKL
Copy link
Contributor

@DrJKL DrJKL commented Aug 25, 2025

Summary

Add initial Monorepo Proposal

Review Focus

Any obvious blockers that would make this not worth pursuing?
Any strong opinions about the tools getting started?

┆Issue is synchronized with this Notion page by Unito

@DrJKL DrJKL requested a review from a team as a code owner August 25, 2025 19:54
@github-actions
Copy link

github-actions bot commented Aug 25, 2025

🎭 Playwright Test Results

All tests passed across all browsers!

⏰ Completed at: 08/25/2025, 08:25:38 PM UTC

📊 Test Reports by Browser


🎉 Your tests are passing across all browsers!


[PNPM](https://pnpm.io/) and [PNPM workspaces](https://pnpm.io/workspaces)

For monorepo management, I'd probably go with [Nx](https://nx.dev/), but I could be conviced otherwise.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've had good experiences with NX. I've heard good things lately about Turborepo.

Anecdotally what I have heard from friends that have used both is that NX is a little harder to setup and maintain than Turborepo. But it's got way faster performance.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I've heard decent things about both of them. A few folks I tend to trust settled on Nx, but if it does end up being too painful, we can try Turbo.


### Negative

- Monorepos take some getting used to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main trade off I've experienced:

  1. Working between packages gets much simpler. You don't have to navigate cross-repo dependency structures.
  2. The complexity just gets pushed to your build and CI process. If you don't keep those in good shape and reliable your productivity across all monorepo projects suffer.

@@ -0,0 +1,50 @@
# 2. Restructure ComfyUI_frontend as a monorepo
Copy link
Contributor

@arjansingh arjansingh Aug 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the record, I'm for this. PNPM + NX. (And in hindsight should have just done a full code review 😂)

Copy link
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objections!

@DrJKL
Copy link
Contributor Author

DrJKL commented Aug 25, 2025

@arjansingh I'll merge this one and we can add more to the doc as we go.

@arjansingh
Copy link
Contributor

@arjansingh I'll merge this one and we can add more to the doc as we go.

Do it. I'm onboard.

@DrJKL DrJKL merged commit ced62ca into main Aug 25, 2025
12 checks passed
@DrJKL DrJKL deleted the drjkl/adr/monorepo branch August 25, 2025 21:22
This was referenced Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants