{"id":48068456,"url":"https://github.com/turnage/graw","last_synced_at":"2026-04-04T14:38:20.376Z","repository":{"id":41819515,"uuid":"38549211","full_name":"turnage/graw","owner":"turnage","description":"Golang Reddit API Wrapper","archived":false,"fork":false,"pushed_at":"2025-03-21T20:36:09.000Z","size":784,"stargazers_count":290,"open_issues_count":21,"forks_count":50,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-21T21:27:44.330Z","etag":null,"topics":["bot","reddit"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/turnage.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"contributing.md","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":"2015-07-04T22:13:38.000Z","updated_at":"2025-03-21T20:36:13.000Z","dependencies_parsed_at":"2025-03-21T21:34:38.719Z","dependency_job_id":null,"html_url":"https://github.com/turnage/graw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/turnage/graw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turnage%2Fgraw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turnage%2Fgraw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turnage%2Fgraw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turnage%2Fgraw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turnage","download_url":"https://codeload.github.com/turnage/graw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turnage%2Fgraw/sbom","scorecard":{"id":902739,"data":{"date":"2025-08-11","repo":{"name":"github.com/turnage/graw","commit":"ee225b5266495afb56785ff2245511775c8a6356"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"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":"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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"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":4,"reason":"Found 11/24 approved changesets -- score normalized to 4","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":10,"reason":"no dangerous workflow patterns detected","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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/turnage/graw/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/turnage/graw/go.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/turnage/graw/go.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/go.yml:29","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 goCommand dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"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":"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":"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T16:16:08.427Z","repository_id":41819515,"created_at":"2025-08-24T16:16:08.428Z","updated_at":"2025-08-24T16:16:08.428Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31403130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: 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":["bot","reddit"],"created_at":"2026-04-04T14:38:20.317Z","updated_at":"2026-04-04T14:38:20.368Z","avatar_url":"https://github.com/turnage.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"graw\n--------------------------------------------------------------------------------\n\n![Build Status](https://travis-ci.org/turnage/graw.svg?branch=master)\n![Version: 1.2.0](https://img.shields.io/badge/version-1.2.0-brightgreen.svg)\n[![GoDoc](https://godoc.org/github.com/turnage/graw?status.svg)](https://godoc.org/github.com/turnage/graw)\n\n    go get github.com/turnage/graw\n\ngraw is a library for building Reddit bots that takes care of everything you\ndon't want to. [Read the tutorial book](https://turnage.gitbooks.io/graw/content/)!\n\nAs of major version 1, the API promise is: no breaking changes, ever. Details\nbelow. This applies to all (library) subpackages of graw.\n\n### Usage\n\nThe design of graw is that your bot is a handler for events, Reddit is a source\nof events, and graw connects the two. If you want to announce all the new posts\nin a given subreddit, this is your bot:\n\n````go\ntype announcer struct {}\n\nfunc (a *announcer) Post(post *reddit.Post) error {\n        fmt.Printf(\"%s posted \\\"%s\\\"\\n\", post.Author, post.Title)\n        return nil\n}\n````\n\nGive this to graw with an\n[api handle from the reddit package](https://godoc.org/github.com/turnage/graw/reddit)\nand a tell it what events you want to subscribe to; graw will take care of the\nrest. See the [godoc](https://godoc.org/github.com/turnage/graw) and\n[tutorial book](https://turnage.gitbooks.io/graw/content/) for more information.\n\n### Features\n\nThe primary feature of graw is robust event streams. graw supports many exciting\nevent streams:\n\n* New posts in subreddits.\n* New comments in subreddits.\n* New posts or comments by users.\n* Private messages sent to the bot.\n* Replies to the bot's posts.\n* Replies to the bot's comments.\n* Mentions of the bot's username.\n\nProcessing all of these events is as as simple as implementing a method to\nreceive them!\n\ngraw also provides two lower level packages for developers to tackle other\ninteractions with Reddit like one-shot scripts and bot actions. See\nsubdirectories in the godoc.\n\n### API Promise\n\nAs of version 1.0.0, the graw API is stable. I will not make any backwards\nincompatible changes, ever. The only exceptions are:\n\n* I may add methods to an interface. This will only break you if you embed it\n  and implement a method with the same name as the one I add.\n* I may add fields to the Config struct. This will only break you if you embed\n  it and add a field with the same name as the one I add, or initialize it\n  positionally.\n\nI don't foresee anyone having a reason to do either of these things. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturnage%2Fgraw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturnage%2Fgraw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturnage%2Fgraw/lists"}