In a food processor place peeled garlic, shallot, ginger and chilis. Pulse several times until a fine mince is achieved.
Add minced ingredients in to a medium sauce pan over medium heat. Stir until fragrant.
Add sugar, water, rice wine vinegar, and soy sauce to the pot. Stirring often until sugar is incorporated and liquid is clear. Allow to boil 10 minutes, stirring often.
Mix water and cornstarch to form a slurry mixture. Add to pot, stir to incorporate. Return to a boil and reduce heat to medium low. Watch the pot as it will thicken quickly. Once it reaches a thick syrupy consistency remove from heat.
Fill clean, sterilized jars. Cap and allow to cool before refrigerating. Will keep for 3 - 4 weeks.
Notes
NOTES: If using dried chili flake use 1/2 tbsp. per fresh chili pepper, Soak in the 3/4 cup of water required in the recipe. covered overnight make sure the water is hot when adding chili flake.