What is Config Driven UI


Config-Driven UI
If a website runs globally but needs to show an ad campaign only in India, we use Config-Driven Design. This approach relies on a JSON file that defines the page layout and elements dynamically.
When the page loads for the first time, an API call fetches the config file, which determines how the HTML structure and content should be displayed. The order of elements and layout is controlled by this config.
📌 Config ⇒ Defines the webpage layout
📌 Also known as Dynamic UI
For example, Swiggy loads content dynamically based on the user’s location.

So basically, when Swiggy loads, it calls an API that returns a config file. This config defines how the page should look, including the layout and content, based on the user's location.
fetch("https://www.swiggy.com/mapi/misc_new/skeleton?lat=28.4594965&lng=77.0266383");
Result Config
{
"statusCode": 0,
"skeleton": {
"statusMessage": "done successfully",
"cards": [
{
"card": {
"card": {
"@type": "type.googleapis.com/swiggy.gandalf.widgets.v2.SearchBar",
"placeholder": "Search for restaurant, item or more",
"cta": {
"link": "swiggy://explore?keyboard=true",
"type": "DEEPLINK"
},
"height": 56
}
}
},
............
And based on the config, it renders the page. This is also known as Backend-Driven UI or Server-Driven UI.
Importance of Config-Driven UI
- Customizable
- Multiple UI variations based on location
- Better UI management
- No frontend code changes required
You need to answer this way and keep these points in mind for Config-Driven UI before designing an application.
Want me to write notes on a course?
Tell me the course, book, or research topic you want covered. If it helps learners, I'll consider adding structured digital notes for it in the garden.
Have a notes collection to feature here?
Do you have open notes you want featured in this digital garden? Let me know — we can collaborate and publish them for learners worldwide.
Reach out on Topmate: topmate.io/aat
Contact to Collaborate