{"id":19939405,"url":"https://github.com/yito88/blossom","last_synced_at":"2026-05-25T16:03:26.072Z","repository":{"id":57713253,"uuid":"261108370","full_name":"yito88/blossom","owner":"yito88","description":"Simple Bloom filter","archived":false,"fork":false,"pushed_at":"2023-09-17T15:12:43.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T04:16:51.775Z","etag":null,"topics":["bloomfilter"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yito88.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":"2020-05-04T07:33:05.000Z","updated_at":"2023-09-17T15:08:04.000Z","dependencies_parsed_at":"2022-09-06T02:10:58.759Z","dependency_job_id":null,"html_url":"https://github.com/yito88/blossom","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yito88%2Fblossom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yito88%2Fblossom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yito88%2Fblossom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yito88%2Fblossom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yito88","download_url":"https://codeload.github.com/yito88/blossom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241367896,"owners_count":19951445,"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","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":["bloomfilter"],"created_at":"2024-11-12T23:46:11.276Z","updated_at":"2026-05-25T16:03:26.012Z","avatar_url":"https://github.com/yito88.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Clojars Project](https://img.shields.io/clojars/v/blossom.svg)](https://clojars.org/blossom)\n[![Build](https://github.com/yito88/blossom/workflows/build/badge.svg)](https://github.com/yito88/blossom/actions)\n\n# blossom\nA simple Bloom filter\n\n## Usage\n\n```clojure\n(require '[blossom.core :as blossom])\n\n(let [bf (blossom/make-filter {})]\n  (blossom/add bf \"a\")\n  (blossom/add bf \"abc\")\n\n  (prn (blossom/hit? bf \"a\"))    ;; -\u003e true\n  (prn (blossom/hit? bf \"bc\"))   ;; -\u003e false\n  (prn (blossom/hit? bf \"abc\"))) ;; -\u003e true\n```\n\n- `make-filter` makes a Bloom filter with the following paramters\n  ```clojure\n  (blossom/make-filter {:hash-size \"SHA-256\"\n                        :size 1024\n                        :num-hashes 3\n                        :thread-safe? false})\n  ```\n  - `hash-algo`: You can specify an algorithm for the hash function. \"MD2\", \"MD5\", \"SHA-1\", \"SHA-224\", \"SHA-256\", \"SHA-384\" or \"SHA-512\" can be set. By default, \"SHA-256\" will be set.\n  - `size`: Bloom filter's size in bits. By default, the size will be 1024 bits.\n  - `num-hashes`: This specifies the number of bits set to the filter when an item is added. By default, this will be 3.\n  - `thread-safe?`: If this is true, a thread-safe filter is made. The performance of the filter will be lower than that of a filter with `{:thread-safe false}`. BY default, it will be false.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyito88%2Fblossom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyito88%2Fblossom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyito88%2Fblossom/lists"}