{"id":28396227,"url":"https://github.com/ssbc/ssb-bendy-butt","last_synced_at":"2025-10-28T00:44:35.472Z","repository":{"id":37032800,"uuid":"373837323","full_name":"ssbc/ssb-bendy-butt","owner":"ssbc","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-03T22:21:53.000Z","size":157,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-14T06:22:56.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ssbc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSES/CC0-1.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-04T12:38:13.000Z","updated_at":"2022-05-14T10:11:13.000Z","dependencies_parsed_at":"2022-06-25T14:29:43.602Z","dependency_job_id":null,"html_url":"https://github.com/ssbc/ssb-bendy-butt","commit_stats":null,"previous_names":["ssb-ngi-pointer/ssb-bendy-butt"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ssbc/ssb-bendy-butt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fssb-bendy-butt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fssb-bendy-butt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fssb-bendy-butt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fssb-bendy-butt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssbc","download_url":"https://codeload.github.com/ssbc/ssb-bendy-butt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fssb-bendy-butt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281366884,"owners_count":26488696,"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-10-27T02:00:05.855Z","response_time":61,"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-05-31T21:37:26.962Z","updated_at":"2025-10-28T00:44:35.456Z","avatar_url":"https://github.com/ssbc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nSPDX-FileCopyrightText: 2021 Anders Rune Jensen\n\nSPDX-License-Identifier: CC0-1.0\n--\u003e\n\n# SSB Bendy Butt\n\nImplementation of [bendy butt] in JS.\n\nYou can use this module as an ssb-db2 plugin, or you can use it as a standalone tool to generate and validate bendybutt messages.\n\n## Installation\n\n```bash\nnpm install ssb-bendy-butt\n```\n\nRequires Node.js 12 or higher.\n\n## Usage in ssb-db2\n\n- Requires **Node.js 12** or higher\n- Requires `secret-stack@^6.2.0`\n- Requires `ssb-db2@\u003e=5.0.0`\n\n```diff\n SecretStack({appKey: require('ssb-caps').shs})\n   .use(require('ssb-master'))\n+  .use(require('ssb-db2'))\n+  .use(require('ssb-bendy-butt'))\n   .use(require('ssb-conn'))\n   .use(require('ssb-blobs'))\n   .call(null, config)\n```\n\nNow you can call ssb-db2's `create(opts)` API providing `opts.feedFormat` as `\"bendybutt-v1\"`.\n\n## Usage as a standalone\n\nNotice you import the `/format` from the module.\n\n```js\nconst ssbKeys = require('ssb-keys');\nconst bendyButtFormat = require('ssb-bendy-butt/format');\n\nconst msgVal = bendyButtFormat.newNativeMsg({\n  keys: ssbKeys.generate(null, null, 'bendybutt-v1'),\n  content: {\n    type: 'post',\n    text: 'Hello, world!',\n  },\n  timestamp: Date.now(),\n  previous: null,\n  hmacKey: null,\n});\n```\n\nThis module conforms with [ssb-feed-format](https://github.com/ssbc/ssb-feed-format) so with ssb-bendy-butt you can use all the methods specified by ssb-feed-format.\n\n[bendy butt]: https://github.com/ssb-ngi-pointer/bendy-butt-spec\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbc%2Fssb-bendy-butt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssbc%2Fssb-bendy-butt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbc%2Fssb-bendy-butt/lists"}