Automatic REST API server for PostgreSQL databases that generates REST endpoints from database functions, procedures, tables, and views. Version 3.16.3 (current stable) is actively developed with monthly releases. Key differentiators include AOT-compiled native executables for performance (claimed 6x faster than PostgREST), TypeScript client code generation with end-to-end type safety, declarative configuration via SQL comment annotations, and support for authentication (cookie, JWT, OAuth), authorization, caching, rate limiting, SSE, and OpenAPI 3.0 documentation. Unlike PostgREST or Supabase, NpgsqlRest is a Node.js/npm package that bundles a native binary for Windows, macOS, and Linux.
npm install npgsqlrestNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a PostgreSQL function with HTTP annotation, configures connection, runs server, and verifies REST endpoint.
Check GitHub releases for native binaries; consider using Docker or building from source.
Add SQL comment annotations to functions according to documentation.
Migrate to version 3 configuration format: wrap NpgsqlRest-specific options under 'NpgsqlRest' key.
Refer to documentation for all configurable options; use appsettings.json for full control.
Ensure npm install completed without errors; try reinstalling: npm uninstall npgsqlrest && npm install npgsqlrest. If on ARM, use Docker.
Check PostgreSQL is running; verify connection string in appsettings.json; ensure network access.
Verify the function exists and has correct comment annotation: COMMENT ON FUNCTION hello_world() IS 'HTTP GET /hello';
Update appsettings.json to match the configuration schema for version 3. See documentation.
No dependency data recorded yet.