Tag: typescript
61 articles
· hono / express
Hono vs Express — the Node.js web framework choice in 2026
Hono is faster, ships TypeScript out of the box, and runs on every edge runtime. Express 5 is stable, battle-tested, and has a deeper ecosystem. How to choose.
· cloudflare / workers
Cloudflare Workers in 2026 — when to choose them
Near-zero cold starts, 330+ PoPs, and genuinely cheap at scale. The no-regional-pinning limitation and 128 MB memory ceiling are real blockers for some teams. Here's what the deployment decision actually looks like.
· rag / pgvector
How to build a RAG pipeline with pgvector and Drizzle ORM
Step-by-step tutorial: store embeddings in Neon Postgres, query with cosine similarity via Drizzle ORM, and wire up GPT-4o for answers — all in TypeScript.
· cloudflare / cloudflare-workers
How to Set Up Cloudflare Workers AI: Step-by-Step Guide
Run inference at the edge with Workers AI: scaffold a Worker, bind the AI, call models, stream SSE, generate images. Includes pricing and rate limits.
· resend / react-email
How to send transactional emails with Resend and React Email
Step-by-step: install Resend and React Email, write a typed template, send from a Next.js route, and preview locally. Covers the React Email 6 import change.
· typescript / turso
How to set up Turso (libSQL) in a TypeScript project
Set up Turso (libSQL) in TypeScript from scratch: install @libsql/client, run CRUD, add Drizzle ORM, and manage local dev — with the gotchas most guides miss.
· ai-tools / vercel-ai-sdk
How to use the Vercel AI SDK — streaming, tools, and agents
AI SDK 6 gives you a single API across 20+ providers, typed streaming, and a ToolLoopAgent class for multi-step agentic loops. Here is how to use it.
· monorepo / turborepo
Turborepo vs Nx — monorepo tooling head-to-head (2026)
Turborepo wins on config simplicity and self-hosted cache; Nx wins on distributed CI and plugin depth. Pick by CI scale and infrastructure ownership.
· zed / ide
Zed Editor Review 2026: Should TypeScript Devs Switch?
Zed earns the switch for TypeScript, Rust, Go, and remote dev at 120 FPS. The ~1,250-extension cap is still the wall for specialty tooling users.
· cursor / mcp
How to Build MCP Tools That Work Inside Cursor
Step-by-step guide to building a custom MCP server in TypeScript and wiring it into Cursor Pro. Covers tool registration, restart quirks, and the five gotchas that waste an afternoon.
· mcp / claude-code
How to build and use MCP servers with Claude Code (2026)
MCP is the fastest way to give Claude Code project-specific context without pasting files every session. Here is a working recipe from scaffold to running tool.
· llm / openai
LLM structured outputs: JSON mode, function calling, and Zod
Grammar-constrained sampling is the only reliable LLM primitive. How OpenAI, Anthropic, Zod, and Vercel AI SDK v6 compare — and where each still fails you.
· typescript / ai-agents
How to build an AI agent in TypeScript — tools, memory, MCP
Build a production TypeScript AI agent with @anthropic-ai/sdk v0.100.1: tool calling, the agentic loop, session and persistent memory, and an MCP server.
· claude / anthropic
Claude API 2026: Prompt Caching, Tool Use & Batches
A practical guide to the three Claude API features that separate toy prototypes from production integrations: prompt caching, tool use, and Message Batches API.
· javascript / typescript
Oxc vs Biome — which Rust JS toolchain is production-ready?
Biome wins for greenfield projects; Oxc wins for large ESLint codebases. Both are 10–62× faster than ESLint. Benchmarks, feature matrix, and migration guide.
· biome / eslint
Biome 2 Review — Ready to Replace Prettier and ESLint?
Biome v2 fills the biggest gaps from v1: multi-file analysis, type-aware linting without tsc, and custom rules via GritQL. Is it enough for your stack?
· typescript / orm
Prisma ORM in 2026: Has It Caught Up to Drizzle at Last?
Drizzle still leads on edge and serverless. Prisma 7's Rust-free rewrite is a real architectural shift — here is who should switch and who should stay.
· nodejs / typescript
Best job queue library for Node.js and TypeScript in 2026
BullMQ wins for teams already running Redis. Trigger.dev and Inngest are managed options. QStash is the only edge-runtime choice. Full comparison inside.
· deno / javascript
Deno 2 Review 2026: Is the Runtime Rebrand Working?
Technically strong but adoption is flat. Deno 2 runs TypeScript and npm natively, but usage sits at 11.2% while Bun surges to 21%. Honest verdict for 2026.
· elysia / hono
Elysia vs Hono — Bun-native server picks in 2026
Hono is the safe default for Cloudflare Workers and multi-runtime projects. Elysia wins on Bun with Eden Treaty — zero-codegen end-to-end type safety.
· mongodb / postgresql
How to Migrate MongoDB to PostgreSQL Without Downtime
How to migrate MongoDB to PostgreSQL without downtime: dual-write strategy, TypeScript ETL, schema mapping, data validation, and 8 production gotchas.
· monorepo / pnpm
How to Set Up Changesets for Automated Monorepo Releases
Set up @changesets/cli v2.31.0 in a pnpm + Turborepo monorepo — from your first changeset to a fully automated GitHub Actions publish pipeline.
· testing / vitest
How to configure Vitest in a Turborepo monorepo
Vitest 4.x dropped the workspace option — it is projects now. This guide covers two approaches (per-package caching and Vitest Projects root), shared config, turbo.json wiring, and coverage aggregation.
· typescript / flow
TypeScript vs Flow — Flow's Last Stand in the 2026 Ecosystem
TypeScript has 244× more weekly downloads, native Node.js support, and a 10× faster compiler in 2026. Flow is alive at Meta — zombie-ware everywhere else.
· vitest / bun
Vitest vs Bun Test — Speed vs Ecosystem
Bun's test runner boots 11× faster than Vitest. But if your suite uses __mocks__ directories, Istanbul coverage, or @vitest/ui, you'll lose more than you gain. Here's when to switch and when to stay.
· zod / arktype
Zod vs ArkType: TypeScript Schema Validation Showdown
ArkType parses 15× faster than Zod v4 and mirrors TypeScript syntax. Zod: 20M downloads, 50+ integrations. Real benchmarks, snippets, one recommendation.
· astro / mdx
How to Add MDX to Astro 5 Content Collections
Step-by-step guide to installing @astrojs/mdx and wiring it into Astro 5 Content Layer API — typed frontmatter, component imports, and every pitfall documented.
· jsr / deno
How to Publish a TypeScript Package on JSR: Full Guide
Step-by-step guide to publishing a TypeScript package on JSR: configure jsr.json, fix slow types, publish via Deno or GitHub Actions, and maximize your score.
· astro / mdx
How to write good Astro frontmatter (and validate it)
Add a Zod schema to src/content.config.ts. Frontmatter fields get TypeScript types and build-time validation — no extra dependencies, no runtime surprises.
· typescript / orm
Drizzle ORM in 2026 — production opinion for TypeScript
Drizzle is production-ready for edge and serverless Postgres. Bundle ~81× smaller than Prisma, 4× throughput. The real trade-offs are in team tooling.
· cloudflare / cloudflare-workers
How to Deploy a Cloudflare Worker with D1 + Stripe
Build a Stripe webhook handler on Cloudflare Workers with D1. Covers scaffold, wrangler.toml, Drizzle migrations, the raw-body gotcha, and production deploy.
· typescript / orm
How to Migrate from Prisma to Drizzle ORM: Step-by-Step
Step-by-step Prisma to Drizzle migration: schema conversion, query rewrites, transaction refactoring, and eight gotchas most tutorials skip.
· npm / typescript
How to publish an npm package the right way in 2026
Dual ESM/CJS with tsup, a proper exports map, changesets for versioning, and provenance — the complete 2026 workflow that the top-ranking tutorials still miss.
· trpc / rest
tRPC vs REST: When to Drop OpenAPI in TypeScript Apps
Use tRPC for full-stack TypeScript monorepos where type drift bites. Use REST + OpenAPI for public APIs and non-TypeScript consumers. In 2026 you need both.
· monorepo / pnpm
Best monorepo tool in 2026 — pnpm + Turborepo or Nx?
A direct answer to the choice most TypeScript teams delay for months. When pnpm + Turborepo is the right call and when Nx earns its setup cost.
· biome / prettier
Biome vs Prettier 2026 — 34× faster, but one gap stops you
Biome formats your Turborepo in 40ms where Prettier takes 1.35s. Switch if you don't need prettier-plugin-tailwindcss class sorting. Don't if you do.
· trpc / nextjs
How to set up tRPC with Next.js App Router (2026)
tRPC v11 works with Next.js 15 App Router. Covers fetchRequestHandler, SSR prefetch, the QueryClient pattern, and five gotchas that catch first-timers.
· prisma / typeorm
Prisma vs TypeORM: Which TypeScript ORM to Pick in 2026?
Prisma 7 reversed the performance gap and cut bundle size by 90%. TypeORM 1.0 finally hit stable after a decade in pre-release. Honest verdict for 2026.
· monorepo / turborepo
Turborepo monorepo pitfalls we learned the hard way
5 production pitfalls that consistently bite mid-size teams 3–12 months into a Turborepo + pnpm monorepo migration — and exactly how to fix each one.
· typescript / strictness
Does TypeScript strictness actually reduce your bug rate?
TypeScript strict mode catches ~15% of committed bugs — not the 38% from Airbnb. The honest verdict from peer-reviewed data and 3 industry case studies.
· drizzle / postgres
How to Set Up Drizzle ORM with Postgres and pgvector
Set up Drizzle ORM with Postgres 16 and pgvector. Covers the CREATE EXTENSION step most guides skip and the cosine distance pattern that uses the HNSW index.
· bun / typescript
How to write a CLI in TypeScript with Bun and Commander
Bun + Commander is the fastest path to a TypeScript CLI: native TS execution, no build step, subcommands, and a standalone binary. Tutorial with working code.
· drizzle / kysely
Drizzle ORM vs Kysely: Which Typed Query Tool in 2026?
Drizzle wins on DX, auto-migrations, and first-party edge adapters. Kysely wins on compile-time query validation for complex schemas. Here is which one to pick.
· esbuild / swc
esbuild vs SWC 2026 — The Right Compiler for Your JS Stack
In 2026, SWC won the ecosystem bet; esbuild won the standalone speed crown. The decision framework for teams migrating from Babel or starting fresh.
· fastify / express
Fastify vs Express — the performance gap is real (2026)
Fastify handles 55% more requests per second than Express 5.x. For new TypeScript APIs, the DX win is as compelling as the speed. Here's what the numbers show.
· monorepo / pnpm
How to Set Up a pnpm + Turborepo Monorepo from Scratch
Correctly bootstrap a pnpm + Turborepo monorepo from scratch with real task caching — v2 "tasks" key, not the deprecated "pipeline" most tutorials use.
· email / resend
Resend vs SendGrid 2025: Same Price, Very Different Setup
At ≤100k emails/month, pricing is identical to within $0.05. The real difference: Resend takes 8 minutes to set up; SendGrid takes 45. And SendGrid killed its permanent free tier in May 2025.
· zod / valibot
Zod vs Valibot: Schema-Validation Tradeoffs in 2026
Valibot shrinks your form validator 12× over Zod — but Zod wins on ecosystem, i18n, and Astro Actions. Real bundle numbers, real code, one recommendation.
· bun / deno
Bun vs Deno: Which JavaScript Runtime to Pick in 2026?
Bun leads on raw speed and cloud primitives; Deno leads on toolchain completeness and production stability. Here is which one to pick for your next project.
· biome / eslint
How to migrate from ESLint and Prettier to Biome in 2026
Two commands migrate most of your config automatically. Covers install, rule mapping, editor setup, CI, uninstall — and gaps that block some teams.
· testing / vitest
How to Migrate from Jest to Vitest: Step-by-Step Guide
Vitest runs 28× faster than Jest in watch mode. This guide covers the full migration: install, configure globals, handle config files, and fix six gotchas.
· biome / eslint
Biome vs ESLint 2026 — is it finally time to switch?
Switch if you're on a greenfield TypeScript project or CI lint is painful. Stay if you rely on custom rules, security plugins, or Next.js/Vue/Svelte plugins.
· go / typescript
Go vs TypeScript — backend service language pick for 2026
Go for CPU-parallel workloads above 50k RPS. TypeScript on Bun for I/O-heavy APIs and full-stack teams. Team composition now drives the 2026 pick.
· nextjs / app-router
How to migrate from Next.js Pages Router to App Router
Migrate Next.js Pages Router to App Router on 16.2.6: root layout, data fetching, Route Handlers, metadata API, and 8 real gotchas with fixes.
· vite / webpack
How to migrate from Webpack to Vite (real project)
Step-by-step Webpack 5 → Vite 8 migration on a TypeScript + React project: before/after configs, env var renaming, CJS interop fixes, and six concrete gotchas.
· trpc / graphql
tRPC vs GraphQL in 2026 — when one beats the other
tRPC wins for TypeScript monorepos with no external API consumers. GraphQL wins the moment a non-TypeScript client exists. Here is when each choice pays off.
· testing / vitest
Vitest vs Jest 2026: The Test Runner That Already Won
Vitest wins in 2026 for Vite and TypeScript projects — 5.6× faster cold starts, 28× faster watch mode, zero TypeScript config. When to switch and when to stay.
· typescript / orm
Best TypeScript ORM 2026: Drizzle, Prisma, Kysely, TypeORM
Drizzle is the clear default pick for new TypeScript projects in 2026. Here is when each ORM wins — and when the others should stay on the bench.
· typescript / orm
Prisma vs Drizzle 2026 — Full TypeScript ORM showdown
Prisma 7 dropped Rust and cut its bundle by 85%. Drizzle is still 80× lighter. Here is when each makes sense for your TypeScript stack in 2026.
· mcp / claude-code
How to build an MCP server for Claude Code
Scaffold a TypeScript MCP server with [email protected], register it with Claude Code, and implement two real NWS weather tools — no API key, done in 30 minutes.
· deno / nodejs
Deno vs Node.js — has the case finally landed?
Deno 2.x fixed npm compatibility. The question now is whether the DX, security, and performance gains are worth moving for. A verdict for Node.js developers evaluating Deno in 2026.