{"id":15024881,"url":"https://github.com/shelfio/postgres-local","last_synced_at":"2026-03-02T22:46:54.594Z","repository":{"id":65043785,"uuid":"580934969","full_name":"shelfio/postgres-local","owner":"shelfio","description":"Run Postgres locally","archived":false,"fork":false,"pushed_at":"2025-10-20T15:21:57.000Z","size":79,"stargazers_count":4,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-20T17:33:08.979Z","etag":null,"topics":["local","nodejs","postgres","postgresql"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shelfio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-21T20:42:14.000Z","updated_at":"2025-10-09T10:11:56.000Z","dependencies_parsed_at":"2023-11-07T00:15:04.621Z","dependency_job_id":"2a36d852-83e2-4254-a37f-081357b0eab8","html_url":"https://github.com/shelfio/postgres-local","commit_stats":{"total_commits":39,"total_committers":1,"mean_commits":39.0,"dds":0.0,"last_synced_commit":"2961ba1b4cd0d00cb628af8c88d10cfbf2e7e2d4"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/shelfio/postgres-local","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Fpostgres-local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Fpostgres-local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Fpostgres-local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Fpostgres-local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shelfio","download_url":"https://codeload.github.com/shelfio/postgres-local/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Fpostgres-local/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30022999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T22:30:10.381Z","status":"ssl_error","status_checked_at":"2026-03-02T22:23:34.650Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["local","nodejs","postgres","postgresql"],"created_at":"2024-09-24T20:01:07.134Z","updated_at":"2026-03-02T22:46:54.577Z","avatar_url":"https://github.com/shelfio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgres-local [![CircleCI](https://dl.circleci.com/status-badge/img/gh/shelfio/postgres-local/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/shelfio/postgres-local/tree/master) ![](https://img.shields.io/badge/code_style-prettier-ff69b4.svg) [![npm (scoped)](https://img.shields.io/npm/v/@shelf/postgres-local.svg)](https://www.npmjs.com/package/@shelf/postgres-local)\n\n\u003e Run any version of Postgres locally\n\n## Usage\n\n### 0. Install\n\n```\n$ yarn add @shelf/postgres-local --dev\n```\n\n### 1. Start Postgres\n\n```js\nimport {start} from '@shelf/postgres-local';\n\nawait start({\n  seedPath: \"schema.sql\",\n  version: 14,\n  port: 5555,\n  includeInstallation: true,\n  debugMode: false\n});\n```\n - `seedPath` - absolute path to sql file with commands that will set up db structure before tests\n - `includeInstallation`\n   - when this flag is `true` (default) macOS will run `brew install` and linux `apt install` to make sure `postgres` is installed\n   - when false - package omit installing postgres and relly that it is already in place\n - `debugMode` - used for streaming terminal logs during executing `start` and `stop` methods\n### 2. Stop Postgres\n\n```js\nimport {stop} from '@shelf/postgres-local';\n\nawait stop({version: 14});\n```\n\n\n\n## Publish\n\n```sh\n$ git checkout master\n$ yarn version\n$ yarn publish\n$ git push origin master --tags\n```\n\n## License\n\nMIT © [Shelf](https://shelf.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshelfio%2Fpostgres-local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshelfio%2Fpostgres-local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshelfio%2Fpostgres-local/lists"}