A Chinese method, a local flavour
The Chinese brought the wok and the habit of frying yesterday’s rice. The archipelago supplied the chilli and the shrimp paste.
Frying cooked rice in a wok is a Chinese technique, and it came to the Malay archipelago with Chinese traders and settlers over many centuries. The purpose was thrift. Rice cooked the day before, in a climate where it would not keep another day, was fried with whatever else was to hand and became breakfast.
The peoples of the archipelago took up the method and seasoned it their own way: with chillies, which arrived from the Americas in the sixteenth century; with fermented shrimp paste, which was already theirs; and, in Java, with a sweet soy sauce thickened with palm sugar.

Indonesia’s dish
Nasi goreng is most closely identified with Indonesia, where it is cooked in every home, sold from carts on every street at night, and counted officially among the national dishes. The Indonesian version is the dark, sweet one, with kecap manis.
It went to the Netherlands with returning colonials and is a household dish there too.
Three parts of the idea
Leftover rice, stir-fried over high heat.
Chilli, shallot and fermented shrimp paste, pounded and fried.
Sweet soy sauce, itself a Chinese-Javanese invention.
The Malay and Singapore branch
On the Malay peninsula and in Singapore the commonest version uses little or no sweet soy. Nasi goreng kampung, village fried rice, is seasoned with pounded bird’s eye chillies, shrimp paste and crisp fried anchovies, with a handful of water spinach. Indian Muslim stalls cook their own, often red with chilli and tomato sauce, beside their mee goreng.
Where it is eaten
Dark and sweet, from carts, at night.
Hotter, less sweet, with anchovies.
In homes, takeaways and supermarkets.
Under the same name.