{"id":22846614,"url":"https://github.com/vicfran/archy","last_synced_at":"2026-05-02T13:31:52.575Z","repository":{"id":149036547,"uuid":"148357619","full_name":"vicfran/archy","owner":"vicfran","description":"Realm extensions written in Kotlin :rocket:","archived":false,"fork":false,"pushed_at":"2020-02-14T22:53:28.000Z","size":165,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-03-31T05:41:34.710Z","etag":null,"topics":["android","extensions","kotlin","kotlin-library","mobile","realm","realm-mobile-database"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/vicfran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-09-11T17:56:46.000Z","updated_at":"2022-12-02T20:50:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"e0a16903-88a5-4524-ae90-4d71d0a28b15","html_url":"https://github.com/vicfran/archy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/vicfran/archy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicfran%2Farchy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicfran%2Farchy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicfran%2Farchy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicfran%2Farchy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicfran","download_url":"https://codeload.github.com/vicfran/archy/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicfran%2Farchy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32536529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T12:25:33.646Z","status":"ssl_error","status_checked_at":"2026-05-02T12:24:51.733Z","response_time":132,"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":["android","extensions","kotlin","kotlin-library","mobile","realm","realm-mobile-database"],"created_at":"2024-12-13T03:29:56.362Z","updated_at":"2026-05-02T13:31:52.552Z","avatar_url":"https://github.com/vicfran.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# archy [![Build Status](https://travis-ci.com/vicfran/archy.svg?branch=dev)](https://travis-ci.com/vicfran/archy) [![Release](https://jitpack.io/v/vicfran/archy.svg)](https://jitpack.io/#vicfran/archy) [![codecov](https://codecov.io/gh/vicfran/archy/branch/dev/graph/badge.svg)](https://codecov.io/gh/vicfran/archy) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\narchy is a lightweight library which uses [kotlin extension functions](https://kotlinlang.org/docs/reference/extensions.html) to make the use of [Realm](https://realm.io/) mobile database more easy and secure, and fun!\n\nIt replaces **Realm** boilerplate providing a simple and robust scaffolding for you to build your persistence component inside your app.\n\nUsing **archy** makes the use of [Realm](https://realm.io/) as easy as never.\n\n## Usage\n\nExamples are based on following Realm data model :smiley_cat:, it extends **RealmObject** but your Realm entities can also implement **RealmModel** interface, works with both!:\n``` kotlin\nopen class CatRealmObject(\n    var name: String = \"\",\n    var age: Float = 0f,\n    var eyes: Int = 0,\n    var isOld: Boolean = false): RealmObject()\n```\n\nAt this moment, with **archy** you can do these Realm operations as easy as you can see:\n\n#### create\n``` kotlin\nval aCat = CatRealmObject(\"Newton\", 4.5f, 2, false)\naCat.save()\n```\n\n``` kotlin\nval otherCat = CatRealmObject(\"Turing\", 5f, 2, false)\nval oneMoreCat = CatRealmObject(\"Einstein\", 7f, 2, true)\nval cats = listOf(aCat, otherCat, oneMoreCat)\n\ncats.save()\n```\n\n#### retrieve\n``` kotlin\nallOf\u003cCatRealmObject\u003e()\nallOf\u003cCatRealmObject\u003e(\"eyes\", 2)\n```\n\n``` kotlin\nfirstOf\u003cCatRealmObject\u003e()\nfirstOf\u003cCatRealmObject\u003e(\"name\", \"Newton\")\n```\n\n#### delete\n``` kotlin\ndeleteAllFromRealm()\n```\n\n## Use of alpha versions\nIf you are brave enough to follow alpha development of archy that has not been packaged in an official release yet, you can use a **-alpha** release of the current development version of archy via [Gradle](https://gradle.org/), available on [JitPack](https://jitpack.io/#vicfran/archy)\n\n**project** build.gradle\n```groovy\nallprojects {\n  repositories {\n    google()\n    jcenter()\n    maven { url \"https://jitpack.io\" }\n  }\n}\n```\n\n**app** build.gradle\n``` groovy\ndependencies {\n  implementation 'com.github.vicfran:archy:vX.Y.Z-alpha'\n}\n```\n\n## License\n\n    MIT License\n\n    Copyright (c) 2019 vicfran\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicfran%2Farchy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicfran%2Farchy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicfran%2Farchy/lists"}