Day 26: Stripe Meter APIで「使った分だけ課金」を実装した。
詰まったポイント3つ:
① Meter EventはIdempotency Key必須→重複送信しても安全
② Usage RecordはDeprecated方向→新規はMeter Event一択
③ billing_period=calendar未設定→課金サイクル不明で混乱 →
The scariest moment in a paid content SaaS:
Someone who hasn't paid can see your content.
Client-side checks can be bypassed with DevTools.
Server-side checks can be accidentally exposed.
Supabase RLS blocks this at the database layer.
Wrote up the full pattern → dev.to/masatoman/how-…
(I use this exact setup in my own paid articles)
I kept rebuilding the same boilerplate for every SaaS idea.
Auth. Stripe. DB. Email. i18n.
Every. Single. Time.
So I packaged everything into LaunchKit — a Next.js 16 + Supabase +
Stripe starter that goes from clone to deployed in ~15 minutes.
→ skykanon.gumroad.com/l/zaanh
What's your biggest "ugh, not this again" moment when starting a new project? 👇
Day 24: 昨日、自作VS Code拡張機能を完成させた。
Claude Codeコマンド45個をサイドバーから1クリックで送信できるやつ。ゼロから8時間で。
詰まったポイント3つ:
① F5でデバッガー選択が出る→launch.jsonのtype:extensionHost必須
② codeコマンドがPATH不在→フルパス指定が必要 →