{"id":24129552,"url":"https://github.com/luandro/ssb-replication-graphql","last_synced_at":"2025-09-04T00:37:43.718Z","repository":{"id":57368806,"uuid":"188608211","full_name":"luandro/ssb-replication-graphql","owner":"luandro","description":null,"archived":false,"fork":false,"pushed_at":"2019-05-27T21:28:57.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T16:44:12.474Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luandro.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}},"created_at":"2019-05-25T20:12:46.000Z","updated_at":"2020-08-24T03:57:06.000Z","dependencies_parsed_at":"2022-08-23T20:10:23.521Z","dependency_job_id":null,"html_url":"https://github.com/luandro/ssb-replication-graphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luandro/ssb-replication-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luandro%2Fssb-replication-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luandro%2Fssb-replication-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luandro%2Fssb-replication-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luandro%2Fssb-replication-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luandro","download_url":"https://codeload.github.com/luandro/ssb-replication-graphql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luandro%2Fssb-replication-graphql/sbom","scorecard":{"id":601486,"data":{"date":"2025-08-11","repo":{"name":"github.com/luandro/ssb-replication-graphql","commit":"c5aff5c1505a293ef50faf6d72e914cc6dd0f794"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/5 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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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-21T00:33:13.509Z","repository_id":57368806,"created_at":"2025-08-21T00:33:13.509Z","updated_at":"2025-08-21T00:33:13.509Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273534109,"owners_count":25122635,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-01-11T19:33:40.893Z","updated_at":"2025-09-04T00:37:43.692Z","avatar_url":"https://github.com/luandro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSB GraphQL Schema\n\n[![npm version](https://badge.fury.io/js/ssb-graphql-defaults.svg)](https://badge.fury.io/js/ssb-graphql-defaults)\n\nGraphQL schema for Secure Scuttlebot, meant to be used as a plugin with [open-app-graphql-server](https://github.com/open-app/open-app-graphql-server). You can also add it to your existing schema using [schema stitching](https://www.apollographql.com/docs/graphql-tools/schema-stitching.html).\n\n## Usage\n\nInstall it with `npm i -S ssb-graphql-defaults` and use it with your GraphQL server, or use it as a plugin with the [open-app-graphql-server](https://github.com/open-app/open-app-graphql-server).\n\n## API\n\n### Query\n\n##### `whoami`\nGet id of the current sbot user.\n\n#### messages\n\n##### `message({ id: String })`\nGet a message by its hash-id. Use fragments to get the content of specific messages such as a `post`:\n```\nquery {\n  message(id: \"%NgcMlAco0ZKI8lIteD/LRJMHKhFZrQxJvUrXaFmEIcQ=.sha256\") {\n    key\n    author\n    ... on PostMessage {\n      content {\n        type\n        text\n      }\n    }\n  }\n}\n```\n\n#### blobs\n\n##### `blob ({ id: String })`\nGet a blob by its ID.\n\n#### gossip\n\n##### `peers`\nGet the current peerlist.\n\n### Mutation\n\n#### messages\n\n##### `publish ({ type: String content: String })`\nConstruct a message using sbot's current user, and add it to the DB.\n\n- `content` ([stringified](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) object): The content of the message.\n- - `type` (string): The object's type.\n\n##### `publishPost ({ text: String })`\nPublish `post` message with text.\n\n### Subscription\n\n#### gossip\n\n##### `gossip`\nListen for gossip events.\n\n#### replicate\n\n##### `replicate`\nListen to replicate events.\n\n## To be included\n\n### Query\n\n#### friends\n\n##### `isFollowing ({ source: String, dest: String })`\nCallsback true if source follows dest, false otherwise.\n\n##### `isBlocking ({ source: String, dest: String})`\nCallsback true if source blocks dest, false otherwise.\n\n#### private\n\n##### `unbox ({ ciphertext: String })`\nAttempt to decrypt the content of an encrypted message.\n\n### Mutation\n\n#### blobs\n\n##### `wantBlob ({ id: String })`\nBegin searching the network for the blob of the given hash.\n\n##### `addBlob ({ source: File, id: String })`\nAdd a new blob to the DB.\n\n##### `removeBlob ({ id: String })`\nRemove a blob from the store.\n\n#### private\n\n##### `publishPrivate({ content, recps })`\nPublish an encrypted message.\n\n- `content` (object): The content of the message.\n- `recps` (array of feedids): The recipients of the message (limit 7).\n\n### Subscription\n\n#### messages\n\n##### `messagesByType ({ type: String })`\nRetrieve messages with a given type, ordered by receive-time.\n\n##### `feed`\nFetch messages ordered by their claimed timestamps\n\n##### `log`\nFetch messages ordered by the time received.\n\n##### `history ({ id: String })`\nFetch messages from a specific user, ordered by sequence numbers.\n\n##### `user ({ id: String })`\nFetch messages from a specific user, ordered by sequence numbers.\n\n- `rel` (string, optional): Filters the links by the relation string.\n\n##### `links ({ source: String, dest: String, rel: String })`\nGet a stream of messages, feeds, or blobs that are linked to/from an id.\n\n#### blobs\n\n##### `listBlobs`\nList the hashes of the blobs in the DB.\n\n##### `blobChanges`\nListen for any newly-downloaded blobs.\n\n#### friends\n\n##### `creaFriendStream({ start: String, graph:, dunbar:, hops:, meta:})`\nLive-stream the ids of feeds which meet the given hops query. If meta option is set, then will return steam of {id, hops}\n\n## Future plans\n\n- https://github.com/ssbc/ssb-backlinks\n- https://github.com/ssbc/ssb-threads\n- https://github.com/dominictarr/ssb-query\n- https://github.com/ssbc/ssb-contacts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluandro%2Fssb-replication-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluandro%2Fssb-replication-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluandro%2Fssb-replication-graphql/lists"}