{"id":20525769,"url":"https://github.com/daniel-onyenwee/postgres-mini","last_synced_at":"2026-05-04T17:33:49.521Z","repository":{"id":228279983,"uuid":"773573456","full_name":"daniel-onyenwee/postgres-mini","owner":"daniel-onyenwee","description":"A package to run an mini postgresql database right from NodeJS","archived":false,"fork":false,"pushed_at":"2024-03-22T00:14:15.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-16T01:31:57.156Z","etag":null,"topics":["database","mini","postgres","postgresql","sql"],"latest_commit_sha":null,"homepage":"https://daniel-onyenwee.github.io/postgres-mini/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daniel-onyenwee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2024-03-18T01:56:19.000Z","updated_at":"2024-03-18T02:05:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"1ccc39ed-3802-4f65-b2f4-684b2409f7a1","html_url":"https://github.com/daniel-onyenwee/postgres-mini","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":"0.11764705882352944","last_synced_commit":"c164939120a5afcf7881d09cba77fa6ca92765af"},"previous_names":["daniel-onyenwee/postgres-mini"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-onyenwee%2Fpostgres-mini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-onyenwee%2Fpostgres-mini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-onyenwee%2Fpostgres-mini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-onyenwee%2Fpostgres-mini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daniel-onyenwee","download_url":"https://codeload.github.com/daniel-onyenwee/postgres-mini/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242130130,"owners_count":20076556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["database","mini","postgres","postgresql","sql"],"created_at":"2024-11-15T23:09:20.973Z","updated_at":"2025-12-02T21:05:13.801Z","avatar_url":"https://github.com/daniel-onyenwee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgres-mini\n\nA package to run an mini postgres database right from NodeJS.\n\n## Install\n\n```bash\nnpm i postgres-mini\n```\n\n## Usage\n\n```ts\nimport Postgres from 'postgres-mini'\n\nasync function main() {\n    // Create a postgres instance.\n    const pgInstance = await Postgres.create()\n\n    // Initialize the postgres instance and set all configuration  \n    await pgInstance.initialize()\n\n    // Start the postgres instances\n    await pgInstance.start()\n\n    // Create a database\n    await pgInstance.createDatabase(\"PERSON\")\n\n    // Make a query\n    const result = await pgInstance.query(\"SELECT datname FROM pg_database\")\n\n    // Stop the postgres instances\n    await pgInstance.stop()\n}\n\nmain()\n\n```\n\n## Documentation\n\n[Link](https://daniel-onyenwee.github.io/postgres-mini/)\n\n## Credits\n\nPostgres mini was created based on the inspiration of Lei Nelissen [embedded-postgres](https://github.com/leinelissen/embedded-postgres) package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-onyenwee%2Fpostgres-mini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniel-onyenwee%2Fpostgres-mini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-onyenwee%2Fpostgres-mini/lists"}