Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

precedent

> 前端框架
Open source

An opinionated collection of components, hooks, and utilities for your Next.js project.

5.1K stars0 likes0 views
WebsiteGitHub

About

An opinionated collection of components, hooks, and utilities for your Next.js project.

Precedent

Building blocks for your Next project

Introduction · One-click Deploy · Tech Stack + Features · Author


## Introduction Precedent is an opinionated collection of components, hooks, and utilities for your Next.js project. ## One-click Deploy You can deploy this template to Vercel with the button below: You can also clone & create this repo locally with the following command: ```bash npx create-next-app precedent --example "https://github.com/steven-tey/precedent" ``` Then, install the dependencies with your package manager of choice: ```bash npm i yarn pnpm i ``` ## Tech Stack + Features https://github.com/user-attachments/assets/aef3c099-e371-43bf-b426-f5ba73185a7c ### Frameworks - [Next.js](https://nextjs.org/) – React framework for building performant apps with the best developer experience - [Clerk](https://go.clerk.com/precedent) - A comprehensive user management platform with beautifully designed, drop-in React components ### Platforms - [Vercel](https://vercel.com/) – Easily preview & deploy changes with git ### UI - [Tailwind CSS](https://tailwindcss.com/) – Utility-first CSS framework for rapid UI development - [Radix](https://www.radix-ui.com/) – Primitives like modal, popover, etc. to build a stellar user experience - [Framer Motion](https://framer.com/motion) – Motion library for React to animate components with ease - [Lucide](https://lucide.dev/) – Beautifully simple, pixel-perfect icons - [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) – Optimize custom fonts and remove external network requests for improved performance - [`ImageResponse`](https://nextjs.org/docs/app/api-reference/functions/image-response) – Generate dynamic Open Graph images at the edge ### Hooks and Utilities - `useIntersectionObserver` –  React hook to observe when an element enters or leaves the viewport - `useLocalStorage` – Persist data in the browser's local storage - `useScroll` – React hook to observe scroll position ([example](https://github.com/steven-tey/precedent/blob/main/components/layout/navbar.tsx#L12)) - `nFormatter` – Format numbers with suffixes like `1.2k` or `1.2M` - `capitalize` – Capitalize the first letter of a string - `truncate` – Truncate a string to a specified length - [`use-debounce`](https://www.npmjs.com/package/use-debounce) – Debounce a function call / state update ### Code Quality - [TypeScript](https://www.typescriptlang.org/) – Static type checker for end-to-end typesafety - [Prettier](https://prettier.io/) – Opinionated code formatter for consistent code style - [ESLint](https://eslint.org/) – Pluggable linter for Next.js and TypeScript ### Miscellaneous - [Vercel Analytics](https://vercel.com/analytics) – Track unique visitors, pageviews, and more in a privacy-friendly way ## Author - Steven Tey ([@steventey](https://twitter.com/steventey))

GitHub Issues· 0 open

View all on GitHub

No open issues yet, or sync has not completed.

Highlights

  • •Next.js – React framework for building performant apps with the best developer experience
  • •Clerk - A comprehensive user management platform with beautifully designed, drop-in React components
  • •Vercel – Easily preview & deploy changes with git
  • •Tailwind CSS – Utility-first CSS framework for rapid UI development
  • •Radix – Primitives like modal, popover, etc. to build a stellar user experience
  • •Framer Motion – Motion library for React to animate components with ease
  • •Lucide – Beautifully simple, pixel-perfect icons
  • •next/font – Optimize custom fonts and remove external network requests for improved performance
  • •ImageResponse – Generate dynamic Open Graph images at the edge
  • •useIntersectionObserver –  React hook to observe when an element enters or leaves the viewport

> Tags

TypeScriptauthjseslintframer-motionnextauth

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架