Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steven-tey/precedent
An opinionated collection of components, hooks, and utilities for your Next.js project.
https://github.com/steven-tey/precedent
authjs eslint framer-motion nextauth nextauthjs nextjs nextjs-boilerplate nextjs-starter nextjs-template prettier prisma radix-ui railway tailwindcss typescript vercel
Last synced: about 1 month ago
JSON representation
An opinionated collection of components, hooks, and utilities for your Next.js project.
- Host: GitHub
- URL: https://github.com/steven-tey/precedent
- Owner: steven-tey
- License: mit
- Created: 2023-01-13T14:27:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-15T08:27:49.000Z (5 months ago)
- Last Synced: 2024-09-29T14:40:54.830Z (about 2 months ago)
- Topics: authjs, eslint, framer-motion, nextauth, nextauthjs, nextjs, nextjs-boilerplate, nextjs-starter, nextjs-template, prettier, prisma, radix-ui, railway, tailwindcss, typescript, vercel
- Language: TypeScript
- Homepage: https://precedent.dev
- Size: 406 KB
- Stars: 4,764
- Watchers: 27
- Forks: 418
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- stars - steven-tey/precedent - An opinionated collection of components, hooks, and utilities for your Next.js project. (TypeScript)
- stars - steven-tey/precedent - An opinionated collection of components, hooks, and utilities for your Next.js project. (TypeScript)
README
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:
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fsteven-tey%2Fprecedent&project-name=precedent&repository-name=precedent&demo-title=Precedent&demo-description=An%20opinionated%20collection%20of%20components%2C%20hooks%2C%20and%20utilities%20for%20your%20Next%20project.&demo-url=https%3A%2F%2Fprecedent.dev&demo-image=https%3A%2F%2Fprecedent.dev%2Fopengraph-image&env=NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY,CLERK_SECRET_KEY&envDescription=Create%20a%20Clerk%20application%20to%20get%20these%20variables%3A&envLink=https%3A%2F%2Fdashboard.clerk.com%2Fapps%2Fnew)
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))