Skip to content

feat(core): dev-only 'Open in DSL Playground' from visualizer#2167

Open
thorthelegend99 wants to merge 9 commits intoevent-catalog:mainfrom
thorthelegend99:feat/dev-mode-playground-export
Open

feat(core): dev-only 'Open in DSL Playground' from visualizer#2167
thorthelegend99 wants to merge 9 commits intoevent-catalog:mainfrom
thorthelegend99:feat/dev-mode-playground-export

Conversation

@thorthelegend99
Copy link
Contributor

What this PR does

Adds a dev-mode only workflow to open visualized resources in the EventCatalog DSL Playground with one click.

Included

  • New dev API route:
    • GET /api/dev/playground-export
    • Supports collections: services, events, commands, queries, domains
    • Loads the selected resource and exports hydrated DSL via SDK (toDSL(..., { hydrate: true }))
  • Visualizer UI button (dev mode only):
    • Added to visualiser/[type]/[id]/[version]
    • Label: Open in DSL Playground (hydrated)
    • Fetches API DSL payload and opens https://playground.eventcatalog.dev/?dsl=...

Scope / guardrails

  • This is intentionally dev mode only (isDevMode() check).
  • No production/static-mode behavior changes in this PR.

Why

This provides a fast first step toward "export to playground" with minimal risk, while avoiding SSR/static rollout complexity in production.

Validation

  • pnpm --filter @eventcatalog/core check

@changeset-bot
Copy link

changeset-bot bot commented Feb 17, 2026

⚠️ No Changeset found

Latest commit: f61da66

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Thor seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

2 participants