Personal portfolio built with Next.js 16 (App Router) + TypeScript + Tailwind CSS 4, designed to run entirely on free hosting tiers — and to be structurally incapable of generating a bill.
pnpm install
pnpm dev # http://localhost:3000This machine has
nodebut nonpm—pnpmis installed at~/.local/bin/pnpm.
| Route | What it is |
|---|---|
/ |
Terminal-style hero, featured projects, toolbox |
/projects |
Curated project grid with live GitHub stats |
/blog, /blog/[slug] |
MDX blog with syntax highlighting |
/shop |
Sticker shop — CR80 trading-card stickers, checkout via Stripe Payment Links |
/shop/thanks |
Post-checkout confirmation page |
/about |
Bio, skills, links, contact form |
/api/contact |
Rate-limited contact endpoint → Resend email |
- Projects —
lib/projects.ts. Nothing appears unless you list it (manual curation). Public repos listed there get live stars/language/last-push at build time (refreshed daily via ISR). - Blog posts — add
.mdxfiles tocontent/blog/with frontmatter (title,description,date,tags, optionaldraft: true). - Identity/skills/links —
lib/site.ts. - Colors/theme —
app/globals.css(:rootvariables).
| Service | Free limit | Protection in place |
|---|---|---|
| Vercel Hobby | 100 GB bandwidth, 1M function invocations / mo | Hobby cannot charge you — resources pause instead. Static-first architecture means only the contact form touches functions. |
| Resend | 3,000 emails / mo (100/day) | 5 submissions/hour per IP + honeypot field |
| Upstash Redis | 500K commands / mo | Rate-limit check = 2 commands per form submit |
| GitHub API | 60 req/hr unauthenticated | Build-time fetch, daily revalidation, ~3 requests per refresh |
| Stripe | No monthly fee — ~2.9% + 30¢ deducted per sale | Fees come out of sales only; there is no plan, tier, or bill. Stop selling → cost drops to $0 instantly. The shop is fully static (no API routes, no env vars, no secrets). |
Also enable usage alert emails: Vercel dashboard → Settings → Usage.
Sells CR80 (credit-card-sized, 85.6 × 54 mm) vinyl stickers with original monster artwork — original designs only, no borrowed characters. Fully static: no API routes, no env vars, no secrets. Products live in lib/products.ts; artwork in public/shop/.
Add or change a design:
- Artwork →
public/shop/(landscape, CR80 ratio, rounded corners). - Stripe dashboard → Payment links → + New: set the price, enable adjust quantity (max ~5), enable collect shipping address, add a flat shipping rate (e.g. $1), and set the after-payment redirect to
https://mightyman007.vercel.app/shop/thanks?session_id={CHECKOUT_SESSION_ID}. - Paste the link into
paymentLinkUrlinlib/products.ts. Do this in test mode first and buy from yourself with card4242 4242 4242 4242to see the whole flow. - Go live: flip Stripe to live mode, create the same links, paste those URLs in, push to
main.
Fulfilling an order: Stripe emails you on each sale; the buyer's shipping address is on the payment in the dashboard. Sticker → envelope → stamp → mailbox. When a design sells out, set paymentLinkUrl: null in lib/products.ts and deactivate the link in Stripe — the card grays out on the site.
Note: Vercel Hobby's terms are technically non-commercial. A few stickers a month on a personal site is the kind of thing nobody blinks at, but if the shop ever gets serious, Vercel Pro is the upgrade.
- Push this repo to GitHub (
mightyman007). - vercel.com → Add New Project → import the repo (framework auto-detected).
- Add environment variables (see
.env.example):RESEND_API_KEY,UPSTASH_REDIS_REST_URL,UPSTASH_REDIS_REST_TOKEN,NEXT_PUBLIC_SITE_URL. (The shop adds none — checkout is hosted by Stripe.) - Deploy →
https://mightyman007.vercel.app.
Every git push to main auto-deploys. Pull requests get preview URLs.
Resend's free tier sends from onboarding@resend.dev to your own verified email — perfect for a personal contact form (submissions land at phamjohn123@gmail.com). If you later add a custom domain, you can verify it in Resend to send from hello@yourdomain.com.