blender-motion-state-inspection
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
How list endpoints page through results. Read before adding a list endpoint or a limit parameter.
Never use limit/offset. Lists take limit + cursor.
WHERE.{items, has_more, next_cursor}, like SessionPage. Never a bare array.id so the order is total. The cursor holds every sort key.limit + 1 to set has_more. No counts.(customer_id, updated_at DESC, id DESC).query skill.Spec: SessionQuery carries limit and cursor in the body, and SessionPage is the 200.
Position, in internal/store/models.go:
type SessionPosition struct {
UpdatedAt time.Time `json:"u"`
ID string `json:"id"`
Rank float32 `json:"r,omitempty"`
}
Store, in Sessions.Select:
if after := filter.Cursor; after != nil {
query = query.Where("(updated_at, id) < (?, ?)", after.UpdatedAt, after.ID)
}
query = query.Limit(SessionLimit(filter.Limit) + 1)
Handler: decodeCursor and encodeCursor in internal/api/cursor.go; page trims the
extra row and says whether it was there. The session cursor also records which sort it
came from, so a cursor from one sort is refused by another.
Live sessions that nothing records get the same cut and sort in Manager.find, on their
created, which is truncated to microseconds (what Postgres keeps) so that a cursor from
one half does not repeat the other. A recorded live session is listed through its row.
A text search sorts by relevance, and its cursor adds the rank:
(rank, updated_at, id) < (?, ?, ?).
Go SDK: list methods return the page and take a cursor; Items.Unwind follows it.
listCalls, listSimulationRuns and getCallEvents take a limit and no way to continue.
listSimulationRuns refuses a limit over 500, and getCallEvents one over the 10,000 decisions
a call keeps. listCalls answers 500 at most.
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
ANanthropics/skills203k2,822 new stars in the last 7 days
Generate flow fields and particle systems with p5.js, using seeded randomness for original algorithmic art.
ANanthropics/skills203k2,822 new stars in the last 7 days
HAharry0703/MoneyPrinterTurbo147k1,401 new stars in the last 7 days
SHShubhamsaboo/awesome-llm-apps146k818 new stars in the last 7 days
GAgarrytan/gstack143k524 new stars in the last 7 days