Rinse the cranberries and pick out any stems or debris.
In a food processor, pulse the cranberries until coarsely chopped.
Add the sugar, green onions, cilantro, lime juice, jalapeños, and salt to the processor.
Pulse until the mixture is well combined and the desired consistency is reached.
Taste and adjust the sweetness, heat, or lime juice as needed.
Cover and refrigerate for at least 2 hours or overnight to allow the flavors to meld and the cranberries to soften.
Just before serving, stir in the grated lime zest if using.
Serve the cranberry salsa chilled, poured over a block of softened cream cheese if desired.