{"library":"postgres-js","type":"library","category":null,"description":"A pure-JavaScript implementation of the Postgres protocol designed for Node.js. At version 0.1.0, it is in early development—not yet stable. Postgres.js focuses on minimal overhead and a simple API, contrasting with heavier ORMs or legacy clients. It offers true prepared statements, automatic encoding/decoding of PostgreSQL types, and supports recent features like transaction savepoints and notification listeners. However, it does not yet have a stable release, and breaking changes are expected. Use for prototyping or performance-sensitive scenarios where minimal dependencies are critical.","language":"javascript","status":"active","version":"0.1.0","tags":["javascript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install postgres-js","imports":["import postgres from 'postgres-js';\nconst sql = postgres('postgres://username:password@localhost:5432/database');","import postgres, { Sql } from 'postgres-js';","import postgres from 'postgres-js';\nconst sql = postgres({\n  host: 'localhost',\n  port: 5432,\n  database: 'test',\n  user: 'user',\n  password: 'pass'\n});"]},{"cmd":"yarn add postgres-js","imports":[]},{"cmd":"pnpm add postgres-js","imports":[]}],"homepage":"https://public.commandprompt.com/projects/postgres-js/","github":null,"docs":null,"changelog":null,"pypi":null,"npm":"postgres-js","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}