{"id":51298995,"url":"https://github.com/azuchi/minisketchrb","last_synced_at":"2026-06-30T17:32:24.831Z","repository":{"id":62409616,"uuid":"559866184","full_name":"azuchi/minisketchrb","owner":"azuchi","description":"This is a Ruby wrapper for the libminisketch C library.","archived":false,"fork":false,"pushed_at":"2025-05-28T08:00:41.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T18:05:33.285Z","etag":null,"topics":["minisketch","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/azuchi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null},"funding":{"github":"azuchi"}},"created_at":"2022-10-31T09:05:38.000Z","updated_at":"2025-05-28T08:00:53.000Z","dependencies_parsed_at":"2024-01-11T08:42:36.460Z","dependency_job_id":null,"html_url":"https://github.com/azuchi/minisketchrb","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"2f043c2e43b35777d1d020aa078b4837b630f137"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/azuchi/minisketchrb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azuchi%2Fminisketchrb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azuchi%2Fminisketchrb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azuchi%2Fminisketchrb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azuchi%2Fminisketchrb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azuchi","download_url":"https://codeload.github.com/azuchi/minisketchrb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azuchi%2Fminisketchrb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34977668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"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":["minisketch","ruby"],"created_at":"2026-06-30T17:32:23.880Z","updated_at":"2026-06-30T17:32:24.822Z","avatar_url":"https://github.com/azuchi.png","language":"Ruby","funding_links":["https://github.com/sponsors/azuchi"],"categories":[],"sub_categories":[],"readme":"# Minisketch binding for ruby [![Build Status](https://github.com/azuchi/minisketchrb/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/azuchi/minisketchrb/actions/workflows/main.yml) [![Gem Version](https://badge.fury.io/rb/minisketch.svg)](https://badge.fury.io/rb/minisketch)\n\nThis is a wrapper around [libminisketch](https://github.com/sipa/minisketch) for efficient set reconciliation.\n\n## Installation\n\n### Install libminisketch\n\nSince this library is an FFI wrapper, `libminisketch` must be installed beforehand.\n\nIf the library is installed in an unusual location,\nthe environment variable [`LIBMINISKETCH`] can be used to specify the path to the library.\n\n### Install gem\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'minisketch'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install minisketch\n\n## Usage\n\nFunctions exposed in `libminisketch.h` can be accessed using the `Minisketch` class.\n\n```ruby\nrequire 'minisketch'\n\n# Create new sketch\nsketch = Minisketch.create(12, 0, 4)\n\n# Add element to sketch\nsketch.add(3000)\n# or\nsketch \u003c\u003c 3001\n\n# Serialize\nsketch.serialize\n\n# Decode\ndecoded = sketch.decode\n\nanother_sketch = Minisketch.create(12, 0, 4)\nanother_sketch \u003c\u003c 3000\nanother_sketch \u003c\u003c 3002\n\n# Merge another sketch\nsketch.merge(another_sketch)\n```\n\nThis library has been tested based on commit [a571ba2](https://github.com/sipa/minisketch/commit/a571ba20f9dd1accab6a2309d066369878042ca6) of libminisketch.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazuchi%2Fminisketchrb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazuchi%2Fminisketchrb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazuchi%2Fminisketchrb/lists"}