coleam00/link-in-bio-page-builder
소개
A full-stack link-in-bio page builder where users can create a personalized page with links, headers, and dividers — similar to Linktree. Built with Next.js 15, React 19, and Neon Postgres.
기타 프로젝트What you can do
- Email/Password Authentication — Sign up, log in, and session management via Neon Auth
- Profile Editor — Edit display name, bio, and avatar URL with a live phone-frame preview
- Link Management — Add links, section headers, and dividers
- Drag-and-Drop Reorder — Rearrange items with dnd-kit drag handles
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalLink-in-Bio Page Builder
A full-stack link-in-bio page builder where users can create a personalized page with links, headers, and dividers — similar to Linktree. Built with Next.js 15, React 19, and Neon Postgres.
Features
- Email/Password Authentication — Sign up, log in, and session management via Neon Auth
- Profile Editor — Edit display name, bio, and avatar URL with a live phone-frame preview
- Link Management — Add links, section headers, and dividers
- Drag-and-Drop Reorder — Rearrange items with dnd-kit drag handles
- Live Preview — Real-time preview panel that mirrors the public page layout
- Responsive Layout — Side-by-side editor/preview on desktop, tab toggle on mobile
- Save with Feedback — Explicit save button with toast notifications
Tech Stack
- Framework: Next.js 15 (App Router,
src/directory) - UI: React 19, Tailwind CSS v4, shadcn/ui, Lucide icons
- Database: Neon Postgres + Drizzle ORM
- Auth: Neon Auth (
@neondatabase/auth) - Drag-and-Drop: dnd-kit
- Validation: Zod
- Testing: Vitest (unit), agent-browser (E2E)
- Linting/Formatting: Biome
Getting Started
Prerequisites
- Node.js 18+
- A Neon project with Auth enabled
Setup
Install dependencies:
npm install --legacy-peer-depsConfigure environment variables:
cp .env.example .env.localFill in your Neon database URL, auth base URL, and cookie secret.
Push the database schema:
npm run db:pushStart the dev server:
npm run devOpen http://localhost:3000 in your browser.
Note: Do not use
--turbopack— middleware does not execute with Turbopack in Next.js 15.
Project Structure
src/
├── app/
│ ├── (auth)/ # Signup + Login pages
│ ├── (dashboard)/ # Editor page
│ └── api/ # Profile, links, links/reorder, slug/check routes
├── components/
│ ├── auth/ # Signup/login forms, slug input
│ ├── editor/ # Link list, link item, add button, profile form, toolbar
│ ├── preview/ # Phone-frame preview panel
│ ├── themes/ # Minimal theme (reusable for public pages)
│ └── ui/ # shadcn/ui primitives
├── db/ # Drizzle schema + connection
├── hooks/ # useProfile data fetching hook
├── lib/ # Validations, rate limiter, utils
├── middleware.ts # Route protection for /editor, /analytics, /settings
└── types/ # Shared TypeScript types
Scripts
| Command | Description |
|---|---|
npm run dev |
Start dev server |
npm run build |
Production build |
npm run lint |
Lint with Biome |
npm run lint:fix |
Auto-fix lint issues |
npm run format |
Format with Biome |
npm run test |
Run unit tests (watch mode) |
npm run test:run |
Run unit tests once |
npm run test:e2e |
Run E2E tests |
npm run db:push |
Push schema to database |
npm run db:generate |
Generate Drizzle migrations |
npm run db:studio |
Open Drizzle Studio |
관련 프로젝트 살펴보기
불러오는 중…