Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
An opinionated collection of components, hooks, and utilities for your Next.js project.
Precedent is an opinionated Next.js starter template that bundles reusable components, hooks, and utilities into a single deployable foundation, built by Steven Tey and deployable to Vercel with one click.
Precedent is an open-source starter template for Next.js projects, created by Steven Tey (@steventey). It takes a fresh Next.js scaffold and layers on a preconfigured stack: Tailwind CSS for styling, Radix UI primitives, Framer Motion for animations, Clerk for authentication, and Vercel Analytics for privacy-friendly traffic tracking. The template also ships TypeScript, ESLint, and Prettier so you get type safety and consistent code style from the start. The output is a production-ready web app foundation that you can either clone locally or deploy directly to Vercel.
next/font, and edge-rendered Open Graph images using ImageResponse.useIntersectionObserver, useLocalStorage, useScroll, and use-debounce for observing viewport entry, persisting data, tracking scroll position, and debouncing state updates.nFormatter formats numbers into compact forms like 1.2k or 1.2M, capitalize uppercases the first letter, and truncate cuts strings to a set length.useScroll and utilities like nFormatter.ImageResponse setup to produce social share images at the edge for any page.Clone the repo locally with the command npx create-next-app precedent --example "https://github.com/steven-tey/precedent", install dependencies with npm, yarn, or pnpm, then set the Clerk environment variables. For cloud deployment, the Vercel deploy button clones the repository, sets the project name, and prompts you for the Clerk publishable and secret keys before deploying.
Precedent is an open-source template hosted on GitHub, so the source code is freely available to view, clone, and modify. The page does not mention any paid license or tier.
Yes, Precedent uses Clerk for authentication. Clerk provides drop-in React components for sign-in, sign-up, and user management. You need to create a Clerk application and provide your publishable and secret keys as environment variables.
Precedent is created and maintained by Steven Tey, known on Twitter as @steventey. The repository is hosted at github.com/steven-tey/precedent and has over 5,000 stars.
The fastest way is to click the "Deploy with Vercel" button on the Precedent readme. It opens a Vercel project creation page prefilled with the repository URL, project name, and demo metadata. You'll be asked to enter your Clerk environment variables before the deployment starts.
Precedent is a starting template that adds a specific opinionated stack — Clerk, Tailwind, Radix, Framer Motion, and Vercel Analytics — on top of Next.js. The default create-next-app scaffolds a minimal Next.js app without these integrations, so Precedent saves the time of configuring each library yourself.
