explaingit

michalwolanin/noslow

Analysis updated 2026-05-18

2TypeScriptAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A Node.js middleware that watches your database queries and sends alerts with specific SQL fixes when it finds slow queries, N+1 patterns, or missing indexes.

Mindmap

mindmap
  root((noslow))
    What it does
      Measures SQL queries
      Detects slow queries
      Finds N+1 patterns
      Flags missing indexes
    Analysis modes
      Rules built-in
      Cloud via Claude Haiku
      Local via Ollama
    Notifiers
      Console
      Slack
      Discord
      Teams
      Telegram
    Privacy
      Sanitizes SQL values
      Local console-only mode
      Paranoid column hiding
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add to an existing Node.js app to get instant console alerts when a database query is unusually slow.

USE CASE 2

Detect N+1 query patterns in your API endpoints and receive a fix suggestion automatically.

USE CASE 3

Send database performance alerts to your team's Slack or Discord channel with no extra infrastructure.

USE CASE 4

Run AI-powered query analysis with a local Ollama model, keeping all data on your own server.

What is it built with?

TypeScriptNode.jsPostgreSQLMySQLOllama

How does it compare?

michalwolanin/noslowarashthr/hugo-flowargeneau12e/kairos-tx
Stars222
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderatehard
Complexity2/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Cloud analysis mode requires an Anthropic API key, local analysis mode requires Ollama running on your machine.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

noslow is a TypeScript library for Node.js that watches your database queries and sends you an alert when it finds a problem. You add it to your existing PostgreSQL or MySQL setup with a single line of code, and from that point on it measures every query your app runs. When a query is too slow, runs too many times in a short window, or scans an entire table without using an index, noslow logs the issue to the console with the specific problem and a ready-to-paste SQL fix. For example, if a query takes 847 milliseconds and there is no index on the column being searched, noslow tells you which column needs an index and provides the CREATE INDEX statement. By default it uses built-in rules to detect four patterns: slow queries (over 500 milliseconds), N+1 patterns (the same query running more than five times within a second), full table scans (a SELECT without a WHERE clause), and likely missing indexes on filtered columns. If you want more detailed analysis, you can switch to cloud mode, which sends your sanitized query to Claude Haiku for interpretation, or local mode, which uses an Ollama model running on your own machine with no internet connection. Privacy is built in from the start. Before anything is logged or sent anywhere, the library strips all actual values from the SQL, replacing them with question marks. Email addresses, IDs, and passwords never appear in logs or alerts. Sending alerts to Slack, Discord, Teams, or Telegram is optional and only active if you configure a webhook URL. Adding noslow to an existing Node.js project requires one npm install and two lines of code. The library needs Node 18 or later. The license is MIT.

Copy-paste prompts

Prompt 1
I'm using noslow in my Express app and getting N+1 alerts on GET /api/users. Here's my query: [paste query]. What JOIN or eager loading pattern should I use to fix it?
Prompt 2
Help me configure noslow with paranoid privacy mode and Slack alerts for a Node.js production app using PostgreSQL.
Prompt 3
noslow flagged a slow query on my MySQL database: [paste sanitized query]. What index should I add to speed it up?
Prompt 4
Set up noslow in local mode using Ollama so it analyzes slow queries without any internet connection.
Prompt 5
I want noslow to alert only when queries exceed 200ms and not repeat the same alert for 60 seconds. Show me the config object.

Frequently asked questions

What is noslow?

A Node.js middleware that watches your database queries and sends alerts with specific SQL fixes when it finds slow queries, N+1 patterns, or missing indexes.

What language is noslow written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, PostgreSQL.

What license does noslow use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is noslow to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is noslow for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub michalwolanin on gitmyhub

Verify against the repo before relying on details.