[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3405":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},3405,"node-postgres","brianc\u002Fnode-postgres","brianc","PostgreSQL client for node.js.","https:\u002F\u002Fnode-postgres.com",null,"JavaScript",13151,1313,178,452,0,8,32,1,44.36,"MIT License",false,"master",true,[26,5,27,28,29],"libpq","postgres","postgresql","postgresql-driver","2026-06-12 02:00:50","# node-postgres\n\n![Build Status](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)\n\u003Cspan class=\"badge-npmversion\">\u003Ca href=\"https:\u002F\u002Fnpmjs.org\u002Fpackage\u002Fpg\" title=\"View this project on NPM\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fpg.svg\" alt=\"NPM version\" \u002F>\u003C\u002Fa>\u003C\u002Fspan>\n\u003Cspan class=\"badge-npmdownloads\">\u003Ca href=\"https:\u002F\u002Fnpmjs.org\u002Fpackage\u002Fpg\" title=\"View this project on NPM\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdm\u002Fpg.svg\" alt=\"NPM downloads\" \u002F>\u003C\u002Fa>\u003C\u002Fspan>\n\nNon-blocking PostgreSQL client for Node.js. Pure JavaScript and optional native libpq bindings.\n\n## Monorepo\n\nThis repo is a monorepo which contains the core [pg](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Ftree\u002Fmaster\u002Fpackages\u002Fpg) module as well as a handful of related modules.\n\n- [pg](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Ftree\u002Fmaster\u002Fpackages\u002Fpg)\n- [pg-pool](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Ftree\u002Fmaster\u002Fpackages\u002Fpg-pool)\n- [pg-native](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Ftree\u002Fmaster\u002Fpackages\u002Fpg-native)\n- [pg-cursor](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Ftree\u002Fmaster\u002Fpackages\u002Fpg-cursor)\n- [pg-query-stream](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Ftree\u002Fmaster\u002Fpackages\u002Fpg-query-stream)\n- [pg-connection-string](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Ftree\u002Fmaster\u002Fpackages\u002Fpg-connection-string)\n- [pg-protocol](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Ftree\u002Fmaster\u002Fpackages\u002Fpg-protocol)\n\n## Install\n\n```\nnpm install pg\n```\n\n## Documentation\n\nEach package in this repo should have its own readme more focused on how to develop\u002Fcontribute. For overall documentation on the project and the related modules managed by this repo please see:\n\n### :star: [Documentation](https:\u002F\u002Fnode-postgres.com) :star:\n\nThe source repo for the documentation is available for contribution [here](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Ftree\u002Fmaster\u002Fdocs).\n\n### Features\n\n- Pure JavaScript client and native libpq bindings share _the same API_\n- Connection pooling\n- Extensible JS ↔ PostgreSQL data-type coercion\n- Supported PostgreSQL features\n  - Parameterized queries\n  - Named statements with query plan caching\n  - Async notifications with `LISTEN\u002FNOTIFY`\n  - Bulk import & export with `COPY TO\u002FCOPY FROM`\n\n### Extras\n\nnode-postgres is by design pretty light on abstractions. These are some handy modules we've been using over the years to complete the picture.\nThe entire list can be found on our [wiki](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Fwiki\u002FExtras).\n\n## Support\n\nnode-postgres is free software. If you encounter a bug with the library please open an issue on the [GitHub repo](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres). If you have questions unanswered by the documentation please open an issue pointing out how the documentation was unclear & I will do my best to make it better!\n\nWhen you open an issue please provide:\n\n- version of Node\n- version of Postgres\n- smallest possible snippet of code to reproduce the problem\n\nYou can also follow me [@brianc](https:\u002F\u002Fbsky.app\u002Fprofile\u002Fbrianc.bsky.social) on bluesky if that's your thing for updates on node-postgres with nearly zero non node-postgres content. My old twitter\u002Fx account is no longer used.\n\n## Sponsorship :two_hearts:\n\nnode-postgres's continued development has been made possible in part by generous financial support from [the community](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Fblob\u002Fmaster\u002FSPONSORS.md).\n\nIf you or your company are benefiting from node-postgres and would like to help keep the project financially sustainable [please consider supporting](https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fbrianc) its development.\n\n### Featured sponsor\n\nSpecial thanks to [medplum](https:\u002F\u002Fmedplum.com) for their generous and thoughtful support of node-postgres!\n\n\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fmedplum\u002Fmedplum-logo\u002Fblob\u002Fmain\u002Fv3\u002Fmedplum-logo-grape8.svg\" alt=\"Medplum logo\" width=\"20%\" \u002F>\n\n## Contributing\n\n**:heart: contributions!**\n\nI will **happily** accept your pull request if it:\n\n- **has tests**\n- looks reasonable\n- does not break backwards compatibility\n\nIf your change involves breaking backwards compatibility please please point that out in the pull request & we can discuss & plan when and how to release it and what type of documentation or communication it will require.\n\n### Setting up for local development\n\n1. Clone the repo\n2. Ensure you have installed libpq-dev in your system (the native bindings are built in the test process)\n3. From your workspace root run `yarn` and then `yarn lerna bootstrap`\n4. Ensure you have a PostgreSQL instance running with SSL enabled and an empty database for tests. _note: you can skip the tests requring SSL by setting the environment variable `PGTESTNOSSL=1` if you're not changing any SSL related code_.\n5. Ensure you have the proper environment variables configured for connecting to your postgres instance. Using the standard `PG*` environment variables like `PGUSER` and `PGPASSWORD` etc...\n6. Run `yarn test` to run all the tests.\n\n## Troubleshooting and FAQ\n\nThe causes and solutions to common errors can be found among the [Frequently Asked Questions (FAQ)](https:\u002F\u002Fgithub.com\u002Fbrianc\u002Fnode-postgres\u002Fwiki\u002FFAQ)\n\n## License\n\nCopyright (c) 2010-2020 Brian Carlson (brian.m.carlson@gmail.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and\u002For sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","node-postgres 是一个用于 Node.js 的 PostgreSQL 客户端。它支持纯 JavaScript 实现以及可选的原生 libpq 绑定，并且两者共享相同的 API，确保了开发的一致性和灵活性。该项目提供了连接池管理、参数化查询、命名语句与查询计划缓存等功能，还支持异步通知和批量数据导入导出等高级特性。适用于需要高性能数据库操作的 Node.js 应用场景，尤其是那些依赖于 PostgreSQL 数据库的应用程序。通过 npm 可以方便地安装使用，文档详尽，社区活跃，便于开发者快速上手并解决问题。",2,"2026-06-11 02:54:06","top_language"]