{"id":13469518,"url":"https://github.com/steven-tey/precedent","last_synced_at":"2025-04-09T01:23:08.771Z","repository":{"id":65225314,"uuid":"588602746","full_name":"steven-tey/precedent","owner":"steven-tey","description":"An opinionated collection of components, hooks, and utilities for your Next.js project.","archived":false,"fork":false,"pushed_at":"2024-10-02T20:28:59.000Z","size":450,"stargazers_count":4953,"open_issues_count":31,"forks_count":442,"subscribers_count":27,"default_branch":"main","last_synced_at":"2025-04-02T00:08:57.332Z","etag":null,"topics":["authjs","eslint","framer-motion","nextauth","nextauthjs","nextjs","nextjs-boilerplate","nextjs-starter","nextjs-template","prettier","prisma","radix-ui","railway","tailwindcss","typescript","vercel"],"latest_commit_sha":null,"homepage":"https://precedent.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steven-tey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-01-13T14:27:05.000Z","updated_at":"2025-04-01T22:48:42.000Z","dependencies_parsed_at":"2023-10-03T04:59:47.743Z","dependency_job_id":"467c289f-7bb5-47c9-87c4-0212a54256d8","html_url":"https://github.com/steven-tey/precedent","commit_stats":{"total_commits":110,"total_committers":19,"mean_commits":"5.7894736842105265","dds":"0.21818181818181814","last_synced_commit":"3be40205d7cdf56082cd284f07f12251b9208f79"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steven-tey%2Fprecedent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steven-tey%2Fprecedent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steven-tey%2Fprecedent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steven-tey%2Fprecedent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steven-tey","download_url":"https://codeload.github.com/steven-tey/precedent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247953913,"owners_count":21024115,"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":["authjs","eslint","framer-motion","nextauth","nextauthjs","nextjs","nextjs-boilerplate","nextjs-starter","nextjs-template","prettier","prisma","radix-ui","railway","tailwindcss","typescript","vercel"],"created_at":"2024-07-31T15:01:43.355Z","updated_at":"2025-04-09T01:23:08.742Z","avatar_url":"https://github.com/steven-tey.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","前端开发框架及项目","📦 Legacy \u0026 Inactive Projects"],"sub_categories":["React工具库"],"readme":"\u003ca href=\"https://precedent.dev\"\u003e\n  \u003cimg alt=\"Precedent – Building blocks for your Next project\" src=\"https://precedent.dev/opengraph-image\" /\u003e\n  \u003ch1 align=\"center\"\u003ePrecedent\u003c/h1\u003e\n\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n  Building blocks for your Next project\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://twitter.com/steventey\"\u003e\n    \u003cimg src=\"https://img.shields.io/twitter/follow/steventey?style=flat\u0026label=steventey\u0026logo=twitter\u0026color=0bf\u0026logoColor=fff\" alt=\"Steven Tey Twitter follower count\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/steven-tey/precedent\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/steven-tey/precedent?label=steven-tey%2Fprecedent\" alt=\"Precedent repo star count\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#introduction\"\u003e\u003cstrong\u003eIntroduction\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#one-click-deploy\"\u003e\u003cstrong\u003eOne-click Deploy\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#tech-stack--features\"\u003e\u003cstrong\u003eTech Stack + Features\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#author\"\u003e\u003cstrong\u003eAuthor\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n## Introduction\n\nPrecedent is an opinionated collection of components, hooks, and utilities for your Next.js project.\n\n## One-click Deploy\n\nYou can deploy this template to Vercel with the button below:\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fsteven-tey%2Fprecedent\u0026project-name=precedent\u0026repository-name=precedent\u0026demo-title=Precedent\u0026demo-description=An%20opinionated%20collection%20of%20components%2C%20hooks%2C%20and%20utilities%20for%20your%20Next%20project.\u0026demo-url=https%3A%2F%2Fprecedent.dev\u0026demo-image=https%3A%2F%2Fprecedent.dev%2Fopengraph-image\u0026env=NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY,CLERK_SECRET_KEY\u0026envDescription=Create%20a%20Clerk%20application%20to%20get%20these%20variables%3A\u0026envLink=https%3A%2F%2Fdashboard.clerk.com%2Fapps%2Fnew)\n\nYou can also clone \u0026 create this repo locally with the following command:\n\n```bash\nnpx create-next-app precedent --example \"https://github.com/steven-tey/precedent\"\n```\n\nThen, install the dependencies with your package manager of choice:\n\n```bash\nnpm i\nyarn\npnpm i\n```\n\n## Tech Stack + Features\n\nhttps://github.com/user-attachments/assets/aef3c099-e371-43bf-b426-f5ba73185a7c\n\n### Frameworks\n\n- [Next.js](https://nextjs.org/) – React framework for building performant apps with the best developer experience\n- [Clerk](https://go.clerk.com/precedent) - A comprehensive user management platform with beautifully designed, drop-in React components\n\n### Platforms\n\n- [Vercel](https://vercel.com/) – Easily preview \u0026 deploy changes with git\n\n### UI\n\n- [Tailwind CSS](https://tailwindcss.com/) – Utility-first CSS framework for rapid UI development\n- [Radix](https://www.radix-ui.com/) – Primitives like modal, popover, etc. to build a stellar user experience\n- [Framer Motion](https://framer.com/motion) – Motion library for React to animate components with ease\n- [Lucide](https://lucide.dev/) – Beautifully simple, pixel-perfect icons\n- [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) – Optimize custom fonts and remove external network requests for improved performance\n- [`ImageResponse`](https://nextjs.org/docs/app/api-reference/functions/image-response) – Generate dynamic Open Graph images at the edge\n\n### Hooks and Utilities\n\n- `useIntersectionObserver` –  React hook to observe when an element enters or leaves the viewport\n- `useLocalStorage` – Persist data in the browser's local storage\n- `useScroll` – React hook to observe scroll position ([example](https://github.com/steven-tey/precedent/blob/main/components/layout/navbar.tsx#L12))\n- `nFormatter` – Format numbers with suffixes like `1.2k` or `1.2M`\n- `capitalize` – Capitalize the first letter of a string\n- `truncate` – Truncate a string to a specified length\n- [`use-debounce`](https://www.npmjs.com/package/use-debounce) – Debounce a function call / state update\n\n### Code Quality\n\n- [TypeScript](https://www.typescriptlang.org/) – Static type checker for end-to-end typesafety\n- [Prettier](https://prettier.io/) – Opinionated code formatter for consistent code style\n- [ESLint](https://eslint.org/) – Pluggable linter for Next.js and TypeScript\n\n### Miscellaneous\n\n- [Vercel Analytics](https://vercel.com/analytics) – Track unique visitors, pageviews, and more in a privacy-friendly way\n\n## Author\n\n- Steven Tey ([@steventey](https://twitter.com/steventey))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteven-tey%2Fprecedent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteven-tey%2Fprecedent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteven-tey%2Fprecedent/lists"}