Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow easy development of plugins locally #34

Open
jgbernalp opened this issue Jan 27, 2025 · 2 comments
Open

Allow easy development of plugins locally #34

jgbernalp opened this issue Jan 27, 2025 · 2 comments

Comments

@jgbernalp
Copy link
Collaborator

Currently Perses plugins use module federation to share dependencies and allow them to be injected into Perses UI (or other clients). In order to make development simple we can use the development server from the plugin side and adjust Perses Backend to run in a "plugin development mode" that will proxy requests of the /plugin endpoint to the plugin development server. As follows:

Image

Remaining work:

  • Create a single server to be able to host several plugins at once: currently the dev server runs per plugin
  • Adjust Perses backend to include development plugins when listing: /api/plugins
  • Adjust Perses backend to proxy plugin files request to the plugin dev server

Open questions:

  • Can we load dynamically cue files on the backend while developing plugins?
@Nexucis
Copy link
Member

Nexucis commented Jan 27, 2025

when you are referring to a dev server are you talking about the one created when running npm run dev ?

Can we load dynamically cue files on the backend while developing plugins?

Not yet but yeah that will be the plan

@jgbernalp
Copy link
Collaborator Author

jgbernalp commented Jan 27, 2025

when you are referring to a dev server are you talking about the one created when running npm run dev ?

Yes from the plugin side

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

No branches or pull requests

2 participants