Tofu and Asian green satay

1 Spanish onion, finely chopped 4 cloves garlic, crushed ½ small red chilli, crushed 1 teaspoon ginger ½ cup roasted peanuts 1 tablespoon tamari