{"id":29040602,"url":"https://github.com/markslorach/server-side-pagination-next.js","last_synced_at":"2026-04-29T19:31:43.674Z","repository":{"id":239322705,"uuid":"799207716","full_name":"markslorach/server-side-pagination-next.js","owner":"markslorach","description":"Server-Side Pagination for Next.js App Router Projects.","archived":false,"fork":false,"pushed_at":"2024-05-12T10:38:51.000Z","size":543,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T21:03:43.696Z","etag":null,"topics":["nextjs","pagination","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markslorach.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-11T13:10:58.000Z","updated_at":"2024-05-12T10:38:54.000Z","dependencies_parsed_at":"2024-05-11T16:29:48.072Z","dependency_job_id":null,"html_url":"https://github.com/markslorach/server-side-pagination-next.js","commit_stats":null,"previous_names":["markslorach/pagination-next.js","markslorach/server-side-pagination-next.js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markslorach/server-side-pagination-next.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markslorach%2Fserver-side-pagination-next.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markslorach%2Fserver-side-pagination-next.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markslorach%2Fserver-side-pagination-next.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markslorach%2Fserver-side-pagination-next.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markslorach","download_url":"https://codeload.github.com/markslorach/server-side-pagination-next.js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markslorach%2Fserver-side-pagination-next.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32440863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","pagination","typescript"],"created_at":"2025-06-26T14:36:27.351Z","updated_at":"2026-04-29T19:31:43.659Z","avatar_url":"https://github.com/markslorach.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server-Side Pagination for Next.js App Router Projects\n\nPagination component and example project for server-side pagination within Next.js App Router projects. \n\n**Key Features**\n\n- **Server-side Pagination:** Paginates datasets by fetching data on the server and rendering only the necessary subset for each page.\n- **Next.js App Router:** Utilises the App Router for routing and navigation within the Next.js application.\n- **Custom Pagination Component:** Includes a reusable Pagination component to manage page navigation and display current page information.\n\n**How to Use**\n\n1. **Clone the Repository:**\n   ```bash\n   git clone https://github.com/markslorach/pagination-next.js.git\n   ```\n   \n2. **Install Dependencies:**\n   ```bash\n   npm install\n   ```\n   \n3. **Run the Development Server:**\n   ```bash\n   npm run dev\n   ```\n   \nView project on http://localhost:3000/\n\n**Project Structure**\n\n- `app/page.tsx`: Main page component that handles data fetching and pagination logic.\n- `components/Pagination.tsx`: Reusable Pagination component.\n- `db/exampleData.ts`: Example data used for demonstration.\n\nProject uses Shadcn/ui for the example data table and pagination component buttons.\n  \n![project_example](https://github.com/markslorach/pagination-next.js/assets/15185553/f172ad64-8b65-40f4-95e4-4a020009d411)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkslorach%2Fserver-side-pagination-next.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkslorach%2Fserver-side-pagination-next.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkslorach%2Fserver-side-pagination-next.js/lists"}