Skip to content
NpgsqlRest
Search
K
Main Navigation
Guide
Getting Started
Overview
Installation
Quick Start
Topics
SQL File Endpoints
Configuration Guide
Comment Annotations Guide
Connection Management
Authentication
Server-Sent Events
HTTP Custom Types
Proxy Endpoints
Testing
Logging
Claude Code Skill
Reference
FAQ & Troubleshooting
Changelog
Examples
Reference
Annotations
Configuration
Blog
❤️ Sponsor
Appearance
Menu
Return to top
On this page
Comments
More Blog Posts
Benchmark 2026-07 (Series)
NpgsqlRest 3.20.0: Dart, Hooks & Tool Schemas
The Backend That Writes Itself (Slide Deck)
Case Study: 74 Endpoints, Zero Backend Code
TypeScript Code Generation Walkthrough
NpgsqlRest 3.13.0: Production Patterns
SQL REST API
Excel Exports Done Right
Passkey SQL Auth
Custom Types & Multiset
Performance & High Availability
Benchmark 2026 (January)
End-to-End Type Checking
Database-Level Security
Multiple Auth Schemes & RBAC
PostgreSQL BI Server
Secure Image Uploads
CSV & Excel Ingestion
Real-Time Chat with SSE
External API Calls
Reverse Proxy & AI Service
NpgsqlRest vs PostgREST vs Supabase
What Have Stored Procedures Done for Us?
Blog Posts & Tutorials
PostgreSQL REST API Benchmark, July 2026 — 20 Services, 760 Tests
The most controlled benchmark round to date: equalized workers, pools, and CPU budgets across 16 frameworks and 6 NpgsqlRest configurations. A full analysis series — per-framework deep dives, the routine-vs-SQL-files verdict, resource efficiency, and the complete raw dataset
NpgsqlRest 3.20.0: Dart Clients for Flutter, React Query Hooks, and Tool Schemas for AI Agents
A code-generation release: typed Dart clients for every Flutter target, TanStack Query hooks with exported key factories generated alongside the TypeScript client, the @mcp tool catalog projected into OpenAI/Anthropic tools documents and llms.txt, and the new HTTP QUERY method across the stack
Tests Are SQL Files Too
The story behind NpgsqlRest 3.19.0 — write endpoint tests as plain .sql files that invoke the real endpoint in-process, inside the test's own transaction; watch mode that turns the live database schema into your type checker; and why database testing was never actually impossible — you were just using the wrong database
Case Study: 74 Endpoints, Zero Backend Code — A Production App Built Entirely on NpgsqlRest
What it actually looks like to ship a production application without a controller layer. Real numbers from a finance/visualization app: ~74 HTTP endpoints, 12K LOC of SQL, zero lines of C# or Python, and an estimated 3,500–7,300 LOC of host-language boilerplate eliminated
The Backend That Writes Itself — NpgsqlRest in 19 Slides
An interactive slide deck with page controls, keyboard navigation, and speaker notes. The whole NpgsqlRest pitch — PostgreSQL in, REST API + typed TypeScript client + AI-agent tools out — with real, reproducible numbers from a product in production
Turn PostgreSQL into MCP Tools an AI Agent Can Call
NpgsqlRest 3.17.0 adds Model Context Protocol support. Annotate a function or .sql file with @mcp and it becomes a tool an AI agent can discover and call — one source, two interfaces (REST + MCP), with structured output, MCP-only tools, and per-tool authorization
From SQL to Type-Safe TypeScript: A Walkthrough of NpgsqlRest's Code Generator
Generate typed fetch modules and TypeScript interfaces directly from PostgreSQL functions and SQL files. End-to-end type safety, per-endpoint control with @tsclient annotations, and real-world dev/prod workflow
NpgsqlRest 3.13.0: Cache Profiles, Auth Schemes, Per-User Rate Limits, and pgBouncer Compatibility
Conditional caching with When rules, short-lived sensitive sessions, per-user rate limiting, and multi-tenant search_path with pgBouncer — all real-world production patterns
SQL REST API
The story behind NpgsqlRest 3.12.0 — SQL file endpoints, the philosophy of database-first development, AI tools, and why I think Clean Architecture got it wrong
REST APIs from Plain SQL Files: The Complete Guide to SQL File Source
Build REST APIs directly from .sql files - no functions, no procedures, no boilerplate. Multi-command endpoints, automatic parameter inference, and TypeScript generation
Excel Exports Done Right: Zero-Allocation Streaming from PostgreSQL
Stream .xlsx exports directly from PostgreSQL with constant memory - zero allocations, native types, one SQL annotation
Implementing WebAuthn Passkeys with Pure SQL
Passwordless authentication using device biometrics - complete SQL-based passkey registration, login, and credential management
NpgsqlRest vs PostgREST vs Supabase: Complete Feature Comparison
Side-by-side comparison with performance benchmarks, features, authentication, file handling, and deployment options
Performance, Scalability, and High Availability
Caching strategies, retry logic, rate limiting, and multi-host PostgreSQL connections for production APIs
Custom Types and Multiset for Nested JSON in PostgreSQL REST APIs
Use PostgreSQL custom types and table types to build hierarchical REST API responses with automatic TypeScript generation
The Power of Simplicity
How collapsing the standard data access pattern down to UI → RDBMS could save enough energy to power a small country
End-to-End Static Type Checking: PostgreSQL to TypeScript
How to achieve compile-time type safety from database to frontend with NpgsqlRest
Database-Level Security: PostgreSQL Authentication
Implementing the Principle of Least Privilege with secure cookie-based authentication
Multiple Auth Schemes, RBAC & External Providers
Built-in password verification, cookies/JWT/Bearer tokens, role-based access, and Google OAuth
Turn PostgreSQL into a BI Server: CSV Exports, Basic Auth & Excel
Serve CSV reports directly to Excel with Basic Auth, SSL, and type composition - a complete BI system for free
Secure Image Uploads with PostgreSQL: File System, Large Objects & TypeScript
Build a complete upload system with progress callbacks, image validation, and type-safe generated clients
CSV and Excel Ingestion Made Easy: PostgreSQL Row Processing
Transform file imports into declarative row-by-row processing with automatic TypeScript clients and progress tracking
Build a Real-Time Chat App with PostgreSQL and Server-Sent Events
Secure real-time messaging with 25 lines of SQL - no WebSockets, no message brokers, no LISTEN/NOTIFY scaling issues
Call External APIs from PostgreSQL: HTTP Types in NpgsqlRest
Define external API calls using .http file syntax in type comments - no HTTP extensions, no middleware, just SQL
Web Scraping with PostgreSQL: HTTP Types + XML Functions
Fetch a page with an HTTP Custom Type, parse the HTML with PostgreSQL's built-in XPath functions, and serve JSON - a web scraper with no application code
Reverse Proxy & AI Service: PostgreSQL Caching with Transform Mode
Proxy external services through PostgreSQL functions - cache AI responses, enrich data, and avoid connection pool exhaustion
What Have PostgreSQL Functions Ever Done for Us?
Apart from security, performance, maintainability, testability, and zero boilerplate code, what have they really done for us?
Comments