{"id":22117707,"url":"https://github.com/prosumma/kostore","last_synced_at":"2025-03-24T06:14:37.116Z","repository":{"id":85504722,"uuid":"451125715","full_name":"Prosumma/KoStore","owner":"Prosumma","description":"Kotlin type-safe hierarchical storage","archived":false,"fork":false,"pushed_at":"2022-01-24T03:05:09.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T11:46:16.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Prosumma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-01-23T14:17:06.000Z","updated_at":"2022-01-23T15:27:15.000Z","dependencies_parsed_at":"2023-03-07T14:15:15.703Z","dependency_job_id":null,"html_url":"https://github.com/Prosumma/KoStore","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2FKoStore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2FKoStore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2FKoStore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2FKoStore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prosumma","download_url":"https://codeload.github.com/Prosumma/KoStore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217936,"owners_count":20579300,"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":[],"created_at":"2024-12-01T13:38:41.101Z","updated_at":"2025-03-24T06:14:37.101Z","avatar_url":"https://github.com/Prosumma.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KoStore\n\nKoStore allows the simple creation of a type-safe, hierarchical data store that is not \"stringly typed\". Any serializable data type may be stored.\n\n```kotlin\nclass ConfigDomain(parent: AppDomain): ChildDomain\u003cAppDomain\u003e(NAME, parent) {\n  companion object {\n    const val NAME = \"config\"\n  }\n\n  val apiUrl: String by stored { \"https://api.myserver.com\" }\n  val maxRetries: Int? by stored()\n}\n\n// Add ConfigDomain as a child of AppDomain\nval AppDomain.config: ConfigDomain by child(ConfigDomain.NAME, ::ConfigDomain)\n\nfun main() {\n  val appDomain = AppDomain(SharedPreferencesContainer())\n  appDomain.config.maxRetries = 5\n  print(appDomain.config.apiUrl)\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprosumma%2Fkostore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprosumma%2Fkostore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprosumma%2Fkostore/lists"}