Vibe Coding Home

US Trade Balance Map

This software was largely created by AI Vibe Coding
Created by YouMinds
Explore the United States international trade with this interactive map.
Hover over each nation to instantly see the balance of trade, clearly indicating whether the US has a trade surplus (exporting more than importing) or a trade deficit (importing more than exporting).
Global Trade Balance 2024 (Filtered)

Total Trade Balance: Calculating...

Countries with largest surplus: Calculating...

Countries with largest deficit: Calculating...

Country Trade Balance (USD)
How was it built
This software was created using Vibe Coding by a Large Language Model LLM / chatbot and reworked in look & feel.
Some features had to be implemented manually and corrections and improvements had to be made.
The following Vibe Coding prompts were used on Gemini:
"is there a database that gives me the current reciprocal tariffs for the countries: China, European Union, Vietnam,.."
"create a html page using javascript that retvieves the current reciprocal tarriffs from the USITC website for the coutntries in the list. put the code together with javascript in one page."

A xlsx file was uploaded and the following Vibe Coding prompts were used on DeepSeek:
"create a table of the data"
"create an html page with javascript and chart.js to display the trade values from the table. Put everything in one html file."
"the horizontal bar does not work"
"put everythin in one file"
"problem persists horizontal bar is not visible"
"insert all the data please"
"add a map using openstreetmap api show the countries of the table on the map. When hovering over a country show a tooltip with the trade value."
"I do not see the tooltip when I hover over a country did you miss the coordinates."
"The page is empty"
"remove extra countries only use countries from the list"
"create a csv file for the data"
"remove the values keep the country names only in the csv"

At this point the csv data and the last running code was presented to Gemini to merge the final version.