{"id":15019616,"url":"https://github.com/smilejetgz/nextjs-tanstack-table","last_synced_at":"2026-01-04T22:04:52.874Z","repository":{"id":256635638,"uuid":"855389080","full_name":"smilejetgz/nextjs-tanstack-table","owner":"smilejetgz","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-12T22:40:11.000Z","size":377,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T02:03:37.245Z","etag":null,"topics":["docker","eslint","faker","lodash","nextjs14","pnpm","postgresql","prisma","shadcn-ui","table","tailwindcss","tanstack","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/smilejetgz.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-09-10T19:34:49.000Z","updated_at":"2024-09-12T22:40:14.000Z","dependencies_parsed_at":"2024-09-12T06:05:53.288Z","dependency_job_id":"a319c2ed-ecff-4a4b-a868-8252b2842b68","html_url":"https://github.com/smilejetgz/nextjs-tanstack-table","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":"0.16666666666666663","last_synced_commit":"5198da571ac859ec6303f9e02a87f74f7d274678"},"previous_names":["smilejetgz/nextjs-tanstack-table"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smilejetgz%2Fnextjs-tanstack-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smilejetgz%2Fnextjs-tanstack-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smilejetgz%2Fnextjs-tanstack-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smilejetgz%2Fnextjs-tanstack-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smilejetgz","download_url":"https://codeload.github.com/smilejetgz/nextjs-tanstack-table/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237982336,"owners_count":19397246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","eslint","faker","lodash","nextjs14","pnpm","postgresql","prisma","shadcn-ui","table","tailwindcss","tanstack","typescript"],"created_at":"2024-09-24T19:53:46.259Z","updated_at":"2025-10-24T14:31:12.181Z","avatar_url":"https://github.com/smilejetgz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  📃 Table\nพัฒนาตารางแสดงข้อมูลโดยใช้ Next.js เป็น Fullstack และ PostgreSQL เป็นฐานข้อมูลหลัก ใช้ Tanstack Table สำหรับการเก็บแคชข้อมูลในหน่วยความจำเพื่อเพิ่มความเร็วในการโหลดข้อมูลได้อย่างมีประสิทธิภาพ การเก็บข้อมูลแคชไว้สำหรับแต่ละหน้า (pagination) จะช่วยลดเวลาในการดึงข้อมูลใหม่ทุกครั้งที่ผู้ใช้เปลี่ยนหน้า ข้อมูลที่แคชไว้จะช่วยให้การเปลี่ยนหน้าทำได้รวดเร็ว\n\nการสร้างคอมโพเนนต์ของตารางใน Next.js สามารถทำได้โดยการสร้างคอมโพเนนต์ที่สามารถนำกลับมาใช้ซ้ำได้ ซึ่งหมายความว่าสามารถสร้างคอมโพเนนต์ตารางที่ใช้ได้ในหลายจุดของแอปพลิเคชันโดยไม่ต้องสร้างใหม่ทุกครั้ง การใช้ pnpm สำหรับการจัดการแพ็กเกจจะช่วยให้การติดตั้งและอัปเดตแพ็กเกจมีประสิทธิภาพมากขึ้น ช่วยให้การพัฒนาและบำรุงรักษาโค้ดสะดวกยิ่งขึ้น\nตัวอย่างเรียกใช้ Table\n\n```javascript\n// src\\features\\articles\\components\\ArticlesList.tsx\n\u003cDataTable\n columns={columns}\n data={data.data}\n pagination={data.pagination}\n setPagination={setPagination}\n/\u003e\n```\n\n## 🔧 Tools\n\n| Favicon  | Package | Version  |\n| :------------: | :------------: | :------------: |\n| \u003cimg src=\"https://nextjs.org/favicon.ico\" width=\"24vh\" \u003e | NextJS  | 14.2.6 |\n| \u003cimg src=\"https://pnpm.io/img/favicon.png\" width=\"24vh\" \u003e | Pnpm  | 9.6.0  |\n| \u003cimg src=\"https://tanstack.com/favicon.ico\" width=\"24vh\" \u003e  | Tanstack  | 5.55.0 |\n| \u003cimg src=\"https://tailwindcss.com/favicons/favicon-32x32.png?v=3\" width=\"24vh\" \u003e | Tailwind  | 3.4.10 |\n| \u003cimg src=\"https://ui.shadcn.com/favicon-16x16.png\" width=\"24vh\" \u003e  | Shadcn | 2.0.4 |\n| \u003cimg src=\"https://www.typescriptlang.org/favicon-32x32.png?v=8944a05a8b601855de116c8a56d3b3ae\" width=\"24vh\" \u003e  | Typescript  | 5 |\n| \u003cimg src=\"https://lodash.com/icons/favicon-32x32.png\" width=\"24vh\" \u003e  | Lodash  | 4.17.7 |\n| \u003cimg src=\"https://opencollective.com/static/images/favicon.ico.png\" width=\"24vh\" \u003e  | Faker  | 8.4.1 |\n| \u003cimg src=\"https://eslint.org/favicon.ico\" width=\"24vh\" \u003e  | Eslint  | 8 |\n| \u003cimg src=\"https://www.prisma.io/images/favicon-32x32.png\" width=\"24vh\" \u003e  | Prisma  | 5.18.0 |\n| \u003cimg src=\"https://www.postgresql.org/favicon.ico\" width=\"24vh\" \u003e  | PostgreSQL  | 17 |\n| \u003cimg src=\"https://www.docker.com/wp-content/uploads/2024/02/cropped-docker-logo-favicon-32x32.png\" width=\"24vh\" \u003e  | Docker  | 4.33.1 |\n| \u003cimg src=\"https://www.postman.com/_ar-assets/images/favicon-1-32.png\" width=\"24vh\" \u003e  | Postman  | 11.11.1 |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmilejetgz%2Fnextjs-tanstack-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmilejetgz%2Fnextjs-tanstack-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmilejetgz%2Fnextjs-tanstack-table/lists"}