Menu

Post image 1
Post image 2
1 / 2
0

What I learned shipping a Next.js 15 + CSV side project

DEV Community·SweepBase·about 1 month ago
#C36hV2Jf
Reading 0:00
15s threshold

I shipped a small side project this year: sweepbase.net , a comparison site for crypto debit and credit cards. 139 cards, no DB, the whole dataset is one CSV file in the repo. Here are the things I'd actually tell another dev about it. CSV beats a DB more often than people admit The whole catalog is data.csv , parsed at boot, validated with Zod. Reads outnumber writes by something like 10,000 to 1, and most "writes" are me fixing a number once a month. For that load profile, a database is theatre. CSV in a public repo gives me: One source of truth, version controlled Diff-able commits when I change a number No admin UI to build An auditable timeline anybody can inspect When somebody asks "why did you change Crypto.com APY", I link the commit. That answer is more reassuring than any dashboard. Zod earns its rent Zod's schema does double duty: it validates at boot, and it generates the TypeScript type via z.infer . One source for shape, no drift between runtime and compile time. const CardSchema = z .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More