Skip to main content
PostgresResource connects to Postgres via a DSN and exposes its schemas and tables as a tree. Setup steps for the DSN and required permissions live at Postgres Credentials.

Node

Browser

For browser apps, point the resource at a same-origin proxy or use a serverless Postgres driver such as @neondatabase/serverless. The browser examples include a Vite plugin that wires the resource to a server-side pg client:

Config

Mount mode

read only. Postgres mounts are read-only at the resource level.

Snapshot behavior

The DSN is redacted on snapshot. Loading a snapshot back requires a config file that supplies a fresh DSN.