Urgent.News

What's breaking now, across hundreds of outlets.

Culture

Two Mini Apps, One Host: Who Decides What Each Can Do?

Two teams can ship exactly the same line of page code and get different answers from the same host. That is useful when a company wants to open its app to independent teams but still decide which capabilities each service may use. It also gives a developer something precise to test. Does the host make the decision, does an approved request actually reach the underlying operation and can a page…

Two teams can launch identical page code and receive different outcomes from the same host. This proves useful when a company wants to expose its app to independent teams while retaining control over which capabilities each service may utilize. Additionally, it provides developers with a precise method for testing. The question arises: does the host make the decision, does an approved request successfully reach the underlying operation, and can the page continue functioning when the answer is negative?

For a practical demonstration, we conducted a local experiment using a simple capability. When a page requests the host's accent color, the page utilizing an approved grant receives the host's color, indigo, while the page lacking a grant employs its default graphite color. The rest of the user experience remains unchanged. To test the decision-making process and fallback mechanism in memory, we registered two service identities with a Node.js reference host and directed both to the same page function.

This experiment isolates the decision-making process and fallback mechanism from external factors such as a mobile device and an operating-system permission prompt.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Culture

More from Monday, 30 November 2026 →