Invoices turning into tofu on the customer's screen? This guide shows you how to pair Puppeteer Page.pdf for CJK layout with pdf-lib for merging and stamping — covering font subsetting, cross-page tables, headers and page numbers, chunked large-file generation, and sandbox hardening.
VIBEFIX GUIDES
AI Coding Guides
Practical knowledge for tools, deployment, workflows, and building projects.
Your users' credits are not a balance column — they're a journal. This guide builds a double-entry credits ledger for AI SaaS: immutable journal schema you can copy, idempotent deduction with row locks, two-phase pre-auth/settle for unpredictable token usage, refund and expiry write-backs, a three-way daily reconciliation, negative-balance circuit breakers, and an anti-abuse checklist.
Errors are your most-called interface asset: RFC 9457 problem details, stable UPPER_SNAKE_CASE codes, an HTTP status decision table, i18n copy engineering, traceId propagation, frontend discriminated types, and agent-executable error contracts.
A user's 2,000 words must survive crashes, dead networks, and accidental tab closes. Three defensive layers — debounced input, localStorage safety net, versioned server persistence — plus optimistic-locking conflict UX (keep both, let the user choose), offline replay, and draft lifecycle.
A bounty program burns budget to save you from incidents. This guide covers when to launch, how to price, how to write scope, how to set up disclosure channels, how to choose a platform, how to triage and deduplicate, how to filter AI slop reports, how to communicate with hunters, and how to set remediation SLAs — a complete, ready-to-run bounty operations playbook for vibe projects.
A tapped https link should skip the browser and land in your app. Link-type picks, five devilish iOS AASA details, Android's #1 fingerprint killer, verification-file hosting, smart landing pages, post-FDL deferred deep linking, China-ecosystem specifics, and a 10-item test checklist.
Servers in mainland China, domestic payments, mini-program listing — everything needs filing. This is the three-gate map for Chinese indie developers: ICP filing, PSB filing, and App filing — trigger self-checks, materials checklists, top rejection reasons with fixes, the individual vs enterprise red lines, and the real cost of 'launch first, file later'.
AI-built dark mode fails three predictable ways: hardcoded colors, white flashes on toggle, system preference fighting explicit choice. The fix: semantic CSS variables as the single source of truth, Tailwind v4 @custom-variant wiring, a system/light/dark state machine, an inline <head> script killing SSR first-paint flash (Next.js specifics, quantified acceptance), plus images, canvas charts, iframe embeds, WCAG AA contrast sampling — and a 5-step migration SOP with an AI rewrite prompt.
Signing an enterprise customer is only day one. This guide gives solo developers a practical Customer Success playbook: a one-person health-score model, a 90-day onboarding plan, a 30-minute QBR one-pager, three expansion plays, a 5-step churn intervention SOP, and a minimal tool stack.
Web Push looks like a half-hour job until production hits you with iOS no-delivery, VAPID 401s, and a rotting subscription table. This code sequel walks the full chain: VAPID key generation and safekeeping, permission timing, Service Worker push/click handling, server-side web-push in practice, iOS 16.4 adaptation, 410 subscription cleanup, and a debugging checklist — all code ready to ship.