{"id":16560866,"url":"https://github.com/tyiu/swift-trie","last_synced_at":"2026-04-21T04:01:52.000Z","repository":{"id":243552616,"uuid":"812741862","full_name":"tyiu/swift-trie","owner":"tyiu","description":"A Swift package that provides a Trie data structure that allow efficient searches of values that map from prefixed keys or non-prefixed key substrings.","archived":false,"fork":false,"pushed_at":"2024-06-17T00:05:54.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T04:26:11.645Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tyiu.github.io/swift-trie/documentation/swifttrie/","language":"Swift","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/tyiu.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":"2024-06-09T18:44:05.000Z","updated_at":"2024-07-03T20:23:24.000Z","dependencies_parsed_at":"2024-06-17T00:39:45.193Z","dependency_job_id":null,"html_url":"https://github.com/tyiu/swift-trie","commit_stats":null,"previous_names":["tyiu/swift-trie"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tyiu/swift-trie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyiu%2Fswift-trie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyiu%2Fswift-trie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyiu%2Fswift-trie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyiu%2Fswift-trie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyiu","download_url":"https://codeload.github.com/tyiu/swift-trie/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyiu%2Fswift-trie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32076295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-10-11T20:30:17.146Z","updated_at":"2026-04-21T04:01:51.983Z","avatar_url":"https://github.com/tyiu.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Unit Tests](https://github.com/tyiu/swift-trie/actions/workflows/unit.yml/badge.svg)](https://github.com/tyiu/swift-trie/actions/workflows/unit.yml) [![SwiftLint](https://github.com/tyiu/swift-trie/actions/workflows/swiftlint.yml/badge.svg)](https://github.com/tyiu/swift-trie/actions/workflows/swiftlint.yml) [![Docs](https://github.com/tyiu/swift-trie/actions/workflows/docs.yml/badge.svg)](https://github.com/tyiu/swift-trie/actions/workflows/docs.yml)\n\n# SwiftTrie\n\nA Swift package that provides a [Trie](https://en.wikipedia.org/wiki/Trie) data structure that allow efficient searches of values that map from prefixed keys or non-prefixed key substrings.\n\n## Minimum Requirements\n\n- Swift 5.8\n\n## Installation\n\nSwiftTrie can be integrated as an Xcode project target or a Swift package target.\n\n### Xcode Project Target\n\n1. Go to `File` -\u003e `Add Package Dependencies`.\n2. Type https://github.com/tyiu/swift-trie.git into the search field.\n3. Select `swift-trie` from the search results.\n4. Select `Up to Next Major Version` starting from the latest release as the dependency rule.\n5. Ensure your project is selected next to `Add to Project`.\n6. Click `Add Package`.\n7. On the package product dialog, add `SwiftTrie` to your target and click `Add Package`.\n\n### Swift Package Target\n\nIn your `Package.swift` file:\n1. Add the SwiftTrie package dependency to https://github.com/tyiu/swift-trie.git\n2. Add `SwiftTrie` as a dependency on the targets that need to use the SDK.\n\n```swift\nlet package = Package(\n    // ...\n    dependencies: [\n        // ...\n        .package(url: \"https://github.com/tyiu/swift-trie.git\", .upToNextMajor(from: \"0.1.0\"))\n    ],\n    targets: [\n        .target(\n            // ...\n            dependencies: [\"SwiftTrie\"]\n        ),\n        .testTarget(\n            // ...\n            dependencies: [\"SwiftTrie\"]\n        )\n    ]\n)\n```\n\n## Usage\n\nSee [TrieTests.swift](Tests/SwiftTrieTests/TrieTests.swift) for an example of how to use SwiftTrie.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyiu%2Fswift-trie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyiu%2Fswift-trie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyiu%2Fswift-trie/lists"}