{"id":25453545,"url":"https://github.com/xcessentials/bytypestorage","last_synced_at":"2025-05-16T14:35:04.426Z","repository":{"id":56927785,"uuid":"102243964","full_name":"XCEssentials/ByTypeStorage","owner":"XCEssentials","description":"Data container that allows to store exactly one instance of any given type.","archived":false,"fork":false,"pushed_at":"2022-01-23T16:39:06.000Z","size":325,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T21:02:54.477Z","etag":null,"topics":["data-container","swift","unique-by-type","xcode"],"latest_commit_sha":null,"homepage":"https://xcessentials.github.io/ByTypeStorage/","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/XCEssentials.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":"2017-09-03T05:46:38.000Z","updated_at":"2021-11-26T01:58:55.000Z","dependencies_parsed_at":"2022-08-21T06:20:22.172Z","dependency_job_id":null,"html_url":"https://github.com/XCEssentials/ByTypeStorage","commit_stats":null,"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XCEssentials%2FByTypeStorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XCEssentials%2FByTypeStorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XCEssentials%2FByTypeStorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XCEssentials%2FByTypeStorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XCEssentials","download_url":"https://codeload.github.com/XCEssentials/ByTypeStorage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239384683,"owners_count":19629509,"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":["data-container","swift","unique-by-type","xcode"],"created_at":"2025-02-17T23:55:59.421Z","updated_at":"2025-02-17T23:56:00.458Z","avatar_url":"https://github.com/XCEssentials.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub License](https://img.shields.io/github/license/XCEssentials/ByTypeStorage.svg?longCache=true)](LICENSE)\n[![GitHub Tag](https://img.shields.io/github/tag/XCEssentials/ByTypeStorage.svg?longCache=true)](https://github.com/XCEssentials/ByTypeStorage/tags)\n[![Swift Package Manager Compatible](https://img.shields.io/badge/SPM-compatible-brightgreen.svg?longCache=true)](Package.swift)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-brightgreen.svg?longCache=true)](https://github.com/Carthage/Carthage)\n[![Written in Swift](https://img.shields.io/badge/Swift-5.0-orange.svg?longCache=true)](https://swift.org)\n[![Supported platforms](https://img.shields.io/badge/platforms-macOS%20%7C%20iOS%20%7C%20tvOS%20%7C%20watchOS%20%7C%20Linux-blue.svg?longCache=true)](Package.swift)\n[![Build Status](https://travis-ci.com/XCEssentials/ByTypeStorage.svg?branch=master)](https://travis-ci.com/XCEssentials/ByTypeStorage)\n\n# ByTypeStorage\n\nData container that allows to store exactly one instance of any given type\n\n\n\n## How it works\n\nIt's Dictionary-like (and Dictionary-based) key-value storage where key is derived from a type provided. Internally keys are just strings generated from a given value type full name (that includes module name, and all parent types in case of nested types). This feature allows to avoid the need of hard-coded string-based keys, improves type-safety, simplifies usage. Obviously, this data container is supposed to be used with custom data types that have some domain-specific semantics in their names and every value associated with this type supposed to be unique within each given storage.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcessentials%2Fbytypestorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxcessentials%2Fbytypestorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcessentials%2Fbytypestorage/lists"}