Skip to content

[Community Goal 2026] [S1] Move optimizer into the CLI #306

Closed

Description

@princerajpoot20

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/cli at 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/parser on optimizer to peerDependency.
  • Sort out releases so @asyncapi/optimizer publishes from cli (changeset publish, like parser-js. NPM Trusted Publishing for this package on cli)
  • 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) to CODEOWNERS in cli
  • 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

Activity

  1. changed the title [-]Community Goal 2026] [S1] Migrate optimizer into the CLI[/-] [+]Community Goal 2026] [S1] Move optimizer into the CLI[/+] on Jul 17, 2026
  2. changed the title [-]Community Goal 2026] [S1] Move optimizer into the CLI[/-] [+][Community Goal 2026] [S1] Move optimizer into the CLI[/+] on Jul 17, 2026
  3. princerajpoot20 commented on Aug 10, 2026

    @princerajpoot20
    MemberAuthor

    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:

    • Move the entire codebase with changes related to using local references. Check action item list for more details on this.
    • Set up a monorepo in the CLI.
    • Build a new release pipeline and also check and sort out the required changes on the npm side to support the release.
    • Update the documentation and other references, such as package.json.
    • Add specs for the optimizer.
  4. princerajpoot20 commented on Aug 10, 2026

    @princerajpoot20
    MemberAuthor

    I will be working on this.

  5. aeworxet commented on Aug 11, 2026

    @aeworxet
    Contributor

    This GitHub issue has been submitted for participation in the Microgrant Program with the Advanced Complexity 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

  6. AceTheCreator commented on Aug 12, 2026

    @AceTheCreator
    Member

    This GitHub issue has been submitted for participation in the Microgrant Program with the Advanced Complexity 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

    Yeah, this is Advanced Complexity Level

  7. aeworxet commented on Aug 18, 2026

    @aeworxet
    Contributor

    Microgrant Issue's service comment

    Text labels: microgrant/2026-09, microgrant/advanced, microgrant/coding
    Assignment 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
  8. added
    microgrant
    on Aug 18, 2026
  9. aeworxet commented on Aug 18, 2026

    @aeworxet
    Contributor
  10. aeworxet commented on Aug 18, 2026

    @aeworxet
    Contributor

    Microgrant Issue's Assigned Timeline

    Complexity Level Assignment Date (by GitHub) Start Date (by MP Rules) End Date (by MP Rules) Draft PR Submission Final PR Merge Start Final PR Merge End
    Advanced 2026-07-15 2026-09-07 2026-11-01 2026-09-27 2026-10-18 2026-11-01
    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)

  11. moved this to In Progress in Microgrant Programon Aug 18, 2026
  12. princerajpoot20 commented on Sep 22, 2026

    @princerajpoot20
    MemberAuthor

    Updated the required changes to the optimizer package in the NPM portal.

  13. princerajpoot20 commented on Sep 22, 2026

    @princerajpoot20
    MemberAuthor
  14. princerajpoot20 commented on Sep 22, 2026

    @princerajpoot20
    MemberAuthor

    @aeworxet This microgrant issue has been completed.

  15. aeworxet commented on Sep 23, 2026

    @aeworxet
    Contributor

    Microgrant Issue Is Completed 🎉

    @princerajpoot20 (githubID: 44585452), please go to the dedicated AsyncAPI Microgrant Program 2026-09 page on Open Collective and submit an invoice for USD 400.00 (button 'ACTIONS', dropdown option 'Submit expense') with the full URL of this Microgrant Issue as the item description, the invoice title Microgrant optimizer#306, and the tag microgrant.

    After submitting the invoice, please post the link to it in this Microgrant Issue as a separate comment to verify the invoice's authorship.

  16. moved this from In Progress to Completed in Microgrant Programon Sep 23, 2026
  17. aeworxet commented on Sep 29, 2026

    @aeworxet
    Contributor

    princerajpoot20
    https://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 Program 2026-09 Participant and completed the Microgrant Issue optimizer#306.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

microgrant

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions