{"id":18036780,"url":"https://github.com/zyrouge/dart_perks","last_synced_at":"2026-04-12T09:38:39.924Z","repository":{"id":45834148,"uuid":"514791812","full_name":"zyrouge/dart_perks","owner":"zyrouge","description":"📦 Perks is a simple-to-use persistent data storage.","archived":false,"fork":false,"pushed_at":"2022-07-17T09:25:15.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-25T12:05:21.641Z","etag":null,"topics":["dart","database","flutter","json","key-value","no-sql"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/zyrouge.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-07-17T08:48:48.000Z","updated_at":"2022-07-17T09:19:51.000Z","dependencies_parsed_at":"2022-07-19T14:38:01.736Z","dependency_job_id":null,"html_url":"https://github.com/zyrouge/dart_perks","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zyrouge/dart_perks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyrouge%2Fdart_perks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyrouge%2Fdart_perks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyrouge%2Fdart_perks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyrouge%2Fdart_perks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zyrouge","download_url":"https://codeload.github.com/zyrouge/dart_perks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyrouge%2Fdart_perks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267228944,"owners_count":24056373,"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-07-26T02:00:08.937Z","response_time":62,"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":["dart","database","flutter","json","key-value","no-sql"],"created_at":"2024-10-30T12:14:15.350Z","updated_at":"2026-04-12T09:38:34.903Z","avatar_url":"https://github.com/zyrouge.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"./media/banner.png?raw=true\"\u003e\n\u003c/div\u003e\n\n# Perks\n\n📦 Perks is a simple-to-use persistent data storage.\n\n[![pub package](https://img.shields.io/pub/v/perks.svg)](https://pub.dev/packages/perks)\n[![License](https://img.shields.io/github/license/zyrouge/dart_perks)](./LICENSE)\n[![Tests](https://github.com/zyrouge/dart_perks/actions/workflows/test.yml/badge.svg)](https://github.com/zyrouge/dart_perks/actions/workflows/test.yml)\n\n## Links\n\n-   [GitHub](https://github.com/zyrouge/dart_perks)\n-   [Pub.dev](https://pub.dev/packages/perks)\n-   [Documentation](https://pub.dev/documentation/perks/latest/)\n\n## Usage\n\n-   Adapters take care of read and write operations.\n-   Boxes abstract adapters to provide a way to perform operations on the data.\n\n### Available Adapters\n\n-   `PerksFileAdapter` - Asynchronous file based storage.\n-   `PerksFileSyncAdapter` - Synchronous file based storage.\n-   `PerksMemoryAdapter` - Synchronous memory based storage.\n\n### Available Boxes\n\n-   `PerksNameValueBox` - Asynchronous Name-Value (or Key-Value) paired database schema.\n-   `PerksNameValueSyncBox` - Synchronous Name-Value (or Key-Value) paired database schema.\n-   `PerksStringBox` - Asynchronous storage where data is stored as a single string.\n-   `PerksStringSyncBox` - Synchronous storage where data is stored as a single string.\n\n### Example\n\n```dart\nimport 'package:perks/perks.dart';\n\nfinal PerksNameValueBox\u003cString\u003e database = PerksNameValueBox\u003cString\u003e(\n    adapter: PerksFileAdapter('data.db'),\n);\n\nawait database.set('hello', 'world');\nprint('Value of hello: ${await database.get('hello')}');\n```\n\nCheck out [example](./example) and [test](./test) for more examples.\n\n# License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyrouge%2Fdart_perks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzyrouge%2Fdart_perks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyrouge%2Fdart_perks/lists"}