MCPcopy
hub / github.com/theodorusclarence/ts-nextjs-tailwind-starter

github.com/theodorusclarence/ts-nextjs-tailwind-starter @main sqlite

repository ↗ · DeepWiki ↗
18 symbols 91 edges 37 files 0 documented · 0%
README

Next.js + Tailwind CSS + TypeScript Starter and Boilerplate

🔋 ts-nextjs-tailwind-starter

Next.js + Tailwind CSS + TypeScript starter packed with useful development features.

Made by Theodorus Clarence

GitHub Repo stars Depfu Last Update

Features

This repository is 🔋 battery packed with:

  • ⚡️ Next.js 14 with App Router
  • ⚛️ React 18
  • ✨ TypeScript
  • 💨 Tailwind CSS 3 — Configured with CSS Variables to extend the primary color
  • 💎 Pre-built Components — Components that will automatically adapt with your brand color, check here for the demo
  • 🃏 Jest — Configured for unit testing
  • 📈 Absolute Import and Path Alias — Import components using @/ prefix
  • 📏 ESLint — Find and fix problems in your code, also will auto sort your imports
  • 💖 Prettier — Format your code consistently
  • 🐶 Husky & Lint Staged — Run scripts on your staged files before they are committed
  • 🤖 Conventional Commit Lint — Make sure you & your teammates follow conventional commit
  • ⏰ Release Please — Generate your changelog by activating the release-please workflow
  • 👷 Github Actions — Lint your code on PR
  • 🚘 Automatic Branch and Issue Autolink — Branch will be automatically created on issue assign, and auto linked on PR
  • 🔥 Snippets — A collection of useful snippets
  • 👀 Open Graph Helper Function — Awesome open graph generated using og, fork it and deploy!
  • 🗺 Site Map — Automatically generate sitemap.xml
  • 📦 Expansion Pack — Easily install common libraries, additional components, and configs.

See the 👉 feature details and changelog 👈 for more.

You can also check all of the details and demos on my blog post:

Getting Started

1. Clone this template using one of the three ways

  1. Use this repository as template

Disclosure: by using this repository as a template, there will be an attribution on your repository.

I'll appreciate if you do, so this template can be known by others too 😄

Use as template

  1. Using create-next-app

bash pnpm create next-app -e https://github.com/theodorusclarence/ts-nextjs-tailwind-starter ts-pnpm

If you still want to use pages directory (is not actively maintained) you can use this command

bash npx create-next-app -e https://github.com/theodorusclarence/ts-nextjs-tailwind-starter/tree/pages-directory project-name

  1. Using degit

bash npx degit theodorusclarence/ts-nextjs-tailwind-starter YOUR_APP_NAME

  1. Deploy to Vercel

Deploy with Vercel

2. Install dependencies

It is encouraged to use pnpm so the husky hooks can work properly.

pnpm install

3. Run the development server

You can start the server using this command:

pnpm dev

Open http://localhost:3000 with your browser to see the result. You can start editing the page by modifying src/pages/index.tsx.

4. Change defaults

There are some things you need to change including title, urls, favicons, etc.

Find all comments with !STARTERCONF, then follow the guide.

Don't forget to change the package name in package.json

5. Commit Message Convention

This starter is using conventional commits, it is mandatory to use it to commit changes.

Projects using ts-nextjs-tailwind-starter

Are you using this starter? Please add your page (and repo) to the end of the list via a Pull Request. 😃

Expansion Pack 📦

This starter is now equipped with an expansion pack.

You can easily add expansion such as React Hook Form + Components, Storybook, and more just using a single command line.

https://user-images.githubusercontent.com/55318172/146631994-e1cac137-1664-4cfe-950b-a96decc1eaa6.mp4

Check out the expansion pack repository for the commands

App Router Update

Due to App Router update, the expansion pack is currently outdated. It will be updated in the future. You can still use them by copy and pasting the files.

Extension points exported contracts — how you extend this code

ProcessEnv (Interface)
(no doc)
src/lib/env.ts

Core symbols most depended-on inside this repo

cn
called by 26
src/lib/utils.ts
openGraph
called by 2
src/lib/og.ts
webpack
called by 0
next.config.js
NextImage
called by 0
src/components/NextImage.tsx
Skeleton
called by 0
src/components/Skeleton.tsx
ArrowLink
called by 0
src/components/links/ArrowLink.tsx
getFromLocalStorage
called by 0
src/lib/helper.ts
getFromSessionStorage
called by 0
src/lib/helper.ts

Shape

Function 17
Interface 1

Languages

TypeScript100%

Modules by API surface

src/lib/helper.ts2 symbols
src/app/components/page.tsx2 symbols
src/lib/utils.ts1 symbols
src/lib/og.ts1 symbols
src/lib/logger.ts1 symbols
src/lib/env.ts1 symbols
src/components/links/ArrowLink.tsx1 symbols
src/components/Skeleton.tsx1 symbols
src/components/NextImage.tsx1 symbols
src/app/page.tsx1 symbols
src/app/not-found.tsx1 symbols
src/app/layout.tsx1 symbols

Dependencies from manifests, versioned

@commitlint/cli16.3.0 · 1×
@commitlint/config-conventional16.2.4 · 1×
@svgr/webpack8.1.0 · 1×
@tailwindcss/forms0.5.10 · 1×
@testing-library/jest-dom5.17.0 · 1×
@testing-library/react15.0.7 · 1×
@types/react19.1.8 · 1×
@types/testing-library__jest-dom5.14.9 · 1×
@typescript-eslint/eslint-plugin5.62.0 · 1×
@typescript-eslint/parser5.62.0 · 1×
autoprefixer10.4.20 · 1×

For agents

$ claude mcp add ts-nextjs-tailwind-starter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact