You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request: Browser-compatible bundle for Java/GraalVM integration #1131
Request: Browser-compatible bundle for Java/GraalVM integration
Description
I'm working on a Java wrapper for the AsyncAPI parser using GraalVM's JavaScript engine. The current @asyncapi/parser package (v3.6.0) cannot be bundled for use in GraalVM because it depends on Node.js-specific APIs (fetch, Headers, etc.) that aren't available in GraalVM's JavaScript environment.
Current Situation
The old bundle-es5.js only supports AsyncAPI 2.4.0
The new @asyncapi/parser v3.x requires fetch API and browser globals
When bundled with webpack, it fails with: TypeError: Cannot set property 'Headers' of undefined
Request
Could you provide or help create a browser-compatible bundle that:
Supports both AsyncAPI v2.x and v3.x
Works in environments without fetch API (or includes polyfills)
Can run in GraalVM's JavaScript engine
Doesn't depend on Node.js-specific modules
Use Case
Java applications that need to parse AsyncAPI documents without spawning Node.js processes or using native V8 bindings (which don't support macOS ARM).
Alternative Solutions Considered
Using Playwright/Puppeteer (too heavy)
Using J2V8 (no macOS ARM support)
Creating custom bundle with webpack (fails due to fetch dependency)
Environment
GraalVM JS engine via javax.script
Target: Java 11+
Platform: macOS ARM, Linux, Windows
Would appreciate guidance on:
How to properly bundle the parser for non-browser/non-Node environments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
Activity
github-actions commentedon Feb 17, 2026
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
github-actions commentedon Jun 18, 2026
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
Thank you for your patience ❤️