Rabbinatix
Sign inGet started
Store

Paginate

FreeLogic
@rabbinatix/paginate by Rabbinatixupdated Oct 4, 2026

One page of a list, the number of pages and whether there is a next one.

Sign in to add

Pages count from 1. Page p holds items (p−1)×size up to p×size.

Shows: Slice, Round Up, Multiply, Less Than.

How to use it

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

Inputs
items: List
page: Whole number
pageSize: Whole number
Outputs
items: List
totalPages: Whole number
hasNext: Yes / No
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 4 outputs. step 1 of 10
Paginate
items
page
pageSize
Subtract, Operators. 2 inputs, 1 output. step 2 of 10
-
A
B
result
Multiply, Operators. 2 inputs, 1 output. step 3 of 10
*
A
B
result
Multiply, Operators. 2 inputs, 1 output. step 4 of 10
*
A
B
result
Slice, Collection. 3 inputs, 1 output. step 5 of 10
Slice
array
start
end
result
Length, Collection. 1 input, 1 output. step 6 of 10
Length
array
length
Divide, Operators. 2 inputs, 1 output. step 7 of 10
/
A
B
result
Round Up, Math. 1 input, 1 output. step 8 of 10
Round Up
value
result
Less Than, Operators. 2 inputs, 1 output. step 9 of 10
<
A
B
result
Return, Input / output. 4 inputs, 0 outputs. step 10 of 10
Return
items
totalPages
hasNext

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
Page 2 of 3{"items":[1,2,3,4,5],"page":2,"pageSize":2}{"items":[3,4],"totalPages":3,"hasNext":true}
Last page{"items":[1,2,3,4,5],"page":3,"pageSize":2}{"items":[5],"totalPages":3,"hasNext":false}
Try it
Versions
In this package
Paginate (entry)