MCPcopy
hub / github.com/steven-tey/precedent

github.com/steven-tey/precedent @main sqlite

repository ↗ · DeepWiki ↗
40 symbols 94 edges 35 files 0 documented · 0%
README

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"

Then, install the dependencies with your package manager of choice:

npm i
yarn
pnpm i

Tech Stack + Features

https://github.com/user-attachments/assets/aef3c099-e371-43bf-b426-f5ba73185a7c

Frameworks

  • 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

Platforms

  • Vercel – Easily preview & deploy changes with git

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

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

Extension points exported contracts — how you extend this code

Args (Interface)
(no doc)
lib/hooks/use-intersection-observer.ts

Core symbols most depended-on inside this repo

useMediaQuery
called by 3
lib/hooks/use-media-query.ts
cn
called by 2
lib/utils.ts
useDemoModal
called by 1
components/home/demo-modal.tsx
easeOutQuad
called by 1
components/shared/counting-numbers.tsx
nFormatter
called by 1
lib/utils.ts
checkDevice
called by 1
lib/hooks/use-media-query.ts
useScroll
called by 1
lib/hooks/use-scroll.ts
redirects
called by 0
next.config.js

Shape

Function 39
Interface 1

Languages

TypeScript100%

Modules by API surface

lib/utils.ts6 symbols
lib/hooks/use-intersection-observer.ts3 symbols
components/shared/counting-numbers.tsx3 symbols
lib/hooks/use-media-query.ts2 symbols
lib/hooks/use-local-storage.ts2 symbols
components/home/demo-modal.tsx2 symbols
next.config.js1 symbols
lib/hooks/use-scroll.ts1 symbols
components/shared/tooltip.tsx1 symbols
components/shared/popover.tsx1 symbols
components/shared/modal.tsx1 symbols
components/shared/icons/twitter.tsx1 symbols

Dependencies from manifests, versioned

@clerk/nextjs5.6.2 · 1×
@radix-ui/react-dialog1.0.5 · 1×
@radix-ui/react-popover1.0.7 · 1×
@tailwindcss/forms0.5.6 · 1×
@tailwindcss/line-clamp0.4.4 · 1×
@tailwindcss/typography0.5.10 · 1×
@types/ms0.7.32 · 1×
@types/node18.11.18 · 1×
@types/react18.2.24 · 1×
@types/react-dom18.2.8 · 1×
@vercel/analytics0.1.11 · 1×

For agents

$ claude mcp add precedent \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact