← Back to list

pagination-standard
by TrueNine
⭐ 1🍴 1📅 Dec 3, 2025
SKILL.md
name: pagination-standard description: Frontend-backend pagination standard, defining minimal parameter naming to reduce transmission characters, applicable to all system pagination scenarios.
Pagination Parameter Standard
Request Parameters
| Param | Full Name | Type | Default | Description |
|---|---|---|---|---|
o | offset | number | 0 | Offset, starting from which record |
s | size | number | 42 | Page size |
Response Parameters
| Param | Full Name | Type | Description |
|---|---|---|---|
d | data | array | Data list |
t | total | number | Total record count |
p | pages | number | Total page count |
Usage Examples
Backend Interface
interface PageQuery {
o?: number // offset, default 0
s?: number // size, default 42
}
interface PageResult<T> {
d: T[] // data list
t: number // total count
p: number // total pages
}
Frontend Query Params
GET /api/users?o=0&s=42
GET /api/users?o=42&s=42 // page 2
Frontend Pagination Calculation
// page number to offset
const offset = (page - 1) * size
// offset to page number
const page = Math.floor(offset / size) + 1
// total pages
const totalPages = Math.ceil(total / size)
Design Philosophy
Single-letter minimal parameter naming reduces network transmission characters. Significantly lowers bandwidth consumption in high-frequency call scenarios.
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon