Repository navigation
Description
Description
We have approval from the codeowners of optimizer and cli.
More details here:
#303
asyncapi/cli#2251
We are proceeding with the merger.
Move @asyncapi/optimizer into asyncapi/cli as packages/optimizer/. Same npm package name and public API — no breaking change for consumers.
cli is not a monorepo today — this migration also introduces npm workspaces + Turbo (root stays @asyncapi/cli) and aligns npm publish with the parser-js Changesets flow (changeset publish).
Action items
- Introduce npm workspaces + Turbo on
cli(packages/*; keep@asyncapi/cliat repo root) - Move code into
cli(packages/optimizer/) - Update
turbo.json/ monorepo wiring for the new package - Point root CLI dependency at the workspace package (today
"@asyncapi/optimizer": "^1.0.4") - Move
@asyncapi/parseron optimizer to peerDependency. - Sort out releases so
@asyncapi/optimizerpublishes fromcli(changeset publish, likeparser-js. NPM Trusted Publishing for this package oncli) - Update repo-related details in the optimizer
package.json(repository URL and other related fields as needed) - Merge CODEOWNERS: Add all current codeowners of optimizer (
@princerajpoot20) toCODEOWNERSincli - Add a spec for
optimizer(see below) - Update other relevant files as needed, such as the README and architecture docs.
Optional: verify the first release from the monorepo publishes correctly.
Out of scope: Archiving the optimizer repo.
Spec
The reason we are consolidating these repos and the broader community goal of auditing, is to improve repo health and maintainability, bring on more maintainers, and eventually reduce maintainer burnout.
As part of that, we are adding specs in these repos. Specs act as a source of truth for contributors, and more importantly give AI context about the package. That should help anyone developing here, whatever approach they follow: pure vibe coding, pure spec-driven, or a mix of both.
Notes on references inside cli
What does need updating: root package.json currently has "@asyncapi/optimizer": "^1.0.4" (npm). After migration it should use the local workspace package, so builds/tests resolve to packages/optimizer instead of registry.npmjs.org.
Release workflow today only publishes root @asyncapi/cli; after migration it should use changeset publish (like parser-js) so @asyncapi/optimizer publishes from this repo too.
Docs/README links that currently point at the standalone GitHub repo can be updated to the monorepo path as a follow-up.
References
- https://github.com/asyncapi/optimizer
- https://github.com/asyncapi/cli
- Prior art: [Community Goal 2026] [S1] Migrate
@asyncapi/openapi-schema-parserinto theparser-jsopenapi-schema-parser#326
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsCompleted
Activity
[-]Community Goal 2026] [S1] Migrate optimizer into the CLI[/-][+]Community Goal 2026] [S1] Move optimizer into the CLI[/+][-]Community Goal 2026] [S1] Move optimizer into the CLI[/-][+][Community Goal 2026] [S1] Move optimizer into the CLI[/+]princerajpoot20 commentedon Aug 10, 2026
Reason for the Advanced Classification
The Advanced Classification is required because of the following list of work that needs to be completed in order to resolve this issue:
package.json.princerajpoot20 commentedon Aug 10, 2026
I will be working on this.
aeworxet commentedon Aug 11, 2026
This GitHub issue has been submitted for participation in the Microgrant Program with the
AdvancedComplexity Level.To carry out the community pre-moderation, please independently assess whether this issue has been classified correctly according to the reasoning outlined in #306 (comment).
@AceTheCreator
AceTheCreator commentedon Aug 12, 2026
Yeah, this is
AdvancedComplexity Levelaeworxet commentedon Aug 18, 2026
Microgrant Issue's service comment
Text labels:
microgrant/2026-09,microgrant/advanced,microgrant/codingAssignment to regular contributors after: 2026-08-23 00:00:00 UTC+12:00
End Of Life after: 2026-09-30 23:59:59 UTC-12:00
@asyncapi/microgrant_team
The Microgrant Program is not a Mentorship Program. The accepted level of Microgrant Program Participants is Middle/Senior.
Regular contributors should explain in clear terms how they will approach the resolution process when expressing interest in working on this Microgrant Issue.
References: Microgrant Program 101, Microgrant Program Rules
aeworxet commentedon Aug 18, 2026
Following the expression of interest in working on this Microgrant Issue, @princerajpoot20 (
githubID: 44585452) is an AsyncAPI Maintainer specified in the file https://github.com/asyncapi/community/blob/master/MAINTAINERS.yaml, so they fall under the first category in the prioritization list.aeworxet commentedon Aug 18, 2026
Microgrant Issue's Assigned Timeline
Please note that the dates given represent deadlines, not specific dates; so if the goal is reached sooner, it's better.
Keep in mind the responsibility for violations of the Timeline.
Assignee: @princerajpoot20 (
githubID: 44585452)princerajpoot20 commentedon Sep 22, 2026
Updated the required changes to the optimizer package in the NPM portal.
princerajpoot20 commentedon Sep 22, 2026
After the pipeline fix in asyncapi/cli#2304 , the release pipeline is successful now: https://github.com/asyncapi/cli/actions/runs/35767504610/job/106883566656
princerajpoot20 commentedon Sep 22, 2026
Both new versions of CLI and Optimizer have been successfully published to npm: CLI 6.2.0 and Optimizer 2.0.0.
https://www.npmjs.com/package/@asyncapi/cli?activeTab=versions
https://www.npmjs.com/package/@asyncapi/optimizer?activeTab=versions
princerajpoot20 commentedon Sep 22, 2026
@aeworxet This microgrant issue has been completed.
aeworxet commentedon Sep 23, 2026
Microgrant Issue Is Completed 🎉
@princerajpoot20 (
githubID: 44585452), please go to the dedicated AsyncAPI Microgrant Program2026-09page on Open Collective and submit an invoice forUSD 400.00(button 'ACTIONS', dropdown option 'Submit expense') with the full URL of this Microgrant Issue as the item description, the invoice titleMicrogrant optimizer#306, and the tagmicrogrant.After submitting the invoice, please post the link to it in this Microgrant Issue as a separate comment to verify the invoice's authorship.
princerajpoot20 commentedon Sep 28, 2026
Here is the invoice: https://opencollective.com/asyncapi/projects/asyncapi-microgrant-program/expenses/347948
cc: @aeworxet
aeworxet commentedon Sep 29, 2026
princerajpoot20https://opencollective.com/asyncapi/projects/asyncapi-microgrant-program/expenses/347948✅
The invoice https://opencollective.com/asyncapi/projects/asyncapi-microgrant-program/expenses/347948 was submitted by @princerajpoot20 (
githubID: 44585452), who was the AsyncAPI Microgrant Program2026-09Participant and completed the Microgrant Issueoptimizer#306.