Skip to content
NpgsqlRest
Search
K
Main Navigation
Guide
Getting Started
Overview
Installation
Quick Start
Topics
SQL File Endpoints
Configuration Guide
Comment Annotations Guide
Reference
FAQ & Troubleshooting
Changelog
Examples
Reference
Annotations
Configuration
Blog
Appearance
Menu
Return to top
On this page
Comments
More Blog Posts
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
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
Optimization Labels 101
What Have Stored Procedures Done for Us?
Blog Posts & Tutorials
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
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
PostgreSQL REST API Benchmark 2026
Performance comparison of NpgsqlRest vs PostgREST, Django, FastAPI, Spring Boot, and more
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
PostgreSQL Optimization Labels 101
VOLATILE, STABLE, IMMUTABLE, PARALLEL options, COST, ROWS, and STRICT - a quick reference for function optimization
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
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