{"id":32143275,"url":"https://github.com/plan-v-studio/documentdata","last_synced_at":"2025-10-21T07:55:55.788Z","repository":{"id":212400294,"uuid":"731411134","full_name":"Plan-V-Studio/DocumentData","owner":"Plan-V-Studio","description":"A data persistence library like SwiftData, and persist all the data into Property List Document.","archived":false,"fork":false,"pushed_at":"2024-06-01T06:55:00.000Z","size":87,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-28T06:48:13.346Z","etag":null,"topics":["data-persistence","swift","swift-macros","swift-package-manager"],"latest_commit_sha":null,"homepage":"https://swiftpackageindex.com/Plan-V-Studio/DocumentData","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Plan-V-Studio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-14T02:52:03.000Z","updated_at":"2024-06-01T14:41:47.000Z","dependencies_parsed_at":"2023-12-14T03:51:29.753Z","dependency_job_id":"8a37c301-0f61-4fbb-908a-2889c4f8720e","html_url":"https://github.com/Plan-V-Studio/DocumentData","commit_stats":null,"previous_names":["plan-v-studio/documentdata"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Plan-V-Studio/DocumentData","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Plan-V-Studio%2FDocumentData","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Plan-V-Studio%2FDocumentData/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Plan-V-Studio%2FDocumentData/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Plan-V-Studio%2FDocumentData/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Plan-V-Studio","download_url":"https://codeload.github.com/Plan-V-Studio/DocumentData/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Plan-V-Studio%2FDocumentData/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280225807,"owners_count":26293888,"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-10-21T02:00:06.614Z","response_time":58,"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":["data-persistence","swift","swift-macros","swift-package-manager"],"created_at":"2025-10-21T07:55:50.452Z","updated_at":"2025-10-21T07:55:55.773Z","avatar_url":"https://github.com/Plan-V-Studio.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Document Data\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FPlan-V-Studio%2FDocumentData%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/Plan-V-Studio/DocumentData)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FPlan-V-Studio%2FDocumentData%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/Plan-V-Studio/DocumentData)\n\n![GitHub License](https://img.shields.io/github/license/Plan-V-Studio/DocumentData)\n![GitHub Release](https://img.shields.io/github/v/release/Plan-V-Studio/DocumentData)\n\n\nA data persistence library like SwiftData, and persist all the data into Property List Document.\n\n## Setup\n\nFirst, you need to add this library to your project by using [Swift Package Manager](https://github.com/apple/swift-package-manager). Open your Xcode, go to File \u003e Add Package Dependencies... Then, copy https://github.com/Plan-V-Studio/DocumentData to the search bar, choose the first library and configure your updating method.\n\nIf you are using Swift Package, add the code below to your dependencies in `Package.swift` file.\n\n```swift\n.package(url: \"https://github.com/Plan-V-Studio\", branch: \"main\")\n```\n\n## Quick Start\n\nTo use Document Data, you need to create your data model first. This is an example for create a model to storing user's data.\n\n```swift\nclass UserData {\n    var username: String\n    var password: Data\n    var universalID: UUID\n}\n```\n\nThen, add `@PersistedModel` macro before the class declaration.\n\n```swift\n@PersistedModel\nclass UserData {\n  // ...\n}\n```\n\n`@PersistedModel` macro will automatically convert this data model to a persistence data model, and store `UserData.storage.plist` file in `/Container/Application Support/` of your app.\n\n\u003e [!TIP]\n\u003e\n\u003e Persisence file's name will autimatically use its data model's name,\n\u003e to customize you model name, download documentation in release page.\n\n## Documentation\n\nDocument Data use DocC to generate documentation, you can download compiled document in [release page](https://github.com/Plan-V-Studio/DocumentData/releases).\n\n## Statememt\n\n**This is beta software, which means that none of the features and methods of the library have been systematically tested. Plan-V Studio will not be responsible for any direct or indirect loss caused by your use of this library.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplan-v-studio%2Fdocumentdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplan-v-studio%2Fdocumentdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplan-v-studio%2Fdocumentdata/lists"}