Implementing a discovery service
A micro frontend discovery service is essentially a database containing information about the available micro frontends. The basic information for an individual micro frontend consists of the following:
- Name and version
- Some additional metadata such as author and description
- URLs to one or more files acting as entry points for the micro frontend
- The dependencies shared from the micro frontend – this should include their names, versions, and URLs to the files
This way, the registry not only aids in efficient component retrieval but also ensures dependencies are managed and updated correctly, crucial for maintaining system integrity and up-to-date interactions.
As an example, by calling the Piral Cloud Feed Service (https://feed.piral.cloud), which is a publicly available micro frontend discovery service, we get a response similar to the following snippet:
{ "items": [ ...