Featured4 min read
Prisma vs Drizzle: How to Choose a TypeScript ORM
A durable way to choose between Prisma and Drizzle: abstraction level, SQL control, team skills, deploy target and database support. No version trivia.
Journal39 posts
RSSNotes on systems engineering, applied AI, and shipping software that holds up in production. No fluff, no hype.
Featured4 min read
A durable way to choose between Prisma and Drizzle: abstraction level, SQL control, team skills, deploy target and database support. No version trivia.
Stripe's agents averaged 78.1% but passed strictly only 29.4% of the time. Here is how to run Forge yourself and read the number that predicts production.
Most tutorials still teach the deprecated generateObject path. Here is the Zod 4 + AI SDK 7 repair loop I run, with measured failures and the provider matrix.
Gemini 4 Hydrogen runs coding agents at $1.50/$7.50 per 1M tokens with four thinking levels. The real per-run cost, the setup code, and my verdict.
Long-term memory for Next.js AI agents, built both ways: mem0's managed extraction vs pgvector inside your own Postgres. The code, the costs, my pick.
A2UI 1.0 lets agents answer with screens instead of text. I built a real surface in Next.js with Google's renderer: the spec, the security model, the verdict.
I build agents both ways. The framework route and the harness route, head-to-head: setup, debugging, churn, durability, and what I would build on in 2026.
Anthropic's agents pushed its monorepo past 30,000 merges a day, so it replaced Git with Scion. What broke, how Scion works, and the queue math for your team.
Why agent cost grows faster than turns, where the tokens go, and the controls that bound it: turn limits, hard budgets, caching, approvals and routing.
A framework is a purchase, not a default. How to decide between LangChain.js-style frameworks and a plain TypeScript loop, and how to migrate later.
Omni 1.2 Flash generates 15-second clips with native audio at about $0.07 a second. The Next.js setup, the SDK gotcha, and the real per-clip cost.
Blind retries double-send emails and double-charge customers. The BullMQ setup I run in NestJS: jittered backoff, idempotent jobs, and a dead-letter queue.
Self-managed GitLab before 19.5.1 carries a CVSS 10 unauthenticated RCE. Check your version, upgrade to the fixed release, and verify it in 10 minutes.
Two NestJS instances break Socket.io rooms: broadcasts only reach local sockets. The Redis adapter setup, sticky-session fix, and room pattern that fixes it.
TanStack AI 1.0 vs Vercel AI SDK 7, tested hands-on: I ship the Vercel AI SDK by default. The 5 factors that decided it, and when TanStack wins instead.
I ship production Next.js and NestJS systems from Pakistan. Here is the proof, the overlap, and the process. Rates on request, because scope sets the number.
I built my agent loop in plain TypeScript instead of adopting a framework. Here is the loop, the tool registry, the limits, and when a framework still wins.
Nine production-ready React hooks in TypeScript, the race condition my own tests caught, renderHook testing, and the architecture behind them.
How to move from Shopify's retired Global Catalog REST API to Global Catalog MCP: the endpoint map, a TypeScript client and the downstream-field audit.
Profound charges $99 for one AI engine and pushes Enterprise quotes. Peec AI covers three engines for $95. My hands-on verdict on which tracker to buy.
Scrunch AI charges $250/month for 125 prompts. These 7 cheaper GEO trackers start at $29/month and one is free - priced, compared and ranked for 2026.
GPT-4o and GPT-4.1, plus the minis and their fine-tunes, leave the OpenAI API on Jan 14, 2027. My 10-point checklist: audit, dodge the Luna trap, switch safely.
What does $1,000 become on Payoneer, Wise and Elevate Pay after fees? I ran the 2026 math for Pakistani freelancers, hidden FX spreads included.
Two PHP core RCE flaws (CVE-2026-109618 and CVE-2026-109619, CVSS 9.2) hit every PHP version since 5.4. How I check a server for exposure and patch it fast.
AI agents already buy from stores - just not through the channels you expect. The 9-item checklist I use to make a checkout agent-ready, Wix to PayPal.
A viral post can turn a $20 Vercel bill into hundreds. I ran the math on 4 workloads: Vercel Pro vs a €4 Hetzner VPS, and found the crossover point.
Claude Opus 4.8, Opus 5 and GPT-5.6 Terra leave GitHub Copilot on Nov 16, 2026. The swap table, the one exception, and the 7-step migration checklist.
Cloudflare acquired Deno on Oct 9, 2026. Deno Deploy shuts down in about 6 months and the runtime gets one more year. What changes, and where to host next.
Cache Components is the recommended caching model in Next.js 16.4 and the default in 17. The migration order, config mappings, and 5 gotchas that break apps.
Vite and npm are not rivals - they do different jobs. What React, Vite, npm and Next.js each actually do, how they connect, and when to pick Vite vs Next.js.
X's $30 Subscription bundles Cursor Pro, Grok and X Premium+. Third-party models like Claude are billed separately. Cost math that decides if you switch.
Gemini 4 Argon's $2/$10 launch pricing doubles to $4/$20 on December 1, 2026. My build-and-measure checklist to learn your real per-task cost in time.
Google's Developer Knowledge API gives AI agents grounded access to official docs: the 4 methods, MCP and gcloud setup, and when to use it over web search.
How Pakistani web developers actually freelance in 2026: the $1.76B FY26 market, platform fees, the 0.25% PSEB tax, payment rails, and a 90-day plan.
Claude Haiku 5.5 costs $0.10 per million input tokens - 20x cheaper than Sonnet. Verified 2026 pricing, the 100K-token cliff, and my routing rules.
Semrush, Peec AI, Profound, Scrunch and 4 more GEO tools compared on real 2026 pricing: which AI visibility tracker is worth paying for, and which to skip.
The playbook I use to get cited by ChatGPT, Perplexity and Gemini: content structure, schema markup and distribution tactics that win AI citations.
One Zod schema is your TypeScript type and your runtime validator. How I use Zod as the contract for forms, APIs and LLM output - and the bugs it deletes.
The metrics that move the needle are the ones that map to how a UI feels - LCP, INP, CLS - not the ones that look good on a chart.