Rabbinatix
Sign inGet started
Store

Average rating

FreeLogic
@rabbinatix/average-rating by Rabbinatixupdated Oct 4, 2026

The average `rating` of a list of reviews, to 1 decimal, and how many there are.

Sign in to add

Average with the path rating reads that field of every review; Round keeps 1 decimal. No reviews gives 0.

Shows: Average with a path, Round, Length.

How to use it

Add it to your logic, then add a Call Function step in any logic and pick Average rating. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.

Inputs
reviews: List of records
Outputs
average: Number
count: Whole number
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 5
Average rating
reviews
Average, Collection. 1 input, 1 output. step 2 of 5
Average
array
average
Round, Math. 2 inputs, 1 output. step 3 of 5
Round
value
decimals
result
Length, Collection. 1 input, 1 output. step 4 of 5
Length
array
length
Return, Input / output. 3 inputs, 0 outputs. step 5 of 5
Return
average
count

Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.

100%
Examplesrun live against the logic · 2/2 pass
PassedExampleInputOutput
Three reviews{"reviews":[{"rating":5},{"rating":4},{"rating":4}]}{"average":4.3,"count":3}
No reviews{"reviews":[]}{"average":0,"count":0}
Try it
Versions
In this package
Average rating (entry)