• Stars
    star
    4,721
  • Rank 8,961 (Top 0.2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 2 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An opinionated collection of components, hooks, and utilities for your Next.js project.
Precedent – Building blocks for your Next project

Precedent

Building blocks for your Next project

Steven Tey Twitter follower count Precedent repo star count

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

You can also clone & create this repo locally with the following command:

npx create-next-app precedent --example "https://github.com/steven-tey/precedent"

Tech Stack + Features

Precedent.mp4

Frameworks

  • Next.js – React framework for building performant apps with the best developer experience
  • Auth.js – Handle user authentication with ease with providers like Google, Twitter, GitHub, etc.
  • Prisma – Typescript-first ORM for Node.js

Platforms

  • Vercel – Easily preview & deploy changes with git
  • Vercel Postgres – Serverless Postgres at the Edge

UI

  • 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
  • react-wrap-balancer – Simple React component that makes titles more readable

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)
  • 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 – Debounce a function call / state update

Code Quality

  • TypeScript – Static type checker for end-to-end typesafety
  • Prettier – Opinionated code formatter for consistent code style
  • ESLint – Pluggable linter for Next.js and TypeScript

Miscellaneous

  • Vercel Analytics – Track unique visitors, pageviews, and more in a privacy-friendly way

Author

More Repositories

1

novel

Notion-style WYSIWYG editor with AI-powered autocompletion.
TypeScript
12,202
star
2

dub

An open-source link shortener with built-in analytics + free custom domains.
TypeScript
9,518
star
3

chathn

Chat with Hacker News using natural language. Built with OpenAI Functions and Vercel AI SDK.
TypeScript
1,143
star
4

extrapolate

Age transformation AI app powered by Next.js, Vercel, Replicate, Upstash, and Cloudflare R2 + Workers.
TypeScript
604
star
5

weathergpt

ChatGPT Plugin starter template built with Next.js 13 App Router, Edge Functions, and Vercel
TypeScript
331
star
6

spirals

Generate beautiful AI spiral art with one click. Powered by Vercel and Replicate.
TypeScript
292
star
7

og

Display headlines directly inside your news article's OG images.
TypeScript
172
star
8

shooketh

An AI bot built with the Vercel AI SDK, OpenAI gpt-3.5-turbo, and fine-tuned on Shakespeare's literary works.
TypeScript
123
star
9

novella

Example application using the Novel Editor.
TypeScript
92
star
10

prisma-server-actions

Demo app showing how you can use Prisma in Next.js Server Actions
TypeScript
30
star
11

moviebot

Code repository for Moviebot – an NLP-powered movie recommendation chatbot, written in Python, HTML/CSS and JavaScript & hosted on Vercel + AWS Lambda.
Python
21
star
12

steventey.com

TypeScript
16
star
13

portfolio

Github repo for my personal portfolio website, built with NextJS & Tailwind and proudly deployed on Vercel.
JavaScript
14
star
14

platformize

Official repo for the Platforms on Vercel project. Clone this repo to build your own Substack/Webflow clone with built-in multi-tenancy and custom domains. PRs welcome!
TypeScript
13
star
15

steven-tey.github.io

New personal portfolio website: https://steventey.com/
HTML
5
star
16

gitbook-edge-demo

TypeScript
4
star
17

docs

MDX
3
star
18

nextjs-boilerplate-69

JavaScript
2
star
19

sleek

Source code for Sleek, a web-app that automatically builds product pages, tracks inventory, and sends out newsletters every day.
Python
2
star
20

dub-test

TypeScript
2
star
21

owd-li

Link shortener for One Word Domains (https://www.oneword.domains), built in Flask and hosted on Vercel.
Python
2
star
22

router-bug-repro

JavaScript
1
star
23

edgedb

TypeScript
1
star
24

reviewing-a-pull-request

HTML
1
star
25

qstash-repro

TypeScript
1
star
26

middleware-latency

JavaScript
1
star
27

olaf

Portfolio website for MLH Open-source Olaf Pod! ☃️
JavaScript
1
star
28

missing-auth-header

TypeScript
1
star