{"id":15667609,"url":"https://github.com/holsee/spirit_fingers","last_synced_at":"2025-10-10T10:05:28.714Z","repository":{"id":54938942,"uuid":"133682103","full_name":"holsee/spirit_fingers","owner":"holsee","description":"Elixir SimHash NIFs written in Rust ","archived":false,"fork":false,"pushed_at":"2023-02-09T00:08:35.000Z","size":3522,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-11T01:31:15.662Z","etag":null,"topics":["elixir","nif","rust","simhash"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/spirit_fingers","language":"Elixir","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/holsee.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-16T14:53:44.000Z","updated_at":"2024-08-23T10:48:42.000Z","dependencies_parsed_at":"2024-10-03T14:04:41.252Z","dependency_job_id":"cd6077bd-e958-46c9-996b-aa30a9519b6b","html_url":"https://github.com/holsee/spirit_fingers","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":0.05882352941176472,"last_synced_commit":"1c8e9f03577ba5f4bbafdb78c6227947b1250ede"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/holsee/spirit_fingers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Fspirit_fingers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Fspirit_fingers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Fspirit_fingers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Fspirit_fingers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holsee","download_url":"https://codeload.github.com/holsee/spirit_fingers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holsee%2Fspirit_fingers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273782436,"owners_count":25167130,"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-05T02:00:09.113Z","response_time":402,"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":["elixir","nif","rust","simhash"],"created_at":"2024-10-03T14:04:28.387Z","updated_at":"2025-10-10T10:05:23.674Z","avatar_url":"https://github.com/holsee.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpiritFingers\n\n\"Fast SimHash NIFs written in Rust 🐇💨 as Erlang/Elixir versions were too slow 🐢\"\n\nFor a full comparison versus native elixir solutions see: [Simhash Benchmarks](https://github.com/holsee/simhash_benchmarks)\nTL;DR Spirit Fingers is 400-900x faster, orders of magnitude more memory efficient and handles large binaries where others cannot. \n\n![logo](./logo.png)\n\n* [Hex Package](https://hex.pm/packages/spirit_fingers).\n* [Documentation](https://hexdocs.pm/spirit_fingers).\n\n## Build\n\n```\nmix compile\n```\n\n## Test\n\n```\nmix test\n```\n\n## Versions\n\n* Elixir ~\u003e 1.14\n* OTP 25\n* Rust 2021 ~\u003e 1.67.0\n* Rustler 0.27.0\n\n## Installation\n\nAdd `spirit_fingers` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:spirit_fingers, \"~\u003e 0.4\"}\n  ]\nend\n```\n\n## Usage\n\nGenerate SimHash:\n``` elixir\nSpiritFingers.SimHash.similarity_hash(\"wow\")\n{:ok, 17399923637769257768}\n```\n\nSimilarity between strings:\n``` elixir\nSpiritFingers.SimHash.similarity(\"Hocus pocus\", \"Hocus pocus pilatus pas\")\n{:ok, 0.9375}\n```\n\nHamming Distance between hashes:\n``` elixir\nSpiritFingers.SimHash.hamming_distance(17399923637769257768, 17399923637769257768)\n{:ok, 0.0}\n```\n\nSimilarity between hashes:\n``` elixir\nSpiritFingers.SimHash.hash_similarity(17399923637769257768, 17399923637769257768)\n{:ok, 1.0}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholsee%2Fspirit_fingers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholsee%2Fspirit_fingers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholsee%2Fspirit_fingers/lists"}