Knowledge
Technical guides with sample code we ran, its real output, and references.
Websites and web apps28 min readConnecting payments to a web app: handling paid, duplicate payments and refundsA payment webhook that verifies an HMAC signature on the raw body, deduplicates by event id and never moves an order status backwards, with runnable TypeScript, real output and PostgreSQL SQL (Thai text).
Websites and web apps24 min readImporting Excel and CSV into a web app: checking data before saving and reporting errorsA CSV importer that runs a per-row dry run, reports errors by line and column, copes with BOM, Buddhist-era dates, leading zeros and duplicates, then imports all-or-nothing in one transaction, with runnable TypeScript and real output (Thai text).
Websites and web apps2 min readWebhooks that never arrive or arrive twice: designing retries and reconciliation between systemsAcknowledging quickly, ignoring duplicates by event ID, retrying failed deliveries, and a periodic check that both systems agree.
Websites and web apps27 min readAudit trail vs change history: knowing who changed what in a web appA trustworthy audit trail for a business web app: who changed what, written in the same transaction as the change, masked sensitive values, point-in-time reconstruction and hash-chain tamper detection, with runnable Node 24 code and real output (Thai text).
Websites and web apps24 min readXSS, SQL injection and CSRF: understanding web risks well enough to talk with developersThree web flaws side by side in a localhost-only demo: vulnerable and fixed handlers, runnable Node 24 code, real output and tests (Thai text).
Websites and web apps2 min readSessions and signing out: designing expiry, revocation and account recoveryHow long a session should last, ending sessions after password changes or on request, and a recovery flow that does not reveal accounts.
Websites and web apps2 min readAPI keys and environment variables: keeping web app secrets out of the codeWhere secrets should live, separate values for each environment, rotating keys, and what to do if one leaks.
Websites and web apps2 min readTesting a business web app: planning tests by risk and user journeyRank features by impact, cover the important journeys first, and balance unit, integration and end-to-end tests.
Websites and web apps2 min readSite down or users cannot complete tasks: using monitoring, logs and metrics to find the causeWhat each signal shows, alerts that point to user impact, and a step-by-step way to narrow down the cause.
Websites and web apps2 min readLCP, INP and CLS: measuring Core Web Vitals and fixing what each one points toWhat each metric measures, field versus lab data, and matching fixes to the metric that is actually failing.
Websites and web apps2 min readrobots.txt, noindex and sitemaps: getting the live site found and keeping the wrong pages out of searchWhat each tool controls, why blocking crawling is not the same as removing a page from search, and keeping staging out of the index.
Websites and web apps2 min readReleasing a new web app version: CI/CD, database migrations and a recovery planAutomated build and test steps, changing the database safely, and deciding in advance how to roll back when something goes wrong.

