Why Is My API Endpoint Slow? (How to Find Out Without Guessing)

A slow API endpoint can be caused by database queries, third-party API calls, or your own application code. Here's how to figure out which one it is, without adding console.log everywhere.

Brakit
Brakit//15 min read
Why Is My API Endpoint Slow? (How to Find Out Without Guessing)

What is an N+1 Query? (And Why Your App Probably Has One)

An N+1 query is a database anti-pattern where your code runs 1 query to get a list, then N more queries to get related data for each item. Most ORMs make it easy to write. Here's how to find and fix them.

Brakit
Brakit//13 min read
What is an N+1 Query? (And Why Your App Probably Has One)

Your Codebase Knows More Than Your Team Does

Developer A builds the dashboard. Developer B builds settings. Developer C builds checkout. All three query the same table on every page load. Nobody knows. The problem isn't in any file. It's in the space between files.

Brakit
Brakit//8 min read
Your Codebase Knows More Than Your Team Does

The LiteLLM Attack and What It Means for Every Dev Tool

LiteLLM was compromised yesterday. A malicious version stole credentials from every machine it was installed on. Every dev tool has the same risk profile. Here are some learnings for every dev tool builder.

Brakit
Brakit//6 min read
The LiteLLM Attack and What It Means for Every Dev Tool

Your Next.js App Makes the Same Database Query 5 Times Per Page Load

Most Next.js apps unknowingly run the same database query across multiple components and API routes. Nobody notices because each request returns 200 OK. Here's how to find and fix them.

Brakit
Brakit//6 min read
Your Next.js App Makes the Same Database Query 5 Times Per Page Load

Introducing Brakit: See What Your API Actually Does

Your endpoint returns 200. But do you know how many database queries ran behind it? Brakit is an open source dev tool that captures every request, query, and fetch your API makes, grouped by what the user actually did.

Brakit
Brakit//4 min read
Introducing Brakit: See What Your API Actually Does