{"id":16859590,"url":"https://github.com/dotcypress/rpool","last_synced_at":"2026-02-13T05:42:38.558Z","repository":{"id":143907016,"uuid":"87750177","full_name":"dotcypress/rpool","owner":"dotcypress","description":"Promise based RethinkDB connection pool.","archived":false,"fork":false,"pushed_at":"2019-05-09T22:30:18.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-23T17:55:24.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dotcypress.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-04-10T00:38:47.000Z","updated_at":"2019-05-09T22:30:20.000Z","dependencies_parsed_at":"2023-04-14T09:32:42.250Z","dependency_job_id":null,"html_url":"https://github.com/dotcypress/rpool","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dotcypress/rpool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotcypress%2Frpool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotcypress%2Frpool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotcypress%2Frpool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotcypress%2Frpool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotcypress","download_url":"https://codeload.github.com/dotcypress/rpool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotcypress%2Frpool/sbom","scorecard":{"id":353027,"data":{"date":"2025-08-11","repo":{"name":"github.com/dotcypress/rpool","commit":"a6f86099efb441646fc28488ca59ead569ff5db7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T08:47:51.862Z","repository_id":143907016,"created_at":"2025-08-18T08:47:51.862Z","updated_at":"2025-08-18T08:47:51.862Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29397087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T04:26:15.637Z","status":"ssl_error","status_checked_at":"2026-02-13T04:16:29.732Z","response_time":78,"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":[],"created_at":"2024-10-13T14:18:33.691Z","updated_at":"2026-02-13T05:42:38.534Z","avatar_url":"https://github.com/dotcypress.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://img.shields.io/travis/dotcypress/rpool.svg?branch=master\u0026style=flat-square)](https://travis-ci.org/dotcypress/rpool)\n[![NPM Version](https://img.shields.io/npm/v/rpool.svg?style=flat-square)](https://www.npmjs.com/package/rpool)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/)\n\n# rpool\n\n[RethinkDB](https://rethinkdb.com) connection pool.\n\n## Installation\n\n```js\n$ npm install --save rpool\n```\n\n## API\n\n### Create pool\n\n`rpool(r, dbOptions, poolOptions) -\u003e Pool`\n\n* `r` - RethinkDB reference\n* `dbOptions | dbOptions[]` - RethinkDB options\n  * `url`: Connection string/array of strings. If present will silentry rewrite connections options(host, port, etc.)\n  * `host`: the host to connect to (default localhost).\n  * `port`: the port to connect on (default 28015).\n  * `db`: the default database (default test).\n  * See [RethinkDB docs](https://www.rethinkdb.com/api/javascript/connect/) for additional options.\n* `poolOptions` - Pool options\n  * `min`: minimum number of connections to keep in pool at any given time. If this is set \u003e= max, the pool will silently set the min to equal `max`. (default 1)\n  * `max`: maximum number of connections. (default 10)\n  * `testOnBorrow`: should the pool validate resources before giving them to clients. (default true)\n  * `acquireTimeoutMillis`: max milliseconds an acquire call will wait for a resource before timing out. (default 10 seconds), if supplied should non-zero positive integer.\n  * See [generic-pool docs](https://www.npmjs.com/package/generic-pool).\n\n**Example:**\n\n```js\nconst r = require('rethinkdb')\nconst rpool = require('rpool')\n\nconst pool = rpool(r, 'rethinkdb://localhost:32779/foo')\nconst pool = rpool(r, ['rethinkdb://portal-1:32779/foo', 'rethinkdb://portal-2:32779/foo'])\nconst pool = rpool(r, 'rethinkdb://localhost:32779/foo', { max: 100, acquireTimeoutMillis: 5000 })\nconst pool = rpool(r, { url: 'rethinkdb://localhost:32779', db: 'bar' }, { max: 100 })\nconst pool = rpool(r, { host: 'localhost', port: '32779', db: 'foo' }, { max: 10 })\nconst pool = rpool(r, [\n  { url: 'rethinkdb://portal-1:32779/bar',' }\n  { url: 'rethinkdb://portal-2:32779', db: 'bar' }\n], { max: 100 })\n```\n\n### Acquire / release connections\n\n`pool.acquire(priority) -\u003e Promise\u003c#{connection, release}\u003e`\n\n* `priority`: optional priority.\n\n**Example:**\n```js\nconst r = require('rethinkdb')\nconst rpool = require('rpool')\n\nconst pool = rpool(r, 'rethinkdb://localhost:32779/foo')\n\npool.acquire().then(({ connection, release }) =\u003e {\n  r.table('users')\n    .run(connection)\n    .then((cursor) =\u003e {\n      console.log('Cursor:', cursor)\n    })\n    .catch((err) =\u003e {\n      console.log(err)\n    })\n    .then(release)\n})\n```\n\n#### Run queries\n\n`pool.run(query, options) -\u003e Promise\u003cQueryResult\u003e`\n\n* `query`: RethinkDB query or query builder function.\n* `options`: [Run option](https://www.rethinkdb.com/api/javascript/run/).\n\n\u003e ⚠️ Note: All cursors are automatically converted into arrays.\n\n**Example:**\n\n```js\nconst r = require('rethinkdb')\nconst rpool = require('rpool')\n\nconst pool = rpool(r, 'rethinkdb://localhost:32779/foo')\n\npool.run(r.table('users')).then((users) =\u003e {\n  console.log('Users:', users)\n})\n\npool.run((r) =\u003e r.table('users')).then((users) =\u003e {\n  console.log('Users:', users)\n})\n\nconst deleteQuery = r.table('users').get('user_id').delete()\npool.run(deleteQuery)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotcypress%2Frpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotcypress%2Frpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotcypress%2Frpool/lists"}