🍿 I made an AI minion and it changed how I build apps


Hey Reader,

Last week, I gave a talk at React Paris about Building your own AI minion, basically an AI Agent Toolkit for modern apps. I show my workflow and how I have automated a lot.

The room was full, the energy was electric ⚑, and it turned into one of my favourite talks I’ve given. You can πŸŽ₯ watch the video here and the slides are here.

🍿 Our Weekly Snack: Stop calling "redirect()" inside a try/catch block in Next.js

Stop calling "redirect()" inside a try/catch block in Next.js

πŸ’‘ Here's Why

When you add a redirect() from `next/navigation` in a try/catch block, the redirect() throws a special internal error on purpose and that's how Next.js App Router as a framework knows to redirect the user.

However, if you add redirect in a try block, your catch block will catch it as it's just like any other error and the user won't redirect.

🧠 The Fix

β†’ Move redirect() outside the try/catch block so your catch won't catch it.

🎁 If you're interested, you can download this free cheatsheet covering 29 common mistakes just like this one in React and Next.js.

πŸš€ Latest Frontend News

LIBRARY UPDATES

Shadcn just dropped npx shadcn apply.A single command that swaps your entire design system: components, themes, colors, CSS variables, fonts, and icons all at once. Apply, test, repeat

Vercel just dropped a new agent skill for React View Transitions. Your coding agent can now add smooth, native browser animations between pages and UI states

Next.js now has a stable Adapter API that allows it to be deployed to Vercel, Cloudflare, Netlify, AWS, or anywhere else using the same public contract, no vendor lock-in

TanStack DB 0.6 adds local storage and offline support. Think of it like giving your app a memory that doesn't disappear when you close it or lose wifi

​
​ GREAT TOOLS

Stop uploading your files to random servers. FileWash runs everything client-side, image compression, PDF merging, background removal, all in the browser, nothing leaves your device
​
​ AI

Achieve 100% success rate by including Agents.md. Here, is the eval score by Next.js cross Codex, Claude Code, Cursor, and Gemini CLI.

Stop merging agent PRs, Vercel just shared their internal framework for catching the stuff agents miss before it hits production
​

GREAT READ

Isomorphic JavaScript means your code runs on the server and the browser. This is how Next.js, Nuxt, and SvelteKit work under the hood, here's a breakdown of the concept​
​
​ SECURITY VULNERABILITIES

Axios was recently compromised via social engineering of the maintainer's account


πŸ€” What did you think of the Newsletter?

​πŸ”₯ Love it!​

β€‹πŸ˜ It’s okay​

β€‹πŸ‘Ž Not good​

If you’ve published a blog post or shipped something, feel free to reply to this email and it comes straight to my inbox. I’m always looking for great community work to consider featuring.

All past newsletters can be found here. You can email me at me@kulkarniankita.com to advertise/sponsor the newsletter.

For those curious, I write all my emails using Convertkit.

See you next week!

Ankita Kulkarni

Join 9200+ subscribers reading by weekly personalized Newsletter that helps developers level up their skills through weekly Frontend and Leadership Snacks. You get a deep dive into a Tech topic, Actionable tips to excel in your career and a toolbox!

Read more from Ankita Kulkarni
cut ai bill in half

Hey Reader, I checked my Claude usage last week and found out I’d been paying max-effort prices to rename variables. Three small changes later, my bill is half what it was. This week: the 3 fixes that saved me the most, a Next.js patch you need today, and Opus 5.5 making motion graphics by writing code. One small favour first: I’m building my AI course and need your help. It will only take 60 seconds. β†’ Click here for feedback PRESENTED BY SONARQUBE We all hate security scanners that flood...

Hey Reader, I've been heads down focusing on crafting my AI course. I'm still in early stages and need your help. Can you fill this quick survey that should take less than a minute and give me your feedback? β†’ Click here for feedback PRESENTED BY SONARQUBE We all hate security scanners that flood our PRs with false positives. It's the quickest way to get a dev to ignore alerts altogether. SonarQube Hunter Agent is different. It’s an AI-powered agent that hunts for business logic flaws and...

Hey Reader, The biggest challenge with AI right now isn't building from scratch or brainstorming, it's great at both. It's building real intuition for how things should work. Take how TikTok and YouTube handle video. If they served the same file to every device, tablet, mobile, desktop, even a slow 3G connection, users would drop off fast. So how would you solve that? Don't worry, let me show you. Here's how to architect for exactly this challenge. PRESENTED BY IMAGEKIT Don't throw raw MP4s...