{"id":43091849,"url":"https://github.com/mheadd/node-ridb","last_synced_at":"2026-01-31T16:16:06.510Z","repository":{"id":28337765,"uuid":"31850993","full_name":"mheadd/node-ridb","owner":"mheadd","description":"Node.js module for USDA's Recreation Information Database (RIDB) API.","archived":false,"fork":false,"pushed_at":"2015-03-30T19:06:29.000Z","size":164,"stargazers_count":11,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-09T03:54:39.460Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mheadd.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}},"created_at":"2015-03-08T13:40:03.000Z","updated_at":"2020-04-28T18:52:27.000Z","dependencies_parsed_at":"2022-08-22T20:50:34.993Z","dependency_job_id":null,"html_url":"https://github.com/mheadd/node-ridb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mheadd/node-ridb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mheadd%2Fnode-ridb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mheadd%2Fnode-ridb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mheadd%2Fnode-ridb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mheadd%2Fnode-ridb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mheadd","download_url":"https://codeload.github.com/mheadd/node-ridb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mheadd%2Fnode-ridb/sbom","scorecard":{"id":639941,"data":{"date":"2025-08-11","repo":{"name":"github.com/mheadd/node-ridb","commit":"9ec2463b361c3139a1d32e5f0e238375be9c696d"},"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/14 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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" 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-21T10:26:16.322Z","repository_id":28337765,"created_at":"2025-08-21T10:26:16.322Z","updated_at":"2025-08-21T10:26:16.322Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28947573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"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":"2026-01-31T16:16:05.804Z","updated_at":"2026-01-31T16:16:06.503Z","avatar_url":"https://github.com/mheadd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RIDB\n\nWrapper for the Department of Agriculture's Recreation Information Database (RIDB) API. Documentation for the RIDB API can be found [here](http://usda.github.io/RIDB/).\n\n## Installation\n\n\u003ccode\u003enpm install ridb\u003c/code\u003e\n\n## Usage\n\nObtain an API key [here](https://ridb.recreation.gov/?action=register). When you have a key, initialize an ridb client like this:\n\n\u003ccode\u003eridb.init('your-api-key');\u003c/code\u003e\n\n## Examples\n\nNote - additional examples can be found on the [wiki](https://github.com/mheadd/node-ridb/wiki).\n\nGet all facilities within 100 miles of Syracuse, NY that allow camping.\n\n```javascript\nridb.facilities.details(null, {latitude: 43.0469, longitude: -76.1444, radius: 100, activity: '9,109'}, function(error, response) {\n  if(!error) {\n    console.log(JSON.stringify(response));\n  }\n});\n```\n\n```json\n{\n  \"METADATA\": {\n    \"RESULTS\": {\n      \"CURRENT_COUNT\": 1,\n      \"TOTAL_COUNT\": 6\n    },\n    \"SEARCH_PARAMETERS\": {\n      \"LATITUDE\": 43.0469,\n      \"RADIUS\": 100,\n      \"LONGITUDE\": -76.1444,\n      \"LIMIT\": 1,\n      \"OFFSET\": 0,\n      \"ACTIVITY\": \"9,109\",\n      \"QUERY\": \"\"\n    }\n  },\n  \"RECDATA\": [\n    {\n      \"FacilityID\": 233523,\n      \"OrgFacilityID\": \"AN373226\",\n      \"LegacyFacilityID\": 73226,\n      \"FacilityReservationURL\": \"\",\n      \"FacilityMapURL\": \"\",\n      \"FacilityPhone\": \"570-835-5281\",\n      \"FacilityTypeDescription\": \"Camping\",\n      \"FacilityLatitude\": 41.886944444444445,\n      \"FacilityDescription\": \"\u003ch2\u003eOverview\u003c/h2\u003eIves Run Campground sits on the eastern shore of Hammond Lake in north-central Pennsylvania. \u003cbr /\u003e\u003cbr /\u003eSurrounded by lush forested ridges, the lake offers recreation for the entire family, including picnicking, swimming, boating, fishing, hiking, hunting and wildlife watching. \u003cbr /\u003e\u003cbr /\u003eIves Run, with its beach and grassy sunning area, is a great place for kids of any age. The facility has campsites as well as group picnic shelters that can be reserved for family reunions, company picnics, neighborhood gatherings and other group events. \u003ch4\u003eNatural Features:\u003c/h4\u003eThe partially forested campground sits in the pristine setting of the Endless Mountains region of Pennsylvania, along the Allegheny Plateau in the Appalachian Mountains. The Tioga-Hammond Lakes Project consists of two separate dams and reservoirs. The surrounding land paints a scenic picture of rolling mountains and open fields. \u003ch4\u003eRecreation:\u003c/h4\u003eTioga-Hammond Lakes offer a variety of outdoor activities. With a boat ramp and overnight mooring, campers can easily spend time on the water. \u003cbr /\u003e\u003cbr /\u003eAnglers seek out record crappie, giant musky, striped, largemouth and smallmouth bass, walleye and channel catfish. \u003cbr /\u003e\u003cbr /\u003eThe fields and forests around the lakes are popular destinations for both local and out-of-state hunters looking for large and small game species native to the eastern hardwood forests.\u003cbr /\u003e\u003cbr /\u003eFour hiking trails, each offering something different, can be accessed from this facility. Near the visitor center, archers use the mile-long Archery Trail, which has targets and tree stands.\u003ch4\u003eFacilities:\u003c/h4\u003eIves Run is a large facility, with nearly 200 reservable campsites, as well as five reservable group picnic shelters available for day use. \u003cbr /\u003e\u003cbr /\u003eOther amenities include hot showers, playgrounds, boat ramp, rental mooring slips and a dump station. A swimming area with a grass beach and concrete bottom is also provided. Various sport fields and a volleyball court are close by.\u003cbr /\u003e\u003cbr /\u003eAdditional fees may be charged for some amenities.\",\n      \"FacilityLongitude\": -77.17916666666667,\n      \"FacilityEmail\": \"\",\n      \"FacilityDirections\": \"The campground is located 4 miles south of Tioga and 12 miles north of Wellsboro, Pennsylvania, on State Route 287, within the Ives Run Recreation Area.\",\n      \"FacilityName\": \"IVES RUN\",\n      \"Keywords\": \"\",\n      \"FacilityUseFeeDescription\": \"\",\n      \"StayLimit\": \"\",\n      \"GEOJSON\": {\n        \"TYPE\": \"Point\",\n        \"COORDINATES\": [\n          -77.17916666666667,\n          41.886944444444445\n        ]\n      },\n      \"LastUpdatedDate\": \"2015-03-05\",\n      \"FacilityAdaAccess\": \"\"\n    }\n  ]\n}\n\n```\n\nGet a list of organizations with the word 'Department' in the title.\n\n```javascript\nridb.organizations.details(null, {query: 'Department', limit: 2}, function(error, response) {\n  if(!error) {\n    console.log(JSON.stringify(response));\n  }\n});\n```\n```json\n{\n  \"METADATA\": {\n    \"RESULTS\": {\n      \"CURRENT_COUNT\": 2,\n      \"TOTAL_COUNT\": 6\n    },\n    \"SEARCH_PARAMETERS\": {\n      \"LIMIT\": 2,\n      \"OFFSET\": 0,\n      \"QUERY\": \"Department\"\n    }\n  },\n  \"RECDATA\": [\n    {\n      \"OrgName\": \"Department of Agriculture\",\n      \"OrgID\": 163,\n      \"OrgAbbrevName\": \"USDA\",\n      \"OrgJurisdictionType\": \"Federal\",\n      \"OrgType\": \"\",\n      \"LastUpdatedDate\": \"2007-02-26\",\n      \"OrgURLText\": \"US Department of Agriculture\",\n      \"OrgURLAddress\": \"http://www.usda.gov\",\n      \"OrgImageURL\": \"\",\n      \"OrgParentID\": 157\n    },\n    {\n      \"OrgName\": \"Department of Commerce\",\n      \"OrgID\": 161,\n      \"OrgAbbrevName\": \"DOC\",\n      \"OrgJurisdictionType\": \"Federal\",\n      \"OrgType\": \"\",\n      \"LastUpdatedDate\": \"2007-02-26\",\n      \"OrgURLText\": \"\",\n      \"OrgURLAddress\": \"\",\n      \"OrgImageURL\": \"\",\n      \"OrgParentID\": 157\n    }\n  ]\n}\n\n```\n\nGet details for a campsites for a specific facility with 'Sunny' in the title and that are accessible.\n\n```javascript\nvar options = {loop: 'SUNNY', CampsiteAccessible: true, limit: 1};\nridb.campsites.getAllForFacility(234150, options, function(error, response) {\n  if(!error) {\n    console.log(JSON.stringify(response)); \n  }\n});\n```\n\n```json\n{\n  \"METADATA\": {\n    \"RESULTS\": {\n      \"CURRENT_COUNT\": 1,\n      \"TOTAL_COUNT\": 46\n    },\n    \"SEARCH_PARAMETERS\": {\n      \"FACILITYID\": 234150,\n      \"LIMIT\": 1,\n      \"OFFSET\": 0,\n      \"QUERY\": \"\"\n    }\n  },\n  \"RECDATA\": [\n    {\n      \"FacilityID\": 234150,\n      \"CampsiteAccessible\": true,\n      \"Loop\": \"SUNNY GULCH CAMPGROUND \",\n      \"ENTITYMEDIA\": [],\n      \"LastUpdatedDate\": \"2015-02-19\",\n      \"TypeOfUse\": \"Overnight\",\n      \"ATTRIBUTES\": [\n        {\n          \"AttributeName\": \"Capacity/Size Rating\",\n          \"AttributeID\": 50602355,\n          \"AttributeValue\": \"Single\"\n        },\n        {\n          \"AttributeName\": \"Checkin Time\",\n          \"AttributeID\": 50602356,\n          \"AttributeValue\": \"2:00 PM\"\n        },\n        {\n          \"AttributeName\": \"Checkout Time\",\n          \"AttributeID\": 50602357,\n          \"AttributeValue\": \"12:00 PM\"\n        },\n        {\n          \"AttributeName\": \"Driveway Entry\",\n          \"AttributeID\": 50602358,\n          \"AttributeValue\": \"Back-In\"\n        },\n        {\n          \"AttributeName\": \"Driveway Surface\",\n          \"AttributeID\": 50602359,\n          \"AttributeValue\": \"Paved\"\n        },\n        {\n          \"AttributeName\": \"Fire Pit\",\n          \"AttributeID\": 50602360,\n          \"AttributeValue\": \"Y\"\n        },\n        {\n          \"AttributeName\": \"Max Num of People\",\n          \"AttributeID\": 50602361,\n          \"AttributeValue\": 8\n        },\n        {\n          \"AttributeName\": \"Max Num of Vehicles\",\n          \"AttributeID\": 50602362,\n          \"AttributeValue\": 2\n        },\n        {\n          \"AttributeName\": \"Min Num of People\",\n          \"AttributeID\": 50602363,\n          \"AttributeValue\": 1\n        },\n        {\n          \"AttributeName\": \"Picnic Table\",\n          \"AttributeID\": 50602364,\n          \"AttributeValue\": \"Y\"\n        },\n        {\n          \"AttributeName\": \"Shade\",\n          \"AttributeID\": 50602365,\n          \"AttributeValue\": \"Partial\"\n        },\n        {\n          \"AttributeName\": \"Site Reserve Type\",\n          \"AttributeID\": 50602366,\n          \"AttributeValue\": \"Site-Specific\"\n        },\n        {\n          \"AttributeName\": \"Tent Pad\",\n          \"AttributeID\": 50602367,\n          \"AttributeValue\": \"Y\"\n        },\n        {\n          \"AttributeName\": \"Campfire Allowed\",\n          \"AttributeID\": 50602368,\n          \"AttributeValue\": \"Y\"\n        }\n      ],\n      \"CreatedDate\": \"2014-05-02\",\n      \"PERMITTEDEQUIPMENT\": [\n        {\n          \"EquipmentName\": \"Fifth Wheel\",\n          \"MaxLength\": 35\n        },\n        {\n          \"EquipmentName\": \"Pickup Camper\",\n          \"MaxLength\": 35\n        },\n        {\n          \"EquipmentName\": \"Pop up\",\n          \"MaxLength\": 35\n        },\n        {\n          \"EquipmentName\": \"RV/Motorhome\",\n          \"MaxLength\": 35\n        },\n        {\n          \"EquipmentName\": \"Tent\",\n          \"MaxLength\": 0\n        },\n        {\n          \"EquipmentName\": \"Trailer\",\n          \"MaxLength\": 35\n        },\n        {\n          \"EquipmentName\": \"Caravan/Camper Van\",\n          \"MaxLength\": 35\n        }\n      ],\n      \"CampsiteType\": \"STANDARD NONELECTRIC\",\n      \"CampsiteID\": 22479,\n      \"CampsiteName\": 2\n    }\n  ]\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmheadd%2Fnode-ridb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmheadd%2Fnode-ridb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmheadd%2Fnode-ridb/lists"}