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

UI: display protobuf as HTML #142

Open
lcmgh opened this issue Oct 20, 2023 · 2 comments
Open

UI: display protobuf as HTML #142

lcmgh opened this issue Oct 20, 2023 · 2 comments
Labels
complexity::medium Issues or ideas which require some discussion, research and more implementation work component::registry Everything related to the buffrs registry docs::project Documenting the project vision, design decisions etc priority::medium This is not urgent, but we should do this. type::feature Shipping or drafting a new feature for this product type::idea Rough idea or proposal for buffrs
Milestone

Comments

@lcmgh
Copy link

lcmgh commented Oct 20, 2023

Sorry if this is already a feature or out of scope of the project but I think it would make very much sense if the registry that serves the protobuf files also comes along with a UI to display protobuf files or derivated protobuf docs.

@xfbs
Copy link
Contributor

xfbs commented Oct 20, 2023

Hey @lcmgh! Nice to see you here.

What you are describing is definitely something that is on the roadmap. I can summarize our plans to you what I understand from talking to @mara-schulke:

  • We want to have a UI at some point that renders all of the protobuf definitions.
  • This UI should serve as the primary endpoint for documentation, meaning that it pretty-prints everything, makes items (types, services, enums) be linked, similar to what rustdoc does.
  • We would like to use that to also show dependencies and reverse dependencies not only of packages, but also of individual types, if we can.
  • We would also have a full-text search here, so that you can search for type names across the entire registry.

There is some ideas on my end for how we might achieve that:

  • In the validation crate, we are currently toying with parsing protocol buffer definitions. Having a parsed representation should enable us to make this metadata available to the UI.
  • Work is needed on the registry side to not only parse this data, but also store and serve it.
  • Someone needs to build a frontend for it.

I do have to say that while this feature is on the roadmap, it is not an immediate high-priority item. So likely we will get around to it but it will take some time. Currently we are focusing on stability of the CLI and building out the registry.

@mara-schulke
Copy link
Contributor

Hi @lcmgh, just to add this as context here:

There is already a first draft of the user interface in the registry/ui folder in this repository! The feature you are requesting is being worked on in the semi-near future after we have solved the initial registry implementation as @xfbs stated.

Citing the registry vision document:

Beyond hosting Protocol Buffers, the Buffrs Registry will serve as the tool for documentation, insights, and other essential resources associated with APIs. This comprehensive API management empowers users with valuable information to make informed decisions and streamlines the development process.

See #117 😊

Happy to hear your thoughts and further feature requests!

@mara-schulke mara-schulke added component::registry Everything related to the buffrs registry complexity::medium Issues or ideas which require some discussion, research and more implementation work type::feature Shipping or drafting a new feature for this product type::idea Rough idea or proposal for buffrs docs::project Documenting the project vision, design decisions etc priority::medium This is not urgent, but we should do this. labels Oct 20, 2023
@mara-schulke mara-schulke added this to the Registry milestone Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity::medium Issues or ideas which require some discussion, research and more implementation work component::registry Everything related to the buffrs registry docs::project Documenting the project vision, design decisions etc priority::medium This is not urgent, but we should do this. type::feature Shipping or drafting a new feature for this product type::idea Rough idea or proposal for buffrs
Projects
Status: Todo
Development

No branches or pull requests

3 participants